/* ==========================================================================
   Lingo90 — ekranlarga xos uslublar
   ========================================================================== */

/* ------------------------------ Bosh sahifa ------------------------------ */

.hero { padding: 20px; border-radius: var(--r-xl); }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero__hello { font-size: 13px; font-weight: 700; opacity: .85; }
.hero__name { font-size: 22px; font-weight: 900; }
.hero__streak {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  font-weight: 900; font-size: 15px;
  position: relative; z-index: 1;
}
.hero__ring { display: flex; align-items: center; gap: 16px; margin-top: 18px; position: relative; z-index: 1; }
.hero__meta { flex: 1; min-width: 0; }
.hero__meta-title { font-weight: 800; font-size: 15px; }
.hero__meta-sub { font-size: 12.5px; opacity: .85; font-weight: 600; margin-bottom: 8px; }

.ring { width: 82px; height: 82px; flex: none; position: relative; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring__track { stroke: rgba(255, 255, 255, .25); }
.ring__value { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.22, 1, .36, 1); }
.ring__label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-weight: 900; font-size: 17px;
}

.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.action {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .14s ease, box-shadow .2s ease;
}
.action:hover { box-shadow: var(--shadow-md); }
.action:active { transform: scale(.97); }
.action__icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--gradient-soft);
}
.action__title { font-weight: 800; font-size: 15px; }
.action__sub { font-size: 12px; color: var(--text-2); font-weight: 600; line-height: 1.35; }
.action--accent .action__icon { background: var(--gradient); }

.week { display: flex; justify-content: space-between; gap: 6px; }
.week__day { flex: 1; text-align: center; }
.week__dot {
  width: 34px; height: 34px; margin: 0 auto 4px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 2px solid var(--border);
  font-size: 14px;
  color: var(--text-3);
}
.week__dot.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.week__dot.is-today { border-color: var(--brand-1); color: var(--brand-1); font-weight: 900; }
.week__dot.is-done.is-today { color: #fff; border-color: var(--brand-1); }
.week__label { font-size: 11px; font-weight: 700; color: var(--text-2); }

/* --------------------------- Darslar bloklari --------------------------- */

.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.block {
  padding: 12px 8px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px dashed var(--border);
  text-align: center;
}
.block.is-open { background: rgba(88, 204, 2, .12); border-style: solid; border-color: transparent; }
.block__label { display: block; font-weight: 900; font-size: 14px; }
.block__state { display: block; font-size: 11px; font-weight: 700; color: var(--text-2); margin-top: 2px; }
.block.is-open .block__state { color: var(--green-dark); }

/* ------------------------- Alifbo almashtirgichi ------------------------- */

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex: none;
}
.segmented__btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-2);
  transition: background .18s ease, color .18s ease;
}
.segmented__btn.is-active { background: var(--gradient); color: #fff; }

.plan__sub { display: block; font-size: 12px; font-weight: 700; color: var(--brand-1); margin-top: 2px; }

/* ------------------------------ Mascot ------------------------------ */

/* Rasm assets/mascot.png dan olinadi; topilmasa logotipda placeholder chiqadi,
   bezak rasm esa umuman ko'rinmaydi. */
.mascot { position: relative; display: block; line-height: 0; }
.mascot__img { display: block; }
.mascot__fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;
}
.mascot.is-missing .mascot__img { display: none; }
.mascot.is-missing .mascot__fallback { display: flex; }

/* Dumaloq logotip: rasmning yuz qismi kesib olinadi */
.mascot--logo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gradient);
  box-shadow: var(--shadow-brand);
}
.mascot--logo .mascot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
  transform: scale(1.35);
}

/* Kartadagi bezak rasmi */
.mascot--art { position: absolute; }
.mascot--art .mascot__img {
  width: auto;
  height: 100%;
  /* Matn tomonda rasm yumshoq so'nadi — o'qish oson bo'lishi uchun */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 26%, #000 58%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 26%, #000 58%);
}
.mascot.is-missing.mascot--art { display: none; }

/* Bosh sahifadagi salomlashuv kartasi */
.hero { position: relative; overflow: hidden; }
.hero > *:not(.hero__art) { position: relative; z-index: 1; }
.hero__art {
  right: -14px;
  bottom: 0;
  top: auto;
  height: 62%;
  opacity: .85;
  z-index: 0;
  pointer-events: none;
}
.topbar__logo { display: block; line-height: 0; flex: none; }
.sidebar__logo { padding: 0; background: none; box-shadow: none; border-radius: 50%; }

@media (min-width: 430px) {
  .hero__art { height: 74%; right: -8px; }
}

@media (min-width: 560px) {
  .hero__art { height: 90%; right: 0; opacity: .85; }
  .hero__meta { padding-right: 40px; }
}

/* --------------------- "Tanishib chiqing" — havola kartasi --------------------- */

.guide-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  text-align: left;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .2s ease;
}
.guide-link:hover { box-shadow: var(--shadow-md); }
.guide-link:active { transform: scale(.99); }
.guide-link__icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--gradient);
}
.guide-link__body { flex: 1; min-width: 0; }
.guide-link__title { display: block; font-weight: 900; font-size: 15.5px; }
.guide-link__sub { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.guide-link__arrow { color: var(--text-3); font-size: 20px; flex: none; }


/* ------------------------------ Ustoz AI ------------------------------ */

.ai-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  text-align: left;
  border-radius: var(--r-lg);
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
  transition: transform .12s ease;
}
.ai-link:active { transform: scale(.99); }
.ai-link__icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, .22);
}
.ai-link__body { flex: 1; min-width: 0; }
.ai-link__title { display: block; font-weight: 900; font-size: 15.5px; }
.ai-link__sub { display: block; font-size: 12.5px; opacity: .92; font-weight: 600; line-height: 1.4; }
.ai-link__arrow { font-size: 20px; opacity: .9; flex: none; }

.ai-hero { display: flex; align-items: center; gap: 12px; padding: 16px; }
.ai-hero__badge {
  width: 60px; height: 60px; flex: none;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 28px;
  background: rgba(255, 255, 255, .22);
  position: relative; z-index: 1;
}
.ai-hero__body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.ai-hero__title { font-weight: 900; font-size: 17px; }
.ai-hero__text { font-size: 13px; opacity: .92; font-weight: 600; margin: 4px 0 10px; }

.chat { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.msg--me { justify-content: flex-end; }
.msg__avatar {
  width: 32px; height: 32px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 16px;
  background: var(--gradient-soft);
}
.msg__bubble {
  max-width: 82%;
  padding: 12px 15px;
  border-radius: 20px;
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 600;
}
.msg--ai .msg__bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.msg--me .msg__bubble {
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: var(--shadow-brand);
}
.msg__bubble--typing { display: flex; gap: 5px; align-items: center; padding: 16px 15px; }
.msg__bubble--typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-3);
  animation: typing 1.1s infinite ease-in-out;
}
.msg__bubble--typing i:nth-child(2) { animation-delay: .15s; }
.msg__bubble--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-3px) } }

.chat-suggest { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; }
.chat-suggest::-webkit-scrollbar { display: none; }
.chat-chip {
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand-1);
  transition: transform .12s ease;
}
.chat-chip:active { transform: scale(.96); }

.chat-input {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.chat-input__field {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 0;
}
.chat-input__field::placeholder { color: var(--text-3); }
.chat-input__send {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient);
  color: #fff;
  font-size: 16px;
  box-shadow: var(--shadow-brand);
  transition: transform .12s ease;
}
.chat-input__send:active { transform: scale(.94); }

/* ----------------------- "Tanishib chiqing" — to'liq sahifa ----------------------- */

.guide-page {
  --guide-measure: 62ch;
  display: block;
  padding-bottom: 8px;
}

.guide-hero { text-align: center; padding: 8px 0 4px; }
.guide-hero__badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: var(--gradient);
  box-shadow: var(--shadow-brand);
}
.guide-hero__eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-1);
}
.guide-hero__title {
  font-size: 28px;
  font-weight: 900;
  margin-top: 6px;
  text-wrap: balance;
}

.guide-sec { margin-top: 30px; }
.guide-rule {
  height: 3px;
  width: 64px;
  margin: 0 auto 26px;
  border-radius: 999px;
  background: var(--gradient);
  opacity: .5;
}
.guide-h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  line-height: 1.3;
  text-wrap: balance;
  margin-bottom: 14px;
}
.guide-h2--plain { justify-content: center; text-align: center; }
.guide-h2__emoji {
  width: 38px; height: 38px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 19px;
  background: var(--gradient-soft);
}

.guide-p {
  max-width: var(--guide-measure);
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 14px;
}
.guide-p:last-child { margin-bottom: 0; }

.guide-highlight {
  max-width: var(--guide-measure);
  font-size: 16.5px;
  line-height: 1.6;
  font-weight: 900;
  color: var(--text);
  margin-top: 18px;
  padding-left: 16px;
  border-left: 4px solid var(--brand-1);
}

.guide-callout {
  background: var(--gradient-soft);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.66;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0;
}

.guide-points { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 18px; }
.guide-points__item {
  max-width: var(--guide-measure);
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--text-2);
}
.guide-points__item::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-1);
}

/* Temp variantlari */
.pace { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.pace__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.pace__card.is-best {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, .12);
}
.pace__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pace__emoji { font-size: 17px; }
.pace__name { font-weight: 900; font-size: 16px; }
.pace__tag {
  font-size: 12px; font-weight: 800;
  color: var(--brand-1);
  background: var(--gradient-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.pace__star { margin-left: auto; font-size: 15px; }
.pace__card .guide-p { margin-bottom: 0; font-size: 14.5px; }

/* 5 qoida */
.rules { display: flex; flex-direction: column; gap: 16px; margin: 4px 0 18px; padding: 0; list-style: none; }
.rules__item { display: flex; gap: 14px; align-items: flex-start; max-width: var(--guide-measure); }
.rules__num {
  width: 30px; height: 30px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 900;
  color: #fff;
  background: var(--gradient);
}
.rules__body { flex: 1; min-width: 0; }
.rules__title { display: block; font-weight: 900; font-size: 15px; margin-bottom: 2px; }
.rules__text { display: block; font-size: 14.5px; line-height: 1.65; color: var(--text-2); font-weight: 600; }

.guide-outro { margin-top: 34px; text-align: center; }
.guide-outro .guide-p { max-width: var(--guide-measure); margin-left: auto; margin-right: auto; }
.guide-wish {
  font-size: 18px;
  font-weight: 900;
  margin: 18px 0 22px;
}
.guide-cta { max-width: 360px; margin: 0 auto; font-size: 16px; padding: 16px 22px; }

@media (min-width: 900px) {
  .guide-hero { padding-top: 16px; }
  .guide-hero__badge { width: 88px; height: 88px; font-size: 40px; }
  .guide-hero__title { font-size: 34px; }
  .guide-h2 { font-size: 21px; }
  .pace { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .pace__card { display: flex; flex-direction: column; }
}

/* ------------------------------ Darslar ro'yxati ------------------------------ */

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all .18s ease;
}
.filter.is-active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }

.module { margin-bottom: 26px; }
.module__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.module__badge {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 13px; color: #fff;
  background: var(--gradient); flex: none;
}
.module__title { font-weight: 900; font-size: 16px; }
.module__sub { font-size: 12px; color: var(--text-2); font-weight: 600; }
.module__count { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--text-2); }

.lesson-list { display: flex; flex-direction: column; gap: 10px; }

.lesson-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  width: 100%; text-align: left;
  transition: transform .12s ease, border-color .2s ease;
}
.lesson-item:active { transform: scale(.985); }
.lesson-item.is-locked { opacity: .62; }
.lesson-item.is-current { border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(124, 92, 252, .12); }

.lesson-item__num {
  width: 46px; height: 46px; flex: none;
  border-radius: 16px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 15px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 2px solid var(--border);
}
.lesson-item.is-open .lesson-item__num { background: var(--gradient); color: #fff; border-color: transparent; }
.lesson-item.is-done .lesson-item__num { background: var(--green); color: #fff; border-color: transparent; }

.lesson-item__body { flex: 1; min-width: 0; }
.lesson-item__title { display: block;
  font-weight: 800; font-size: 14.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lesson-item__meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.lesson-item__meta span { font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.lesson-item__status { font-size: 18px; flex: none; }

.lesson-mini-progress { display: block; height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.lesson-mini-progress > i { display: block; height: 100%; background: var(--gradient); border-radius: 999px; }

/* ------------------------------ Dars ichi ------------------------------ */

.lesson-hero { padding: 20px; border-radius: var(--r-xl); }
.lesson-hero__level { display: block; font-size: 12px; font-weight: 800; opacity: .85; }
.lesson-hero__title { font-size: 21px; font-weight: 900; margin: 4px 0 12px; position: relative; z-index: 1; }
.lesson-hero__stats { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }

.sections { display: flex; flex-direction: column; gap: 10px; }
.section-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  width: 100%; text-align: left;
  transition: transform .12s ease;
}
.section-card:active { transform: scale(.985); }
.section-card__icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--gradient-soft);
}
.section-card.is-done .section-card__icon { background: rgba(88, 204, 2, .16); }
.section-card__title { display: block; font-weight: 800; font-size: 15px; }
.section-card__sub { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.section-card__check { font-size: 20px; flex: none; color: var(--text-3); }
.section-card.is-done .section-card__check { color: var(--green); }

/* Bo'lim ichidagi kontent */
.pane { display: flex; flex-direction: column; gap: 14px; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-1);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.note__title { font-weight: 900; font-size: 14px; margin-bottom: 6px; }
.note p { font-size: 14px; color: var(--text-2); font-weight: 600; }

.formula {
  background: var(--gradient-soft);
  border-radius: var(--r-md);
  padding: 14px;
  text-align: center;
  font-weight: 900;
  font-size: 15px;
  color: var(--brand-1);
}

.example { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); }
.example__en { font-weight: 800; font-size: 14.5px; }
.example__uz { font-size: 13px; color: var(--text-2); font-weight: 600; }

/* Lug'at kartochkalari */
.words { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .words { grid-template-columns: 1fr 1fr; } }

.word {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
  width: 100%;
}
.word__emoji { font-size: 26px; flex: none; }
.word__en { display: block; font-weight: 900; font-size: 15px; }
.word__tr { display: block; font-size: 12px; color: var(--text-3); font-weight: 700; }
.word__uz { display: block; font-size: 13.5px; color: var(--text-2); font-weight: 700; }
.word__speak { margin-left: auto; font-size: 18px; color: var(--brand-1); flex: none; }

/* Mashqlar / quiz */
.quiz__head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.quiz__count { display: block; font-size: 12px; font-weight: 800; color: var(--text-2); flex: none; }
.quiz__question { font-size: 18px; font-weight: 900; line-height: 1.35; margin: 8px 0 4px; }
.quiz__hint { font-size: 13px; color: var(--text-2); font-weight: 600; }

.options { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.option {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 2px solid var(--border);
  font-weight: 800; font-size: 15px;
  text-align: left; width: 100%;
  transition: transform .12s ease, border-color .18s ease, background .18s ease;
}
.option:active { transform: scale(.985); }
.option.is-selected { border-color: var(--brand-1); background: var(--gradient-soft); }
.option.is-correct { border-color: var(--green); background: rgba(88, 204, 2, .12); }
.option.is-wrong { border-color: var(--red); background: rgba(255, 75, 75, .1); }
.option__key {
  width: 26px; height: 26px; flex: none;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.feedback {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-weight: 800;
  font-size: 14px;
  animation: screen-in .2s ease both;
}
.feedback--ok { background: rgba(88, 204, 2, .14); color: var(--green-dark); }
.feedback--no { background: rgba(255, 75, 75, .12); color: var(--red); }
.feedback small { display: block; font-weight: 700; opacity: .85; margin-top: 3px; }

.quiz-result { text-align: center; padding: 20px 0; }
.quiz-result__emoji { font-size: 60px; }
.quiz-result__score { font-size: 30px; font-weight: 900; margin-top: 6px; }
.quiz-result__text { color: var(--text-2); font-weight: 700; margin-bottom: 18px; }

/* Musiqa bo'limi */
.song {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  width: 100%; text-align: left;
}
.song__cover {
  width: 54px; height: 54px; flex: none;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 24px;
  background: var(--gradient);
  color: #fff;
}
.song__title { display: block; font-weight: 800; font-size: 15px; }
.song__artist { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 700; }
.song__play {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient-soft);
  color: var(--brand-1);
  font-size: 15px;
  margin-left: auto;
}
.song.is-playing .song__cover { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.06) } }

.lyrics { display: flex; flex-direction: column; gap: 8px; }
.lyric { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.lyric__en { font-weight: 800; font-size: 14.5px; }
.lyric__uz { font-size: 12.5px; color: var(--text-2); font-weight: 600; }

/* ========================= Grammatika (haqiqiy kontent) ========================= */

.gr { gap: 0; }
.gr__heading {
  font-size: 17px;
  line-height: 1.35;
  text-wrap: balance;
  margin-bottom: 10px;
}
.gr__intro {
  font-size: 14.5px;
  line-height: 1.65;
  font-weight: 600;
  color: var(--text-2);
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--gradient-soft);
  margin-bottom: 16px;
}
/* Tinchlantiruvchi eslatma — har bir darsning grammatika boshida.
   Yumshoq binafsha/ko'k ohang; ogohlantirish emas (qizil/sariq ishlatilmaydi). */
.gr-calm {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(91, 127, 255, .12), rgba(124, 92, 252, .06));
  border: 1px solid rgba(91, 127, 255, .22);
  box-shadow: inset 3px 0 0 0 rgba(91, 127, 255, .45);
}
.gr-calm__icon {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 17px;
  background: rgba(91, 127, 255, .16);
}
.gr-calm__body { min-width: 0; }
.gr-calm__body p {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--text-2);
}
.gr-calm__body p + p { margin-top: 8px; }

.gr__sections { display: flex; flex-direction: column; gap: 10px; }
.gr__cta { margin-top: 18px; font-size: 15.5px; }

/* Yig'iladigan bo'lim */
.gr-sec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.gr-sec.is-open { border-color: color-mix(in srgb, var(--brand-1) 35%, var(--border)); }
.gr-sec__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
}
.gr-sec__num {
  width: 28px; height: 28px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 900;
  color: #fff;
  background: var(--gradient);
}
.gr-sec__title { flex: 1; min-width: 0; font-weight: 800; font-size: 14.5px; line-height: 1.35; }
.gr-sec__chev { flex: none; color: var(--text-3); font-size: 14px; }
.gr-sec__body {
  padding: 0 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: gr-open .22s ease both;
}
@keyframes gr-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.gr-lead {
  font-size: 14.5px;
  line-height: 1.65;
  font-weight: 600;
  color: var(--text-2);
}
.gr-lead strong, .gr-ex__en strong, .gr-table strong { color: var(--brand-1); font-weight: 900; }
.gr-cap { font-size: 12.5px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }

/* Jadvallar — mobilda gorizontal scroll */
.gr-table { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gr-table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.gr-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gr-table th, .gr-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.gr-table thead th {
  font-size: 12px;
  font-weight: 900;
  color: var(--brand-1);
  background: var(--gradient-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.gr-table tbody tr:last-child th,
.gr-table tbody tr:last-child td { border-bottom: none; }
.gr-table tbody td { font-weight: 600; color: var(--text); }
.gr-table em { color: var(--text-2); font-style: normal; font-size: 12.5px; }

/* Ikki ustunli "qachon ishlatiladi" jadvali */
.gr-table--usage tbody th {
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  white-space: nowrap;
}
.gr-table--usage tbody td { white-space: normal; min-width: 200px; }

/* Misollar */
.gr-ex { display: flex; flex-direction: column; gap: 8px; }
.gr-ex__list { display: flex; flex-direction: column; gap: 8px; }
.gr-ex__item {
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.gr-ex__en { display: block; font-weight: 800; font-size: 14.5px; line-height: 1.5; }
.gr-ex__uz { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-top: 2px; }
.gr-ex__note {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.6;
  padding-left: 12px;
  border-left: 3px solid var(--border);
}

/* Ogohlantirish */
.gr-warn {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 150, 0, .1);
  border: 1px solid rgba(255, 150, 0, .3);
}
.gr-warn__title { font-weight: 900; font-size: 14px; color: #B36A00; margin-bottom: 6px; }
:root[data-theme="dark"] .gr-warn__title { color: #FFC061; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gr-warn__title { color: #FFC061; }
}
.gr-warn__text { font-size: 14px; line-height: 1.6; font-weight: 600; color: var(--text-2); }
.gr-compare { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.gr-compare__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 800;
  background: var(--surface);
}
.gr-compare__mark { flex: none; font-size: 13px; }
.gr-compare__row--wrong { color: var(--red); text-decoration-color: var(--red); }
.gr-compare__row--right { color: var(--green-dark); }
:root[data-theme="dark"] .gr-compare__row--right { color: #7CE04A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gr-compare__row--right { color: #7CE04A; }
}

/* Maslahat */
.gr-hint {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(28, 176, 246, .1);
  border: 1px solid rgba(28, 176, 246, .28);
}
.gr-hint__title { font-weight: 900; font-size: 14px; color: #0E7FB8; margin-bottom: 6px; }
:root[data-theme="dark"] .gr-hint__title { color: #6CC9F5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gr-hint__title { color: #6CC9F5; }
}
.gr-hint__text { font-size: 14px; line-height: 1.6; font-weight: 600; color: var(--text-2); }

/* Xulosa */
.gr-summary {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.gr-summary__title { font-weight: 900; font-size: 16px; margin-bottom: 12px; }
.gr-summary__list { display: flex; flex-direction: column; gap: 9px; }
.gr-summary__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 1.55; }
.gr-summary__check {
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900;
  background: rgba(88, 204, 2, .16);
  color: var(--green-dark);
  margin-top: 1px;
}
.gr-mistakes {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 75, 75, .08);
  border: 1px solid rgba(255, 75, 75, .22);
}
.gr-mistakes__title { font-weight: 900; font-size: 13.5px; color: var(--red); margin-bottom: 8px; }
.gr-mistakes__list { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.gr-mistakes__list li { font-size: 13.5px; font-weight: 600; color: var(--text-2); line-height: 1.55; }

/* Yuklanish holati */
.gr-loading { display: flex; gap: 7px; justify-content: center; padding: 40px 0 14px; }
.gr-loading__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-1);
  animation: gr-bounce 1.1s infinite ease-in-out;
}
.gr-loading__dot:nth-child(2) { animation-delay: .15s; }
.gr-loading__dot:nth-child(3) { animation-delay: .3s; }
@keyframes gr-bounce { 0%, 60%, 100% { opacity: .3; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-5px) } }

@media (min-width: 700px) {
  .gr__heading { font-size: 20px; }
  .gr-sec__title { font-size: 15.5px; }
  .gr-table td, .gr-table th { padding: 11px 14px; }
}

/* Sinov (sandbox) rejimi haqida yozuv — to'lov ekranida */

.sandbox-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px dashed var(--border);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-2);
  text-align: left;
}
.sandbox-note__icon { font-size: 16px; flex: none; }

/* -------------------- Qiziqarli mashg'ulotlar -------------------- */

/* Mashg'ulot va daraja kartalari — umumiy .row komponenti ustiga */
.act-list { display: flex; flex-direction: column; gap: 10px; }
.act-list .row__title, .act-list .row__sub { display: block; }
.act-list .row__sub { margin-top: 2px; }
.row.is-disabled { opacity: .55; cursor: default; }
.row.is-disabled:active { transform: none; }
.row__icon--code { font-size: 13px; font-weight: 900; color: var(--brand-1); }
.row__note { display: block; font-size: 12px; font-weight: 700; color: var(--brand-1); margin-top: 2px; }

/* O'yin ekrani: statistika, hisob va savol kartasi */
.game-intro { display: flex; flex-direction: column; gap: 12px; }
.game-stats__title { font-weight: 900; font-size: 15.5px; }
.game-stats__line { font-size: 13px; font-weight: 700; color: var(--text-2); margin: 8px 0 10px; }
.game-score { display: flex; gap: 6px; flex-wrap: wrap; }
.game-card { margin-top: 14px; }
.game-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.quiz__dir {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gradient-soft);
  color: var(--brand-1);
  font-size: 12px;
  font-weight: 800;
}
.option.is-locked { pointer-events: none; }
.option.is-correct .option__key { background: var(--green); color: #fff; border-color: transparent; }
.option.is-wrong .option__key { background: var(--red); color: #fff; border-color: transparent; }

/* ========================= Shadowing ========================= */

/* Hikoya kartasi (ro'yxat) */
.sh-card {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px 14px;
  text-align: left;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease;
}
.sh-card:active { transform: scale(.985); }
.sh-card.is-locked { opacity: .62; }
.sh-card__num {
  width: 42px; height: 42px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 900;
  background: var(--gradient); color: #fff;
}
.sh-card.is-done .sh-card__num { background: var(--green); }
.sh-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sh-card__title { font-weight: 900; font-size: 15px; line-height: 1.3; }
.sh-card__en { font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.sh-card__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.sh-card__meta .chip { padding: 3px 8px; font-size: 11px; }
.sh-card__focus { font-size: 12px; font-weight: 700; color: var(--text-2); }
.sh-card__status { font-size: 18px; flex: none; color: var(--text-3); }
.sh-card.is-done .sh-card__status { color: var(--green); }

/* Pleyer kartasi */
.sh-player { padding: 18px; }
.sh-player__top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.sh-player__icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, .22);
}
.sh-player__meta { flex: 1; min-width: 0; }
.sh-player__title { display: block; font-size: 18px; font-weight: 900; line-height: 1.25; }
.sh-player__sub { display: block; font-size: 13px; font-weight: 700; opacity: .9; margin-top: 2px; }
.sh-player__focus { font-size: 12.5px; font-weight: 700; opacity: .92; margin-top: 10px; position: relative; z-index: 1; }
.sh-player__controls {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px;
  position: relative; z-index: 1;
}
.sh-play {
  width: 56px; height: 56px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 900;
  background: #fff; color: var(--brand-1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .12s ease;
}
.sh-play:active { transform: scale(.93); }
.sh-player__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.sh-player__time { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; opacity: .95; }
.sh-progress { cursor: pointer; height: 10px; }
.sh-repeat {
  flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .18);
  font-size: 16px; line-height: 1;
}
.sh-repeat span { font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.sh-repeat:active { transform: scale(.95); }

/* Audio yo'q holati */
.sh-noaudio {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .16);
  position: relative; z-index: 1;
}
.sh-noaudio__icon { font-size: 22px; flex: none; }
.sh-noaudio__body { flex: 1; min-width: 0; }
.sh-noaudio__title { display: block; font-weight: 900; font-size: 14.5px; }
.sh-noaudio__text { display: block; font-size: 12.5px; font-weight: 600; opacity: .92; line-height: 1.5; margin-top: 2px; }

/* Tezlik va tarjima */
.sh-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.sh-tools__uz.is-on { border-color: var(--brand-1); color: var(--brand-1); background: var(--gradient-soft); }

/* Gaplar */
.sh-lines { display: flex; flex-direction: column; gap: 6px; }
.sh-line {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.sh-line:hover { background: var(--surface-2); }
.sh-line.is-active {
  background: var(--gradient-soft);
  border-color: rgba(124, 92, 252, .35);
}
.sh-line__num {
  width: 22px; height: 22px; flex: none;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  margin-top: 2px;
}
.sh-line.is-active .sh-line__num { background: var(--brand-1); color: #fff; border-color: transparent; }
.sh-line__body { flex: 1; min-width: 0; }
.sh-line__en { font-size: 15.5px; font-weight: 800; line-height: 1.65; }
.sh-line.is-active .sh-line__en { color: var(--text); }
.sh-w { border-radius: 4px; padding: 0 2px; margin: 0 -2px; transition: background .08s ease, color .08s ease; }
.sh-w.is-active { background: var(--brand-1); color: #fff; }
.sh-line__uz { display: none; font-size: 13px; font-weight: 600; color: var(--text-2); line-height: 1.5; margin-top: 3px; }
.sh-lines.show-uz .sh-line__uz { display: block; }

/* Talaffuz */
.sh-pron { display: flex; flex-direction: column; gap: 8px; }
.sh-pron__item {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.sh-pron__focus { font-size: 14.5px; font-weight: 800; line-height: 1.5; }
.sh-pron__focus strong, .sh-pron__text strong { color: var(--brand-1); font-weight: 900; }
.sh-pron__text { font-size: 13.5px; line-height: 1.6; font-weight: 600; color: var(--text-2); margin-top: 4px; }
.sh-pron__ex {
  margin-top: 8px; padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 14px; font-weight: 800; line-height: 1.55;
}
.sh-warn { margin-top: 22px; }
.sh-warn .gr-warn__text strong { color: var(--brand-1); }

/* Topshiriqlar — javob bosilganda ochiladi */
.sh-task .mus-task__text { display: flex; flex-direction: column; gap: 4px; }
.sh-task__q { font-weight: 700; color: var(--text); }
.sh-task__a { font-weight: 800; color: var(--brand-1); }
.sh-task__hint { font-size: 12px; font-weight: 700; color: var(--text-3); }

@media (min-width: 700px) {
  .sh-line__en { font-size: 16.5px; }
}

/* -------------------- Kontent hali tayyor emas -------------------- */

.notready {
  text-align: center;
  padding: 40px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.notready__icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 28px;
  background: var(--gradient-soft);
}
.notready__title { font-weight: 900; font-size: 17px; }
.notready__text {
  max-width: 42ch;
  margin: 8px auto 0;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
  color: var(--text-2);
}
.notready__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ========================= Mashqlar (haqiqiy kontent) ========================= */

.ex { gap: 0; }
.ex__intro {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--text-2);
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--gradient-soft);
  margin-bottom: 14px;
}

.ex-head {
  position: sticky;
  top: calc(var(--safe-top) + 58px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.ex-head__row { display: flex; align-items: center; gap: 8px; }
.ex-head__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.ex-head__count { font-size: 13px; font-weight: 900; color: var(--text); }
.ex-head__spacer { flex: 1; }
.ex-head__total { font-size: 12px; font-weight: 800; color: var(--text-2); }

.ex-block { display: flex; flex-direction: column; gap: 12px; }
.ex-block__title { font-size: 16px; line-height: 1.35; }
.ex-block__instr { font-size: 13.5px; font-weight: 600; color: var(--text-2); line-height: 1.55; }

.ex-list { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.ex-q {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.ex-q.is-correct { border-color: rgba(88, 204, 2, .5); background: rgba(88, 204, 2, .06); }
.ex-q.is-wrong { border-color: rgba(255, 75, 75, .45); background: rgba(255, 75, 75, .05); }
.ex-q__num {
  width: 24px; height: 24px; flex: none;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.ex-q.is-correct .ex-q__num { background: var(--green); color: #fff; border-color: transparent; }
.ex-q.is-wrong .ex-q__num { background: var(--red); color: #fff; border-color: transparent; }
.ex-q__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.ex-q__text { font-size: 14.5px; line-height: 1.6; font-weight: 700; }
.ex-q__text--src { font-weight: 800; }
/* "correction": xatosi bor gap */
.ex-q__text--bad {
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.ex-bad-mark { font-size: 12px; }
.ex-q__text--tap { cursor: pointer; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; }
.ex-q__text--tap.is-active { background: var(--gradient-soft); box-shadow: inset 0 0 0 2px var(--brand-1); }

.ex-slot {
  display: inline-block;
  min-width: 56px;
  padding: 0 6px;
  border-bottom: 2px solid var(--brand-1);
  text-align: center;
  color: var(--text-3);
  font-weight: 800;
}
.ex-slot.is-filled { color: var(--brand-1); border-bottom-style: solid; }
.ex-verb {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--gradient-soft);
  color: var(--brand-1);
  font-size: 13px;
  font-weight: 800;
}

.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 800;
  transition: transform .12s ease, border-color .18s ease, background .18s ease;
}
.ex-chip:active { transform: scale(.96); }
.ex-chip.is-chosen { border-color: var(--brand-1); background: var(--gradient-soft); color: var(--brand-1); }
.ex-chip.is-locked { pointer-events: none; opacity: .75; }
.ex-chip--bank { background: var(--surface); border-color: var(--brand-1); color: var(--brand-1); }

.ex-options { display: flex; flex-direction: column; gap: 8px; }
.ex-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border);
  background: var(--surface-2);
  font-size: 14.5px; font-weight: 800;
  text-align: left;
  transition: transform .12s ease, border-color .18s ease;
}
.ex-option:active { transform: scale(.99); }
.ex-option.is-correct { border-color: var(--green); background: rgba(88, 204, 2, .12); }
.ex-option.is-wrong { border-color: var(--red); background: rgba(255, 75, 75, .1); }
.ex-option.is-locked { pointer-events: none; }
.ex-option__key {
  width: 24px; height: 24px; flex: none;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* So'zlar to'plami */
.ex-bank {
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--gradient-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ex-bank__label { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-1); }
.ex-bank__note { font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.5; }

/* Dialog */
.ex-dialog { display: flex; flex-direction: column; gap: 12px; }
.ex-bubble { display: flex; gap: 8px; align-items: flex-start; }
.ex-bubble--b { flex-direction: row-reverse; }
.ex-bubble__who {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900;
  background: var(--gradient-soft);
  color: var(--brand-1);
}
.ex-bubble__body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 9px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.ex-bubble--a .ex-bubble__body { border-bottom-left-radius: 6px; }
.ex-bubble--b .ex-bubble__body { border-bottom-right-radius: 6px; background: var(--surface-2); }
.ex-bubble__text { font-size: 14.5px; line-height: 1.65; font-weight: 700; }
.ex-dialog__pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-dialog__n {
  width: 22px; height: 22px; flex: none;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* Matn kiritish */
.ex-input-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ex-input {
  flex: 1;
  min-width: 140px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border);
  background: var(--surface-2);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  outline: none;
}
.ex-input:focus { border-color: var(--brand-1); background: var(--surface); }
.ex-input::placeholder { color: var(--text-3); font-weight: 600; }
.ex-check { flex: none; }
.ex-two { display: flex; flex-direction: column; gap: 8px; }
.ex-short { display: flex; align-items: center; gap: 8px; }
.ex-short__start { font-size: 14.5px; font-weight: 800; flex: none; }
.ex-input--short { min-width: 90px; }
.ex-answer {
  font-size: 14.5px;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

/* Javob izohi */
.ex-fb { padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 800; }
.ex-fb--ok { background: rgba(88, 204, 2, .14); color: var(--green-dark); }
.ex-fb--no { background: rgba(255, 75, 75, .1); color: var(--red); display: flex; flex-direction: column; gap: 4px; }
:root[data-theme="dark"] .ex-fb--ok { color: #7CE04A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ex-fb--ok { color: #7CE04A; }
}
.ex-fb__hint { font-weight: 600; color: var(--text-2); line-height: 1.5; }
.ex-fb__answer { font-weight: 700; color: var(--text); }
.ex-fb__answer b { color: var(--green-dark); }
:root[data-theme="dark"] .ex-fb__answer b { color: #7CE04A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ex-fb__answer b { color: #7CE04A; }
}

/* --- Mashqlar: ravish o'rni, so'z tartibi va ulash --- */

.ex-pos-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-pos-adverb {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.ex-pos-label { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.ex-pos-slot {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  margin: 0 2px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px dashed var(--brand-1);
  color: var(--brand-1);
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}
.ex-pos-btns { display: flex; gap: 10px; }
.ex-pos-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border);
  background: var(--surface-2);
  font-size: 16px;
  font-weight: 900;
  transition: transform .12s ease, border-color .18s ease;
}
.ex-pos-btn:active { transform: scale(.97); }
.ex-pos-btn.is-correct { border-color: var(--green); background: rgba(88, 204, 2, .12); color: var(--green-dark); }
.ex-pos-btn.is-wrong { border-color: var(--red); background: rgba(255, 75, 75, .1); color: var(--red); }
.ex-pos-btn.is-locked { pointer-events: none; }

.ex-wo-line {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 2px dashed var(--border);
}
.ex-wo-token {
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.ex-wo-empty { font-size: 13px; font-weight: 600; color: var(--text-3); }
.ex-chip--word.is-used { opacity: .35; pointer-events: none; }
.ex-wo-actions { display: flex; gap: 8px; }
.ex-wo-actions .btn { flex: 1; }

.ex-match { display: flex; flex-direction: column; gap: 14px; }
.ex-match__col { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.ex-match__item {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ex-match__item.is-active { border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(124, 92, 252, .12); }
.ex-match__item.is-correct { border-color: rgba(88, 204, 2, .55); background: rgba(88, 204, 2, .06); }
.ex-match__item.is-wrong { border-color: rgba(255, 75, 75, .5); background: rgba(255, 75, 75, .05); }
.ex-match__btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; text-align: left; }
.ex-match__num {
  width: 24px; height: 24px; flex: none;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.ex-match__item.is-correct .ex-match__num { background: var(--green); color: #fff; border-color: transparent; }
.ex-match__item.is-wrong .ex-match__num { background: var(--red); color: #fff; border-color: transparent; }
.ex-match__text { flex: 1; font-size: 14.5px; font-weight: 800; line-height: 1.5; }
.ex-match__result { padding: 0 14px 12px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.ex-match__right { margin-top: 4px; font-size: 13px; }
.ex-match__right b { color: var(--green-dark); }
:root[data-theme="dark"] .ex-match__right b { color: #7CE04A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ex-match__right b { color: #7CE04A; }
}
.ex-match__right-col {
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--gradient-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ex-match__label { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-1); }
.ex-chip--match { background: var(--surface); border-color: var(--brand-1); color: var(--brand-1); font-size: 13.5px; }
.ex-chip--match.is-used { opacity: .35; pointer-events: none; }
.ex-match__hint { font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.5; }

/* --- Takrorlash bo'limi (yassi ko'rinish) --- */

.rev-head .ex-head__badge { background: var(--gradient); }
.rev-block { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.rev-block:first-of-type { margin-top: 6px; }
.rev-block__title {
  font-size: 15.5px;
  line-height: 1.35;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.rev-block__instr { font-size: 13.5px; font-weight: 600; color: var(--text-2); line-height: 1.55; }
.rev-final { margin-top: 24px; }
.rev-outro__title { font-weight: 900; font-size: 15px; margin-top: 6px; }
.rev-outro__text {
  font-size: 13.5px;
  line-height: 1.65;
  font-weight: 600;
  color: var(--text-2);
  margin: 6px 0 16px;
}

/* Blok natijasi */
.ex-result {
  margin-top: 16px;
  padding: 20px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
  animation: screen-in .25s ease both;
}
.ex-result__emoji { font-size: 40px; }
.ex-result__score { font-size: 26px; font-weight: 900; margin-top: 2px; }
.ex-result__text { font-size: 13.5px; font-weight: 700; color: var(--text-2); margin-bottom: 16px; }

/* Umumiy natija */
.ex-final { text-align: center; }
.ex-final__emoji { font-size: 52px; }
.ex-final__score { font-size: 32px; font-weight: 900; }
.ex-final__text { font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 16px; }
.ex-final__list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; text-align: left; }
.ex-final__list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.ex-final__id {
  width: 24px; height: 24px; flex: none;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900;
  background: var(--gradient);
  color: #fff;
}
.ex-final__name {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 700; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ex-final__num { font-size: 13px; font-weight: 900; color: var(--text-2); flex: none; }
.ex-final__num.is-ok { color: var(--green-dark); }
:root[data-theme="dark"] .ex-final__num.is-ok { color: #7CE04A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ex-final__num.is-ok { color: #7CE04A; }
}

@media (min-width: 700px) {
  .ex-block__title { font-size: 18px; }
  .ex-q__text, .ex-bubble__text { font-size: 15.5px; }
}

/* ========================= Lug'at (kartochkalar) ========================= */

.voc { gap: 0; }
.voc__intro {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--text-2);
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--gradient-soft);
  margin-bottom: 14px;
}

.voc-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.voc-head__row { display: flex; align-items: center; gap: 10px; }
.voc-head__title { flex: 1; min-width: 0; font-weight: 900; font-size: 14.5px; }
.voc-head__count {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
}
.voc-head__meta { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--text-2); }

/* Kartochka */
.voc-card {
  position: relative;
  padding: 26px 20px 22px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform .15s ease, border-color .2s ease;
  animation: screen-in .25s ease both;
}
.voc-card:active { transform: scale(.99); }
.voc-card.is-revealed { border-color: color-mix(in srgb, var(--brand-1) 40%, var(--border)); }
.voc-card__top { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.voc-card__word { font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.voc-card__pron { font-size: 15px; font-weight: 700; color: var(--text-3); }
.voc-speak {
  width: 46px; height: 46px;
  margin-top: 8px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
  background: var(--gradient-soft);
  color: var(--brand-1);
  transition: transform .12s ease;
}
.voc-speak:active { transform: scale(.92); }
.voc-card__hint { margin-top: 16px; font-size: 12.5px; font-weight: 700; color: var(--text-3); }

.voc-card__back {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: gr-open .22s ease both;
}
.voc-card__uz { font-size: 20px; font-weight: 900; color: var(--brand-1); }
.voc-card__def { font-size: 14px; line-height: 1.6; font-weight: 600; color: var(--text-2); }
.voc-card__ex {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-align: left;
}
.voc-card__ex-en { font-size: 14.5px; font-weight: 800; line-height: 1.55; }
.voc-card__ex-speak { color: var(--brand-1); cursor: pointer; }
.voc-card__ex-uz { font-size: 13px; font-weight: 600; color: var(--text-2); margin-top: 3px; }
.voc-card__note {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.55;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 150, 0, .1);
}

.voc-nav { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.voc-nav__btn {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 900;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.voc-nav__btn:active { transform: scale(.93); }
.voc-nav__hint { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-3); }

.voc-actions { display: flex; gap: 10px; margin-top: 14px; }
.voc-actions__btn { flex: 1; font-size: 14px; padding: 14px 10px; }

.voc-groups { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.voc-groups__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: transform .15s ease, background .2s ease;
}
.voc-groups__dot.is-done { background: var(--green); }
.voc-groups__dot.is-active { background: var(--brand-1); transform: scale(1.5); }

/* So'z yasalishi jadvali */
.voc-wf { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.voc-wf__title { font-size: 17px; }
.voc-wf__intro { font-size: 14px; line-height: 1.6; font-weight: 600; color: var(--text-2); }
.voc-wf .gr-table td.is-empty { color: var(--text-3); text-align: center; }

.voc-final { text-align: center; }
.voc-final__emoji { font-size: 48px; }
.voc-final__score { font-size: 26px; font-weight: 900; margin-top: 2px; }
.voc-final__text { font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 1.6; margin-top: 6px; }

@media (min-width: 700px) {
  .voc-card__word { font-size: 36px; }
  .voc-card__uz { font-size: 22px; }
}

/* ------------------------- Ishlab chiqish rejimi ------------------------- */

.devbar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: calc(var(--safe-top) + 6px) 12px 6px;
  background: repeating-linear-gradient(45deg, #FF9600, #FF9600 12px, #E68700 12px, #E68700 24px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.devbar + .topbar { padding-top: 10px; }

/* ========================= Musiqiy tanaffus ========================= */

.mus { gap: 0; }
.mus__intro {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--text-2);
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--gradient-soft);
  margin-bottom: 14px;
}

/* Qo'shiq kartasi */
.mus-song { padding: 18px; }
.mus-song__top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.mus-song__icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, .22);
}
.mus-song__meta { flex: 1; min-width: 0; }
.mus-song__artist { display: block; font-size: 13px; font-weight: 700; opacity: .9; }
.mus-song__name { display: block; font-size: 19px; font-weight: 900; line-height: 1.25; }
.mus-song__level { flex: none; }
.mus-song__why { font-size: 13px; line-height: 1.6; opacity: .92; margin-top: 12px; position: relative; z-index: 1; }

.mus-query {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .16);
  position: relative;
  z-index: 1;
}
.mus-query__label {
  display: block;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 7px;
}
.mus-query__row { display: flex; align-items: center; gap: 8px; }
.mus-query__text {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.4;
  word-break: break-word;
}
.mus-query__copy {
  flex: none;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--brand-1);
  font-size: 12.5px;
  font-weight: 900;
  transition: transform .12s ease;
}
.mus-query__copy:active { transform: scale(.94); }
.mus-song__cta { margin-top: 12px; position: relative; z-index: 1; }
.mus-song__hint { font-size: 12px; opacity: .88; line-height: 1.5; margin-top: 8px; position: relative; z-index: 1; }

/* Bo'limlar */
.mus-sec { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.mus-sec__title { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.35; }
.mus-sec__note { font-size: 13.5px; line-height: 1.6; font-weight: 600; color: var(--text-2); }

/* Ish tartibi */
.mus-steps { display: flex; flex-direction: column; gap: 10px; }
.mus-steps__item { display: flex; gap: 12px; align-items: flex-start; }
.mus-steps__num {
  width: 26px; height: 26px; flex: none;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900;
  color: #fff;
  background: var(--gradient);
}
.mus-steps__text { flex: 1; font-size: 14px; line-height: 1.6; font-weight: 600; color: var(--text-2); }
.mus-steps__text strong { color: var(--brand-1); font-weight: 900; }

/* So'zlar / iboralar / frazal fe'llar */
.mus-words { display: flex; flex-direction: column; gap: 8px; }
.mus-word {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.mus-word.is-open { border-color: color-mix(in srgb, var(--brand-1) 35%, var(--border)); }
.mus-word__head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; text-align: left; }
.mus-word__main { flex: 1; min-width: 0; }
.mus-word__en { display: inline; font-size: 15px; font-weight: 900; }
.mus-word__pron { display: inline; font-size: 12.5px; font-weight: 700; color: var(--text-3); margin-left: 7px; }
.mus-word__uz { display: block; font-size: 13.5px; font-weight: 700; color: var(--brand-1); margin-top: 2px; }
.mus-word__speak {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
  background: var(--gradient-soft);
}
.mus-word__body {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: gr-open .2s ease both;
}
.mus-word__def { font-size: 13.5px; line-height: 1.6; font-weight: 600; color: var(--text-2); }
.mus-word__ex { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.mus-word__ex-en { font-size: 14px; font-weight: 800; line-height: 1.55; }
.mus-word__ex-speak { color: var(--brand-1); cursor: pointer; }
.mus-word__ex-uz { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-top: 2px; }
.mus-word__note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.55;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  background: rgba(255, 150, 0, .1);
}

/* Topshiriqlar */
.mus-tasks__count {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gradient-soft);
  color: var(--brand-1);
  font-size: 12px;
  font-weight: 900;
}
.mus-tasks { display: flex; flex-direction: column; gap: 8px; }
.mus-task {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, background .2s ease;
}
.mus-task.is-done { background: rgba(88, 204, 2, .07); border-color: rgba(88, 204, 2, .4); }
.mus-task__btn { display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 13px 14px; text-align: left; }
.mus-task__box {
  width: 24px; height: 24px; flex: none;
  border-radius: 8px;
  display: grid; place-items: center;
  border: 2px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  margin-top: 1px;
  transition: background .2s ease, border-color .2s ease;
}
.mus-task.is-done .mus-task__box { background: var(--green); border-color: var(--green); }
.mus-task__text { flex: 1; font-size: 14px; line-height: 1.6; font-weight: 600; color: var(--text-2); }
.mus-task__text strong { color: var(--brand-1); font-weight: 900; }
.mus-task.is-done .mus-task__text { color: var(--text-3); }

.mus-tip { margin-top: 22px; }

@media (min-width: 700px) {
  .mus-song__name { font-size: 22px; }
  .mus-sec__title { font-size: 18px; }
}

/* ------------------------------ Profil ------------------------------ */

.profile-head { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 20px; border-radius: var(--r-xl); }
.avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 900;
  background: rgba(255, 255, 255, .22);
  border: 3px solid rgba(255, 255, 255, .5);
  color: #fff;
  overflow: hidden;
  position: relative; z-index: 1;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-head__name { font-size: 20px; font-weight: 900; position: relative; z-index: 1; }
.profile-head__tag { font-size: 13px; opacity: .85; font-weight: 700; position: relative; z-index: 1; }

.achievements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.achievement { text-align: center; }
.achievement__badge {
  width: 100%; aspect-ratio: 1;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.achievement.is-locked .achievement__badge { filter: grayscale(1); opacity: .45; }
.achievement__name { font-size: 10.5px; font-weight: 700; color: var(--text-2); margin-top: 5px; line-height: 1.25; }

.setting {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.setting:last-child { border-bottom: none; }
.setting__label { flex: 1; font-weight: 700; font-size: 14.5px; }
.setting__value { font-size: 13px; color: var(--text-2); font-weight: 700; }

.switch { width: 48px; height: 28px; border-radius: 999px; background: var(--border); position: relative; flex: none; transition: background .2s ease; }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.switch.is-on { background: var(--green); }
.switch.is-on::after { transform: translateX(20px); }

/* ------------------------------ To'lov ------------------------------ */

.plans { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 760px) { .plans { display: grid; grid-template-columns: repeat(2, 1fr); align-items: stretch; } }

.plan {
  position: relative;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: left;
  width: 100%;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s ease, transform .12s ease;
}
.plan:active { transform: scale(.99); }
.plan.is-selected { border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(124, 92, 252, .12); }
.plan__badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--gold); color: #4A3600;
  font-size: 11px; font-weight: 900;
}
.plan__name { font-weight: 900; font-size: 16px; padding-right: 100px; }
.plan__price { font-size: 24px; font-weight: 900; color: var(--brand-1); }
.plan__price small { font-size: 13px; color: var(--text-2); font-weight: 700; }
.plan__old { font-size: 13px; color: var(--text-3); text-decoration: line-through; font-weight: 700; }
.plan__note { font-size: 12.5px; color: var(--text-2); font-weight: 600; }

.features { display: flex; flex-direction: column; gap: 10px; }
.feature { display: flex; align-items: flex-start; gap: 10px; }
.feature__check {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(88, 204, 2, .16);
  color: var(--green-dark);
  font-size: 12px; font-weight: 900;
}
.feature__text { font-size: 14px; font-weight: 700; }
.feature__text small { display: block; font-weight: 600; color: var(--text-2); font-size: 12.5px; }

.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-method {
  display: flex; align-items: center; gap: 10px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 2px solid var(--border);
  font-weight: 800; font-size: 14px;
  transition: border-color .18s ease;
}
.pay-method.is-selected { border-color: var(--brand-1); background: var(--gradient-soft); }
.pay-method__logo { font-size: 20px; }

.checkout {
  position: sticky;
  z-index: 10;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
  margin: 18px -16px 0;
  padding: 10px 16px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (min-width: 900px) {
  .checkout { bottom: 16px; margin: 18px -32px 0; padding: 12px 32px; }
}

.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:last-child { border-bottom: none; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0;
  font-weight: 800; font-size: 14.5px;
  width: 100%; text-align: left;
}
.faq__a { font-size: 13.5px; color: var(--text-2); font-weight: 600; padding: 0 0 14px; }

/* ========================= Ma'lumotnoma (reference) ========================= */

/* Alifbo va Noto'g'ri fe'llar bo'limlari uchun umumiy qism:
   sarlavha kartasi, intro va JSON'dagi stats sonlari. */

.ref-hero { padding: 16px 18px; }
.ref-hero__top { display: flex; align-items: center; gap: 12px; }
.ref-hero__icon { font-size: 30px; line-height: 1; }
.ref-hero__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ref-hero__title { font-size: 17px; font-weight: 900; }
.ref-hero__sub { font-size: 13px; font-weight: 700; opacity: .9; }

.ref__intro { font-size: 14.5px; font-weight: 600; color: var(--text-2); line-height: 1.65; margin: 0 2px; }
.ref__intro strong { color: var(--text); font-weight: 800; }

.ref-stats { display: flex; flex-direction: column; gap: 10px; }
.ref-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}
.ref-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 6px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.ref-stat__num { font-size: 20px; font-weight: 900; color: var(--brand-1); line-height: 1.1; }
.ref-stat__label { font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.ref-stats__row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ref-stats__row-label { font-size: 12.5px; font-weight: 800; color: var(--text-2); margin-right: 2px; }

.ref-warns { display: flex; flex-direction: column; gap: 12px; }

/* -------------------------- Alifbo va talaffuz -------------------------- */

/* Jadvallar, misollar va bo'lim sarlavhalari mavjud uslublardan olinadi
   (.gr-table, .gr-ex, .mus-sec), bu yerda faqat alifboga xos qism. */

/* Bo'limlar o'z margin'i bilan ajraladi (musiqa bo'limidagi kabi) */
.alpha { display: flex; flex-direction: column; gap: 0; }

/* 26 harf — mobil ekranda 2 ustun */
.alpha-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.alpha-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.alpha-card--vowel { border-color: color-mix(in srgb, var(--brand-1) 32%, var(--border)); }
.alpha-card--both { border-color: color-mix(in srgb, var(--orange) 32%, var(--border)); }
.alpha-card__head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.alpha-card__letter { font-size: 20px; font-weight: 900; letter-spacing: -.02em; flex: none; }
.alpha-card__names { display: flex; flex-direction: column; min-width: 0; }
.alpha-card__name { font-size: 12.5px; font-weight: 800; color: var(--brand-1); }
.alpha-card__nameuz { font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.alpha-card__ex { display: flex; flex-direction: column; gap: 2px; }
.alpha-card__ex li { font-size: 12px; font-weight: 700; color: var(--text-2); line-height: 1.45; }
.alpha-card__note {
  font-size: 11.5px; font-weight: 600; line-height: 1.5; color: var(--text-2);
  padding: 7px 9px;
  border-radius: var(--r-sm);
  background: rgba(255, 150, 0, .1);
}

.alpha-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.alpha-chip {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
  background: var(--gradient-soft);
  color: var(--brand-1);
}

/* 44 tovush — uch tab */
.alpha-tabs { display: flex; flex-wrap: wrap; align-self: flex-start; max-width: 100%; }
.alpha-tabs .segmented__btn b { font-weight: 900; opacity: .75; }
.alpha-cat__title { font-size: 14px; margin: 2px 0 8px; color: var(--text-2); }
.alpha-sounds__list { display: flex; flex-direction: column; gap: 8px; }
.alpha-sound {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
/* O'zbek tilida yo'q tovush — ajratib ko'rsatiladi */
.alpha-sound.is-hard {
  border-color: color-mix(in srgb, var(--red) 38%, var(--border));
  background: linear-gradient(0deg, rgba(255, 75, 75, .05), rgba(255, 75, 75, .05)), var(--surface);
}
.alpha-sound__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.alpha-sound__ipa { font-size: 17px; font-weight: 900; }
.alpha-hard {
  font-size: 11.5px; font-weight: 800;
  color: var(--red);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 75, 75, .12);
}
.alpha-sound__uz { font-size: 13px; font-weight: 600; line-height: 1.55; color: var(--text-2); }

/* Juftliklar */
.alpha-pairs { display: flex; flex-direction: column; gap: 8px; }
.alpha-pair {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.alpha-pair__head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; }
.alpha-pair__vs { color: var(--text-3); font-weight: 800; }
.alpha-pair__rows { display: flex; flex-direction: column; gap: 6px; }
.alpha-pair__row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.alpha-pair__w {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 14px; font-weight: 800;
  text-align: center;
}
.alpha-pair__note { font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.5; }

/* O'qish qoidalari va urg'u */
.alpha-rules, .alpha-stress { display: flex; flex-direction: column; gap: 14px; }
.alpha-rule { display: flex; flex-direction: column; gap: 8px; }
.alpha-rule__title { font-size: 14.5px; }
.alpha-rule__text, .alpha-rule__note {
  font-size: 13.5px; font-weight: 600; line-height: 1.6; color: var(--text-2);
}

@media (min-width: 700px) {
  .alpha-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .alpha-card__letter { font-size: 22px; }
}

/* -------------------------- Noto'g'ri fe'llar -------------------------- */

/* Uch shakl jadvalga solinmaydi: mobil ekranda bitta karta ichida uch qator,
   560px dan keng ekranda uch ustun. Shuning uchun na sahifada, na karta
   ichida gorizontal skroll bo'lmaydi. */

.vb-root { display: flex; flex-direction: column; gap: 0; }

.vb-tools { display: flex; flex-direction: column; gap: 8px; }
.vb-search { width: 100%; flex: none; }
.vb-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.vb-filter { padding: 7px 12px; font-size: 13px; }
.vb-count { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--text-2); }

.vb-groups { display: flex; flex-direction: column; }
.vb-group { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.vb-group__head {
  position: sticky;
  top: calc(var(--safe-top) + 58px);
  z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}
.vb-group__title { font-size: 14px; font-weight: 900; min-width: 0; }
.vb-group__count {
  margin-left: auto; flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px; font-weight: 900;
}
.vb-group__pattern { font-size: 13px; font-weight: 800; color: var(--brand-1); }
.vb-group__lead { font-size: 13px; font-weight: 600; line-height: 1.55; color: var(--text-2); }
.vb-sub__title { font-size: 13px; font-weight: 800; color: var(--text-2); margin-top: 6px; }

.vb-list { display: flex; flex-direction: column; gap: 8px; }
.vb {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.vb.has-note { border-color: color-mix(in srgb, var(--orange) 34%, var(--border)); }
.vb__head { display: flex; align-items: center; gap: 7px; }
.vb__star { flex: none; color: var(--gold); font-size: 14px; }
.vb__uz { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; }
.vb__level { flex: none; padding: 3px 8px; font-size: 11px; }

.vb__forms { display: grid; grid-template-columns: 1fr; gap: 6px; }
.vb-form {
  display: flex; align-items: baseline; gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  overflow-wrap: anywhere;
}
.vb-form__label { flex: none; width: 60px; font-size: 11px; font-weight: 800; color: var(--text-3); }
.vb-form__word { font-size: 15px; font-weight: 900; }
.vb-form__ipa { font-size: 12px; font-weight: 700; color: var(--text-3); }

.vb__ex { font-size: 13px; font-weight: 700; line-height: 1.5; }
.vb__exuz { font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.5; margin-top: -4px; }
.vb__note {
  font-size: 12.5px; font-weight: 600; line-height: 1.5; color: var(--text-2);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: rgba(255, 150, 0, .12);
}

@media (min-width: 560px) {
  .vb__forms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vb-form { flex-direction: column; align-items: flex-start; gap: 2px; }
  .vb-form__label { width: auto; }
}

/* ---------------------------- Yuklab olish ---------------------------- */

.dl-files { display: flex; flex-direction: column; gap: 8px; }
.dl-file { display: flex; flex-direction: column; gap: 6px; }
.dl-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .12s ease, border-color .18s ease;
}
.dl-btn:active { transform: scale(.99); }
.dl-btn__icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px;
  background: var(--gradient-soft);
  color: var(--brand-1);
}
.dl-btn__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dl-btn__label { font-size: 14px; font-weight: 800; }
.dl-btn__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dl-btn__name { font-size: 11.5px; font-weight: 700; color: var(--text-3); overflow-wrap: anywhere; }
.dl-btn__size { padding: 2px 8px; font-size: 11px; }
.dl-btn__action {
  flex: none;
  font-size: 12px; font-weight: 900;
  color: var(--brand-1);
}
.dl-file__note { font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.5; padding: 0 4px; }
.dl-hint { font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.5; }

.dl-fallback {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 150, 0, .12);
}
.dl-fallback__text { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.dl-fallback__url {
  font-size: 11.5px; font-weight: 700;
  overflow-wrap: anywhere;
  color: var(--text);
}

@media (max-width: 380px) {
  .dl-btn__action { display: none; }
}

/* Talaffuzni tinglash (speechSynthesis) */
.alpha-tts {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--gradient-soft);
  font-size: 12.5px; font-weight: 600; line-height: 1.55; color: var(--text-2);
}
.alpha-tts__icon { flex: none; }
.alpha-tts__warn { color: var(--orange); font-weight: 800; }

.alpha-say {
  margin-left: 5px;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1;
  color: var(--brand-1);
  vertical-align: middle;
  opacity: .75;
  transition: opacity .15s ease, transform .12s ease;
}
.alpha-say:active { transform: scale(.9); opacity: 1; }

/* O'qilayotgan so'z qisqa vaqt belgilanib turadi */
.alpha-card__ex li.is-speaking,
.alpha-chip.is-speaking,
.alpha-pair__w.is-speaking {
  background: var(--gradient);
  color: #fff;
  border-radius: var(--r-sm);
}
.alpha-card__ex li.is-speaking { padding: 1px 6px; margin: -1px -6px; }
.alpha-chip.is-speaking .alpha-say,
.alpha-pair__w.is-speaking .alpha-say,
.alpha-card__ex li.is-speaking .alpha-say { color: #fff; opacity: 1; }

/* Mashqlar bo'limi ma'lumotnoma ekranida */
.ref-ex__badge { margin-left: auto; }
.ref-ex .pane { gap: 12px; }
.ref-ex .ex-head { top: calc(var(--safe-top) + 58px); }
