/* === O'zgaruvchilar (palitra) === */
:root {
  --bg-main: #e6f3ff;
  --bg-warm: #faf8f5;
  --primary: #0088cc;
  --primary-hover: #006699;
  --text: #1a1a1a;
  --text-muted: #6b5344;
  --text-legal: #8b6914;
  --stats-green: #2e7d32;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  --card-yellow: #ffe9a7;
  --card-yellow-soft: #fff5d6;
  --card-blue: #2f8cff;
  --card-blue-soft: #dbe9ff;
  --card-green: #b5f1c9;
  --card-green-soft: #e2f9ec;
  --card-cream-soft: #ffe7c4;
  --card-purple-soft: #e6ddff;
  --text-soft: #4a4a4a;
  --speaking-violet: #d4c5f9;
  --speaking-violet-bg: #ebe4fc;
  --speaking-blue: #2563eb;
  --speaking-blue-bg: #3b82f6;
}

/* === Asosiy === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.5;
}

/* Bitta scroll konteyner: overscroll parent (Telegram) ga yetib ketmasin, ilova yopilmasin */
/* safe-area: notch/camera li qurilmalarda kontent kesilmasin */
.app {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px 24px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

/* === Ekranlar === */
.screen {
  display: none;
  width: 100%;
  max-width: 420px;
}

.screen--active {
  display: block;
}

.screen__inner {
  text-align: center;
}

/* === Welcome ekran === */
.title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.subtitle {
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.brand__icon {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Asosiy tugma */
.btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--secondary {
  background: var(--white);
  color: var(--primary);
  border-radius: 999px;
  padding-inline: 20px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

/* Legal matn */
.legal {
  margin: 0 0 28px;
  font-size: 0.8rem;
  color: var(--text-legal);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.link {
  color: var(--text-legal);
  font-weight: 600;
  text-decoration: underline;
}

.link:hover {
  text-decoration: none;
}

/* Pastki statistika */
.stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--stats-green);
}

.stats__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stats-green);
  flex-shrink: 0;
}

/* === Home ekran === */
.screen--home .screen__inner {
  text-align: left;
}

.home {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 16px 16px 12px;
  box-shadow: var(--shadow);
}

.home__admin-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(249, 115, 22, 0.08));
  border-radius: 10px;
  border: 1px solid rgba(234, 88, 12, 0.2);
}

.home__admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.home__admin-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.home__admin-icon {
  flex-shrink: 0;
}

.home__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.home__title {
  font-weight: 600;
  font-size: 1rem;
}

.home__topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home__icon {
  position: relative;
  color: var(--text-soft);
}
.home__icon:hover {
  color: var(--primary);
}
.home__notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  border: 2px solid var(--app-bg, #fff);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4);
}
.home__notif-badge.is-hidden,
.speaking__header-badge.is-hidden,
.reading__header-badge.is-hidden,
.listening__header-badge.is-hidden { display: none !important; }
body.app--dark .home__notif-badge { border-color: var(--app-bg); }

/* Reklama joyi: admin panel orqali kontent (#home-ad-slot) ga yuklanadi */
.home__ad-slot {
  min-height: 72px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(0, 136, 204, 0.25);
}
.home__ad-slot:empty {
  display: block;
}
.home__ad-slot:not(:empty) {
  border-style: solid;
  border-color: transparent;
  overflow: hidden;
}

.icon-btn {
  border: none;
  background: transparent;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home__live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--stats-green);
}

.home__section {
  margin-bottom: 16px;
}

.home__section-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
}

.card {
  border-radius: 18px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
}

.card--white {
  box-shadow: var(--shadow);
}

.card--challenge {
  background: linear-gradient(135deg, var(--card-yellow-soft), var(--card-yellow));
}

a.card { text-decoration: none; color: inherit; display: flex; }
a.card:hover { opacity: 0.95; }

.card--primary {
  background: linear-gradient(135deg, var(--card-blue), #2b6fe0);
  color: var(--white);
  margin-bottom: 10px;
}

.card--writing {
  background: linear-gradient(135deg, var(--card-green-soft), var(--card-green));
  flex-direction: column;
  align-items: stretch;
  padding: 10px 12px;
  gap: 8px;
  cursor: pointer;
}
.card--writing__top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.card--writing .card__icon--writing {
  flex-shrink: 0;
  margin: 0;
}
.card--writing .card__title--writing {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}
.btn--writing {
  width: 100%;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon-wrap--circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.card__icon svg[stroke] {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__body {
  flex: 1;
}

.card__title {
  margin: 0 0 2px;
  font-weight: 600;
  font-size: 0.95rem;
}

.card__subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.card__title--on-dark {
  color: var(--white);
}

.card__subtitle--on-dark {
  color: rgba(255, 255, 255, 0.9);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  color: #915c00;
  white-space: nowrap;
}

.pill--time {
  margin-left: auto;
}

.pill--soft {
  background: rgba(255, 255, 255, 0.9);
  color: #2865d9;
}

.drills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

a.drill-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: opacity 0.15s;
}
a.drill-card:hover { opacity: 0.9; }
a.drill-card:active { opacity: 0.95; }

.drill-card {
  background: var(--card-blue-soft);
  border-radius: 16px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drill-card .drill-card__time {
  margin-top: 4px;
}
.drill-card__footer--row {
  flex-wrap: wrap;
  gap: 6px;
}

.drill-card:nth-child(2) {
  background: var(--card-blue-soft);
}

.drill-card:nth-child(3) {
  background: var(--card-purple-soft);
}

.drill-card__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.drill-card__subtitle {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.drill-card__footer {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.drill-card__time {
  font-size: 0.7rem;
  color: #58657a;
  margin: 0;
}

.explore {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mini-card {
  border-radius: 18px;
  padding: 10px 12px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-card--reading {
  background: var(--card-cream-soft);
}

.mini-card--listening {
  background: var(--card-purple-soft);
}

.mini-card__icon {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
}
.mini-card--reading .mini-card__icon { color: #b45309; }
.mini-card--listening .mini-card__icon { color: #5b21b6; }

.mini-card__title {
  margin: 0;
  font-weight: 600;
  font-size: 0.88rem;
}

.mini-card__subtitle {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.3;
}

.home__bottom {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.bottom-stat {
  flex: 1;
  background: var(--bg-warm);
  border-radius: 18px;
  padding: 8px 6px;
  text-align: center;
}

.bottom-stat__icon {
  width: 22px;
  height: 22px;
  margin: 0 auto 2px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-stat__icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}
.bottom-stat__icon svg[stroke] {
  fill: none;
  stroke: #fff;
}

.bottom-stat__icon--xp {
  background: linear-gradient(135deg, #ffd54f, #ffb300);
}

.bottom-stat__icon--level {
  background: linear-gradient(135deg, #64b5f6, #1976d2);
}

.bottom-stat__label {
  margin: 0;
  font-size: 0.7rem;
  color: #757575;
}

.bottom-stat__value {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* === Speaking screen === */
.screen--speaking .screen__inner {
  text-align: left;
  padding: 0 16px 24px;
}

.speaking {
  background: transparent;
  padding: 0;
}

.speaking__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.speaking__back {
  color: var(--primary);
  padding: 6px;
}
.speaking__back:hover { color: var(--primary-hover); }

.speaking__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.speaking__topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.speaking__header-btn {
  position: relative;
  padding: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
.speaking__header-btn:hover { color: var(--primary); background: #fff; }
.speaking__header-icon { flex-shrink: 0; }
.speaking__header-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  border: 2px solid var(--card-bg, #fff);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4);
}
.speaking__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.speaking-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.1s, box-shadow 0.2s;
}
.speaking-card:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.speaking-card:active { transform: translateY(0); }

.speaking-card--violet {
  background: linear-gradient(135deg, var(--speaking-violet-bg), var(--speaking-violet));
}

.speaking-card--blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: var(--white);
  position: relative;
}
.speaking-card--blue .speaking-card__desc { color: rgba(255,255,255,0.9); }

.speaking-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.4);
  color: #5b21b6;
}
.speaking-card__icon svg { width: 18px; height: 18px; }

.speaking-card__body { flex: 1; min-width: 0; }

.speaking-card__title {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
}

.speaking-card__desc {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.speaking-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.speaking-card__duration {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
}
.speaking-card--blue .speaking-card__duration { color: rgba(255,255,255,0.95); }

.speaking-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.speaking-card__stars .star {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
}
.speaking-card__stars .star path { fill: currentColor; }
.speaking-card__stars .star--filled { color: #d97706; }
.speaking-card--blue .speaking-card__stars .star--filled { color: #fde047; }
.speaking-card--blue .speaking-card__stars .star { color: #fde047; }

.speaking-card__rocket {
  position: absolute;
  top: 10px;
  right: 10px;
  color: rgba(255,255,255,0.9);
}
.speaking-card__rocket svg { width: 20px; height: 20px; }

.speaking__section-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.quick-drills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.quick-drill {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
  color: var(--text);
  position: relative;
  min-height: 82px;
  transition: transform 0.1s, box-shadow 0.2s;
}
.quick-drill:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.quick-drill:active { transform: translateY(0); }

.quick-drill__content {
  flex: 1;
  padding-right: 42px;
}

.quick-drill__title {
  margin: 0 0 2px;
  font-size: 0.8rem;
  font-weight: 700;
}

.quick-drill__desc {
  margin: 0 0 6px;
  font-size: 0.7rem;
  color: var(--text-soft);
  line-height: 1.25;
}

.quick-drill__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}

.quick-drill__duration {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  color: var(--text-soft);
}

.quick-drill__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.quick-drill__stars .star {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
}
.quick-drill__stars .star--filled { color: #d97706; }
.quick-drill__stars .star--filled path { fill: currentColor; }
.quick-drill__stars .star--outline { color: #6b7280; }
.quick-drill__stars .star--outline path { fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Play tugmasi: ixcham (Listening uslubida) */
.quick-drill__play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.4);
  pointer-events: none;
}
.quick-drill__play-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  color: var(--white);
}

/* === Writing screen === */
.screen--writing .screen__inner { padding: 0 16px 24px; background: transparent; text-align: left; }
.writing__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.writing__back { color: var(--primary); padding: 6px; background: none; border: none; cursor: pointer; }
.writing__back:hover { color: var(--primary-hover); }
.writing__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.writing__topbar-spacer { flex: 1; }
.writing__section { margin-bottom: 16px; }
.writing__section-title { margin: 0 0 10px; font-size: 0.95rem; font-weight: 700; color: var(--text-muted); }
.writing-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(0,0,0,0.06);
}
.writing-card:hover { opacity: 0.95; }
.writing-card__emoji { font-size: 1.4rem; }
.writing-card__icon { display: flex; color: var(--primary); }
.writing-card__body { flex: 1; min-width: 0; }
.writing-card__title { margin: 0 0 2px; font-size: 0.95rem; font-weight: 700; color: var(--text); }
.writing-card__desc { margin: 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.35; }
.writing-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.75rem; color: var(--text-soft); }
.writing-card__duration { display: flex; align-items: center; gap: 3px; }
.writing-card__stars { color: #d97706; font-size: 0.75rem; }
.writing-card__arrow { font-size: 1rem; color: var(--text-muted); }
.writing-card--journal { background: linear-gradient(135deg, #fff5eb, #ffe8d6); }
.writing-card--past { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.writing-card--mock { background: linear-gradient(135deg, #fef2f2, #fee2e2); }
.writing__skills { display: flex; flex-direction: column; gap: 8px; }
.writing-skill {
  display: block;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(0,0,0,0.06);
}
.writing-skill:hover { opacity: 0.95; }
.writing-skill__title { margin: 0 0 2px; font-size: 0.9rem; font-weight: 700; color: var(--text); }
.writing-skill__desc { margin: 0; font-size: 0.8rem; color: var(--text-muted); line-height: 1.35; }
.writing-skill__footer { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.75rem; color: var(--text-soft); }
.writing-skill__duration { display: flex; align-items: center; gap: 3px; }
.writing-skill__stars { color: #d97706; font-size: 0.75rem; }

/* === Reading screen (modern blue theme) === */
.screen--reading .screen__inner { padding: 0 16px 24px; background: transparent; text-align: left; }
.reading__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.reading__back { color: #0369a1; padding: 6px; background: none; border: none; cursor: pointer; }
.reading__back:hover { color: #0284c7; }
.reading__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); flex: 1; text-align: center; }
.reading__topbar-right { display: flex; align-items: center; gap: 6px; }
.reading__header-btn {
  position: relative;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  color: #0369a1;
  cursor: pointer;
}
.reading__header-icon { display: block; }
.reading__header-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  border: 2px solid var(--card-bg, #fff);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4);
}
.reading__section { margin-bottom: 16px; }
.reading__section-title { margin: 0 0 10px; font-size: 0.95rem; font-weight: 700; color: #475569; }
.reading__section--mock { margin-bottom: 20px; }
.reading__section-title--mock {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0c4a6e;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reading__section-title--mock::before {
  content: '';
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, #0ea5e9, #0369a1);
}
.reading-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(6, 182, 212, 0.2);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}
.reading-card:hover { opacity: 0.95; box-shadow: 0 4px 14px rgba(14, 165, 233, 0.15); }
.reading-card__icon { display: flex; color: #0369a1; flex-shrink: 0; }
.reading-card__body { flex: 1; min-width: 0; }
.reading-card__title { margin: 0 0 4px; font-size: 0.95rem; font-weight: 700; color: #0c4a6e; }
.reading-card__desc { margin: 0; font-size: 0.82rem; color: #475569; line-height: 1.35; }
.reading-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.75rem; color: #64748b; }
.reading-card__duration { display: flex; align-items: center; gap: 3px; }
.reading-card__stars { color: #0369a1; font-size: 0.75rem; }
.reading-card--mock {
  padding: 14px 16px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 40%, #7dd3fc 100%);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}
.reading-card--mock:hover { box-shadow: 0 6px 16px rgba(14, 165, 233, 0.2); }
.reading-card--mock .reading-card__title { font-size: 1rem; color: #075985; }
.reading-card--mock .reading-card__desc { font-size: 0.82rem; color: #0c4a6e; line-height: 1.4; }
.reading__skills { display: flex; flex-direction: column; gap: 8px; }
.reading-skill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  border: 1px solid #e0f2fe;
  background: linear-gradient(135deg, #f8fafc, #f0f9ff);
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.08);
}
.reading-skill:hover { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); box-shadow: 0 3px 10px rgba(14, 165, 233, 0.12); }
.reading-skill__content { flex: 1; min-width: 0; }
.reading-skill__title { margin: 0 0 2px; font-size: 0.88rem; font-weight: 700; color: #0c4a6e; }
.reading-skill__desc { margin: 0; font-size: 0.8rem; color: #475569; line-height: 1.35; }
.reading-skill__footer { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.75rem; color: #64748b; }
.reading-skill__duration { display: flex; align-items: center; gap: 3px; }
.reading-skill__stars { color: #0369a1; font-size: 0.75rem; }
.reading-skill__stars .star--filled { color: #0369a1; }
.reading-skill__stars .star--outline { color: #94a3b8; }
.reading-skill__arrow { font-size: 1rem; color: #0ea5e9; font-weight: 700; }

/* === Listening (Reading-style blue theme, English labels) === */
.screen.screen--listening { display: none; }
.screen.screen--listening.screen--active { display: flex; flex-direction: column; min-height: 0; }
.screen--listening .listening {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  background: #f0f9ff;
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  border-radius: 24px;
  overflow: hidden;
}
.listening__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e0f2fe;
  flex-shrink: 0;
}
.listening__back { color: #0c4a6e; }
.listening__title { margin: 0; font-size: 1.25rem; font-weight: 700; color: #0c4a6e; }
.listening__topbar-right { display: flex; align-items: center; gap: 8px; }
.listening__header-btn {
  position: relative;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  color: #0369a1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.listening__header-btn:hover { color: #0284c7; background: #fff; border-color: #7dd3fc; }
.listening__header-icon { display: block; flex-shrink: 0; }
.listening__header-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  border: 2px solid var(--card-bg, #fff);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4);
}
.listening__section { margin-bottom: 16px; padding: 0 16px; }
.listening__section-title { margin: 0 0 10px; font-size: 0.95rem; font-weight: 700; color: #475569; }
.listening__section-title--exam {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  color: #0c4a6e;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.listening__section-title--exam::before {
  content: '';
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, #0ea5e9, #0369a1);
}
.listening-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  margin-bottom: 12px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(14, 165, 233, 0.2);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.15);
}
.listening-card:hover { opacity: 0.95; box-shadow: 0 6px 18px rgba(14, 165, 233, 0.2); }
.listening-card--exam {
  padding: 12px 14px;
  gap: 10px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.18);
}
.listening-card--exam:hover { box-shadow: 0 6px 16px rgba(14, 165, 233, 0.22); }
.listening-card--exam .listening-card__icon { width: 22px; height: 22px; color: #0369a1; }
.listening-card--exam .listening-card__title { font-size: 0.95rem; margin: 0 0 4px; color: #075985; }
.listening-card--exam .listening-card__desc { font-size: 0.8rem; line-height: 1.35; margin: 0; color: #0c4a6e; }
.listening-card--exam .listening-card__meta { margin-top: 6px; font-size: 0.75rem; gap: 8px; color: #64748b; }
.listening-card--exam .listening-card__stars { color: #0369a1; }
.listening-card__icon { display: flex; color: #0369a1; flex-shrink: 0; }
.listening-card__body { flex: 1; min-width: 0; }
.listening-card__title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; color: #0c4a6e; }
.listening-card__desc { margin: 0; font-size: 0.88rem; color: #475569; line-height: 1.45; }
.listening-card__meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 0.82rem; color: #64748b; }
.listening-card__duration { display: flex; align-items: center; gap: 4px; }
.listening-card__stars { color: #0369a1; }
.listening__skills {
  padding: 0 16px 48px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.listening__skills--grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
}
.listening-skill {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  border: 1px solid #e0f2fe;
  background: #f0f9ff;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.08);
}
.listening-skill:hover { background: #e0f2fe; box-shadow: 0 3px 10px rgba(14, 165, 233, 0.12); }
.listening-skill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  flex-shrink: 0;
}
.listening-skill__icon svg { width: 14px; height: 14px; }
.listening-skill__title { margin: 0 0 2px; font-size: 0.8rem; font-weight: 700; color: #0c4a6e; line-height: 1.25; }
.listening-skill__desc { margin: 0; font-size: 0.7rem; color: #475569; line-height: 1.3; }
.listening-skill__footer { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.65rem; color: #64748b; }
.listening-skill__duration { display: flex; align-items: center; gap: 3px; }
.listening-skill__duration svg { width: 10px; height: 10px; flex-shrink: 0; }
.listening-skill__stars { color: #0369a1; font-size: 0.65rem; }
.listening-skill__stars .star--filled { color: #0369a1; }
.listening-skill__stars .star--outline { color: #94a3b8; }

/* Full Mock Exam: umumiy taymer barcha part ekranlarida */
.listening-mock-timer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #0c4a6e, #0369a1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(3, 105, 161, 0.25);
}
.listening-mock-timer-bar__label { opacity: 0.95; }
.listening-mock-timer__value { font-variant-numeric: tabular-nums; min-width: 3.5em; }

/* === Listening Part 1: Logical Responses (kartochka bosiladi, tanlangan ko'k, joriy savol chiziq) === */
.screen.screen--listening-part1 { display: none; }
.screen.screen--listening-part1.screen--active { display: flex; flex-direction: column; min-height: 0; }
.screen--listening-part1 .listening-l1 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 16px 24px;
  background: #f8fafc;
  border-radius: 24px;
  overflow: hidden;
}
.listening-l1__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  flex-shrink: 0;
}
.listening-l1__back { color: #0c4a6e; }
.listening-l1__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: #0c4a6e; }
.listening-l1__submit {
  display: inline-block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 5px;
}
.listening-l1__player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.listening-l1__play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.listening-l1__play-btn:hover { opacity: 0.95; }
.listening-l1__play-btn.playing .listening-l1__play-icon { display: none; }
.listening-l1__play-btn.playing::after {
  content: '';
  width: 8px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -4px;
  border-radius: 1px;
  box-shadow: 6px 0 0 currentColor;
}
.listening-l1__progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.listening-l1__progress-wrap--no-seek { pointer-events: none; }
.listening-l1__progress-wrap--no-seek .listening-l1__slider { cursor: default; }
.listening-l1__time, .listening-l1__duration {
  font-size: 0.8rem;
  color: #64748b;
  flex-shrink: 0;
}
.listening-l1__slider {
  flex: 1;
  min-width: 0;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: #e0f2fe;
  border-radius: 4px;
  cursor: pointer;
}
.listening-l1__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #0369a1;
  border-radius: 50%;
  cursor: pointer;
}
.listening-l1__instruction {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
}
.listening-l1__questions {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  -webkit-overflow-scrolling: touch;
}
.listening-l1-question-block {
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid transparent;
  transition: border-left-color 0.2s, background 0.2s;
}
.listening-l1-question-block--active {
  border-left-color: #0369a1;
  background: #f0f9ff;
}
.listening-l1-question-block__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0c4a6e;
}
.listening-l1-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.listening-l1-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.listening-l1-option-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.listening-l1-option-card--selected {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1e40af;
}
.listening-l1-option-card__radio {
  width: 20px;
  height: 20px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.listening-l1-option-card--selected .listening-l1-option-card__radio {
  border-color: #2563eb;
  background: #2563eb;
}
.listening-l1-option-card--selected .listening-l1-option-card__radio::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}
.listening-l1-option-card__text { flex: 1; min-width: 0; }

/* === Listening Result (tabs: Results | Feedback; Feedback da Transkript) === */
.screen.screen--listening-result { display: none; }
.screen.screen--listening-result.screen--active { display: flex; flex-direction: column; min-height: 0; }
.screen--listening-result .screen__inner.listening-result {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}
.screen--listening-result .listening-result__topbar {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.listening-result__back { color: #0369a1; }
.listening-result__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); flex: 1; text-align: center; }
.listening-result__spacer { width: 34px; }
.listening-result__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  padding: 0 16px;
}
.listening-result__tab {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
}
.listening-result__tab:hover { color: #0369a1; }
.listening-result__tab--active { color: #0369a1; border-bottom-color: #0369a1; }
.listening-result__panels { flex: 1; overflow-y: auto; padding: 16px; background: #fafafa; }
.listening-result__panel { display: none; }
.listening-result__panel--active { display: block; }
.listening-result__summary {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  margin-bottom: 16px;
}
.listening-result__summary--wrong { background: #fef2f2; border-color: #fecaca; }
.listening-result__summary--correct { background: #f0fdf4; border-color: #bbf7d0; }
.listening-result__score { margin: 0; font-size: 1.75rem; font-weight: 800; }
.listening-result__summary--wrong .listening-result__score { color: #dc2626; }
.listening-result__summary--correct .listening-result__score { color: #16a34a; }
.listening-result__score-label { margin: 4px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.listening-result__breakdown-title { margin: 0 0 10px; font-size: 0.95rem; font-weight: 700; color: var(--text); }
.listening-result__breakdown { display: flex; flex-direction: column; gap: 8px; }
.listening-result__card {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.listening-result__card--wrong { background: #fef2f2; border-color: #fecaca; }
.listening-result__card--correct { background: #f0fdf4; border-color: #bbf7d0; }
.listening-result__card-q { flex: 1 1 100%; font-weight: 700; color: var(--text); }
.listening-result__card-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.listening-result__card-your { color: var(--text-muted); }
.listening-result__card-correct { color: #16a34a; font-weight: 600; }
.listening-result__card-icon { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.listening-result__card-icon--wrong { background: #dc2626; color: #fff; }
.listening-result__card-icon--correct { background: #16a34a; color: #fff; }
.listening-result__feedback-list { display: flex; flex-direction: column; gap: 12px; }
.listening-result__ai-wrap { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.listening-result__ai-btn { width: 100%; margin-bottom: 10px; }
.listening-result__ai-text { font-size: 0.95rem; line-height: 1.5; color: var(--text); white-space: pre-wrap; padding: 12px; background: rgba(14, 165, 233, 0.08); border-radius: 8px; }
.listening-result__feedback-item {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.listening-result__feedback-item--correct { border-color: #bbf7d0; background: #f0fdf4; }
.listening-result__feedback-item h4 { margin: 0 0 8px; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.listening-result__feedback-item p { margin: 0 0 6px; line-height: 1.5; }
.listening-result__feedback-item .listening-result__correct-word { color: #16a34a; font-weight: 600; }
.listening-result__transcript-block {
  margin-top: 10px;
  padding: 10px 12px;
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1e40af;
}
.listening-result__transcript-label { font-weight: 700; margin-bottom: 4px; }

/* === Listening Part 2: Gap Fill (sticky player, inline inputlar) === */
.screen.screen--listening-part2 { display: none; }
.screen.screen--listening-part2.screen--active { display: flex; flex-direction: column; min-height: 0; }
.screen--listening-part2 .listening-l2 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 16px 16px 24px;
  background: #f8fafc;
  border-radius: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.listening-l2__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 10px;
  flex-shrink: 0;
}
.listening-l2__back { color: #0c4a6e; }
.listening-l2__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: #0c4a6e; }
.listening-l2__submit {
  display: inline-block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 5px;
}
/* Sticky player: klaviatura va skroll da ham ustida qoladi */
.listening-l2__player-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  background: #f8fafc;
  padding-bottom: 6px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.listening-l2__player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.listening-l2__play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.listening-l2__play-btn.playing .listening-l2__play-icon { display: none; }
.listening-l2__play-btn.playing::after {
  content: '';
  width: 8px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -4px;
  border-radius: 1px;
  box-shadow: 6px 0 0 currentColor;
}
.listening-l2__progress-wrap { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.listening-l2__progress-wrap--no-seek { pointer-events: none; }
.listening-l2__progress-wrap--no-seek .listening-l2__slider { cursor: default; }
.listening-l2__time, .listening-l2__duration { font-size: 0.8rem; color: #64748b; flex-shrink: 0; }
.listening-l2__slider {
  flex: 1; min-width: 0; height: 8px;
  -webkit-appearance: none; appearance: none; background: #e0f2fe; border-radius: 4px; cursor: pointer;
}
.listening-l2__slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; background: #0369a1; border-radius: 50%; cursor: pointer;
}
.listening-l2__instruction {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.4;
  flex-shrink: 0;
}
.listening-l2__passage-wrap {
  flex: 1;
  min-height: 42vh;
  max-height: 72vh;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  margin: 0 -8px 10px;
  padding: 18px 24px;
  background: #fefce8;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}
.listening-l2__passage {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  max-width: 100%;
}
.listening-l2__passage .listening-l2__segment { display: inline; }
.listening-l2__passage .listening-l2__gap-placeholder {
  display: inline;
  font-weight: 700;
  font-size: 0.86rem;
  color: #0369a1;
  margin: 0 2px;
}
/* Pastdagi javob maydonlari 9–14 – juda ixcham */
.listening-l2__blanks-wrap {
  margin-bottom: 10px;
  padding: 6px 10px 8px;
  background: #f8fafc;
  border: 1px solid #e0f2fe;
  border-radius: 8px;
  flex-shrink: 0;
}
.listening-l2__blanks-title {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
}
.listening-l2__blanks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.listening-l2__blanks-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.listening-l2__blanks-num {
  flex-shrink: 0;
  width: 22px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #0369a1;
}
.listening-l2__blanks-input {
  flex: 1;
  padding: 4px 8px;
  font-size: 0.84rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-sizing: border-box;
  min-height: 30px;
}
.listening-l2__blanks-input:focus {
  outline: none;
  border-color: #0369a1;
  background: #f0f9ff;
}
.listening-l2__blanks-input::placeholder { color: #94a3b8; }
.listening-l2__finish { width: 100%; padding: 12px; font-size: 1rem; font-weight: 700; border-radius: 12px; }

/* === Listening Part 3: Matching Speakers (pastda Submit, Smart Elimination, tooltip) === */
.screen.screen--listening-part3 { display: none; }
.screen.screen--listening-part3.screen--active { display: flex; flex-direction: column; min-height: 0; }
.screen--listening-part3 .listening-l3 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 16px 16px;
  background: #f8fafc;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0));
  border-radius: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: left;
}
.listening-l3__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 10px;
  flex-shrink: 0;
}
.listening-l3__back { color: #0c4a6e; }
.listening-l3__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: #0c4a6e; line-height: 1.3; }
.listening-l3__submit {
  display: inline-block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 5px;
  flex-shrink: 0;
}
.listening-l3__player-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  background: #f8fafc;
  padding-bottom: 4px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.listening-l3__player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.listening-l3__play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.listening-l3__play-btn.playing .listening-l3__play-icon { display: none; }
.listening-l3__play-btn.playing::after {
  content: '';
  width: 8px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -4px;
  border-radius: 1px;
  box-shadow: 6px 0 0 currentColor;
}
.listening-l3__progress-wrap { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.listening-l3__time, .listening-l3__duration { font-size: 0.8rem; color: #64748b; flex-shrink: 0; }
.listening-l3__slider {
  flex: 1; min-width: 0; height: 8px;
  -webkit-appearance: none; appearance: none; background: #e0f2fe; border-radius: 4px; cursor: pointer;
}
.listening-l3__slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; background: #0369a1; border-radius: 50%; cursor: pointer;
}
.listening-l3__instruction {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.35;
  flex-shrink: 0;
}
.listening-l3__options-list {
  margin-bottom: 8px;
  padding: 10px 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
  flex-shrink: 0;
  text-align: left;
}
.listening-l3__options-list strong { display: block; margin-bottom: 6px; color: #0c4a6e; font-size: 0.82rem; text-align: left; }
.listening-l3__match-label { margin: 0 0 8px; font-size: 0.88rem; font-weight: 700; color: #0c4a6e; flex-shrink: 0; }
.listening-l3__speakers {
  flex: 1;
  min-height: 52vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.listening-l3-speaker-row {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  flex-shrink: 0;
}
.listening-l3-speaker-row__name { margin: 0 0 8px; font-size: 0.85rem; font-weight: 700; color: #0c4a6e; }
.listening-l3-speaker-row__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.listening-l3-opt-btn {
  min-width: 36px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.listening-l3-opt-btn:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #94a3b8;
}
.listening-l3-opt-btn--selected {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1e40af;
}
.listening-l3-opt-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #e2e8f0;
  color: #94a3b8;
}
.listening-l3__tooltip {
  position: fixed;
  z-index: 100;
  padding: 8px 12px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #fff;
  background: #1e293b;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  max-width: 90vw;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  left: 0;
  top: 0;
}
.listening-l3__tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

/* === Listening Part 4: Map/Plan (sticky player+xarita, zoom, dropdown, Smart Elimination) === */
.screen.screen--listening-part4 { display: none; }
.screen.screen--listening-part4.screen--active { display: flex; flex-direction: column; min-height: 0; }
.screen--listening-part4 .listening-l4 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 16px 24px;
  background: #f8fafc;
  border-radius: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.listening-l4__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  flex-shrink: 0;
}
.listening-l4__back { color: #0c4a6e; }
.listening-l4__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: #0c4a6e; }
.listening-l4__submit {
  display: inline-block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 5px;
  flex-shrink: 0;
}
.listening-l4__sticky-block {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  background: #f8fafc;
  padding-bottom: 8px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.listening-l4__player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 10px;
}
.listening-l4__play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.listening-l4__play-btn.playing .listening-l4__play-icon { display: none; }
.listening-l4__play-btn.playing::after {
  content: '';
  width: 8px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -4px;
  border-radius: 1px;
  box-shadow: 6px 0 0 currentColor;
}
.listening-l4__progress-wrap { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.listening-l4__time, .listening-l4__duration { font-size: 0.8rem; color: #64748b; flex-shrink: 0; }
.listening-l4__slider {
  flex: 1; min-width: 0; height: 8px;
  -webkit-appearance: none; appearance: none; background: #e0f2fe; border-radius: 4px; cursor: pointer;
}
.listening-l4__slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; background: #0369a1; border-radius: 50%; cursor: pointer;
}
.listening-l4__instruction {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.4;
  flex-shrink: 0;
}
/* Rasm joyi yuklangan rasm o‘lchamiga moslashadi: kichik rasm — kichik blok, katta rasm — maksimal 70vh gacha */
.listening-l4__map-wrap {
  position: relative;
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.listening-l4__map-wrap--no-image {
  min-height: 80px;
  max-height: 160px;
}
.listening-l4__map-img {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
}
.listening-l4__map-zoom {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.listening-l4__map-zoom:hover { background: rgba(0,0,0,0.8); }
.listening-l4__match-label { margin: 8px 0 6px; font-size: 0.82rem; font-weight: 700; color: #0c4a6e; flex-shrink: 0; }
.listening-l4__questions {
  flex: 0 0 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 240px;
  -webkit-overflow-scrolling: touch;
}
.listening-l4-question-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.listening-l4-question-row__label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text);
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0 3px;
}
.listening-l4-question-row__num {
  display: inline-block;
  min-width: 1.8em;
  text-align: right;
  flex-shrink: 0;
}
.listening-l4-question-row__place {
  display: inline-block;
  min-width: 56px;
  min-height: 1.2em;
  border-bottom: 1px dashed #94a3b8;
  padding: 0 3px 1px;
  flex: 1;
  min-width: 56px;
  font-size: 0.8rem;
}
.listening-l4-question-row__place:empty::before {
  content: '\00a0';
}
.listening-l4-question-row__accordion {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.listening-l4-question-row__trigger {
  min-width: 82px;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}
.listening-l4-question-row__trigger:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}
.listening-l4-question-row--open .listening-l4-question-row__trigger {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e40af;
}
.listening-l4-question-row__letters {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  margin-top: 0;
}
.listening-l4-question-row--open .listening-l4-question-row__letters {
  max-height: 240px;
  margin-top: 4px;
}
.listening-l4-question-row__letter-btn {
  width: 28px;
  height: 26px;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.listening-l4-question-row__letter-btn:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #94a3b8;
}
.listening-l4-question-row__letter-btn--selected {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1e40af;
}
.listening-l4-question-row__letter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #e2e8f0;
  color: #94a3b8;
}

/* Lightbox */
.listening-l4-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.listening-l4-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.listening-l4-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.listening-l4-lightbox__close:hover { background: rgba(255,255,255,0.3); }
.listening-l4-lightbox__img-wrap {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
}
.listening-l4-lightbox__img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.15s ease;
}
.listening-l4-lightbox__zoom-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  flex-shrink: 0;
}
.listening-l4-lightbox__zoom-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.listening-l4-lightbox__zoom-btn:hover { background: rgba(255,255,255,0.35); }
.listening-l4-lightbox__scale { color: #fff; font-size: 0.9rem; min-width: 3em; text-align: center; }

/* === Listening Part 5: 3 extracts guruhlangan, kartochka bosiladi, tanlangan och ko'k === */
.screen.screen--listening-part5 { display: none; }
.screen.screen--listening-part5.screen--active { display: flex; flex-direction: column; min-height: 0; }
.screen--listening-part5 .listening-l5 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 16px 24px;
  background: #f8fafc;
  border-radius: 24px;
  overflow: hidden;
}
.listening-l5__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  flex-shrink: 0;
}
.listening-l5__back { color: #0c4a6e; }
.listening-l5__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: #0c4a6e; }
.listening-l5__submit {
  display: inline-block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 5px;
  flex-shrink: 0;
}
.listening-l5__player-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  background: #f8fafc;
  padding-bottom: 4px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.listening-l5__player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.listening-l5__play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.listening-l5__play-btn.playing .listening-l5__play-icon { display: none; }
.listening-l5__play-btn.playing::after {
  content: '';
  width: 8px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -4px;
  border-radius: 1px;
  box-shadow: 6px 0 0 currentColor;
}
.listening-l5__progress-wrap { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.listening-l5__time, .listening-l5__duration { font-size: 0.8rem; color: #64748b; flex-shrink: 0; }
.listening-l5__slider {
  flex: 1; min-width: 0; height: 8px;
  -webkit-appearance: none; appearance: none; background: #e0f2fe; border-radius: 4px; cursor: pointer;
}
.listening-l5__slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; background: #0369a1; border-radius: 50%; cursor: pointer;
}
.listening-l5__instruction {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
}
.listening-l5__chunks {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.listening-l5-chunk {
  padding: 14px 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
}
.listening-l5-chunk__extract-title { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: #0c4a6e; }
.listening-l5-chunk__extract-desc { margin: 0 0 14px; font-size: 0.9rem; color: #475569; line-height: 1.4; }
.listening-l5-chunk__questions { display: flex; flex-direction: column; gap: 14px; }
.listening-l5-q-block { padding: 0; }
.listening-l5-q-block__text { margin: 0 0 10px; font-size: 0.95rem; font-weight: 700; color: var(--text); }
.listening-l5-q-block__options { display: flex; flex-direction: column; gap: 8px; }
/* Kartochka to'liq bosiladi; tanlangan = och ko'k (qizil/yashil imtihon vaqtida ishlatilmaydi) */
.listening-l5-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.listening-l5-option-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.listening-l5-option-card--selected {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1e40af;
}
.listening-l5-option-card__radio {
  width: 20px;
  height: 20px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.listening-l5-option-card--selected .listening-l5-option-card__radio {
  border-color: #2563eb;
  background: #2563eb;
}
.listening-l5-option-card--selected .listening-l5-option-card__radio::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}
.listening-l5-option-card__text { flex: 1; min-width: 0; }

/* === Listening Part 6: Lecture Summary (inline inputlar, sticky player yuqori z-index) === */
.screen.screen--listening-part6 { display: none; }
.screen.screen--listening-part6.screen--active { display: flex; flex-direction: column; min-height: 0; }
.screen--listening-part6 .listening-l6 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 24px;
  -webkit-overflow-scrolling: touch;
  background: #f8fafc;
  border-radius: 24px;
}
.listening-l6__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  flex-shrink: 0;
}
.listening-l6__back { color: #0c4a6e; }
.listening-l6__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: #0c4a6e; }
.listening-l6__submit {
  display: inline-block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 5px;
  flex-shrink: 0;
}
/* Sticky player: klaviatura ochilganda ham ustida qolishi uchun yuqori z-index */
.listening-l6__player-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  background: #f8fafc;
  padding-bottom: 4px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.listening-l6__player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.listening-l6__play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.listening-l6__play-btn.playing .listening-l6__play-icon { display: none; }
.listening-l6__play-btn.playing::after {
  content: '';
  width: 8px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -4px;
  border-radius: 1px;
  box-shadow: 6px 0 0 currentColor;
}
.listening-l6__progress-wrap { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.listening-l6__time, .listening-l6__duration { font-size: 0.8rem; color: #64748b; flex-shrink: 0; }
.listening-l6__slider {
  flex: 1; min-width: 0; height: 8px;
  -webkit-appearance: none; appearance: none; background: #e0f2fe; border-radius: 4px; cursor: pointer;
}
.listening-l6__slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; background: #0369a1; border-radius: 50%; cursor: pointer;
}
.listening-l6__instruction {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
}
.listening-l6__passage-wrap {
  flex-shrink: 0;
  padding: 14px 16px;
  background: #fefce8;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 14px;
}
.listening-l6__passage {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
}
.listening-l6__passage .listening-l6__segment { display: inline; }
.listening-l6__passage .listening-l6__gap-placeholder {
  display: inline;
  font-weight: 700;
  font-size: 0.86rem;
  color: #0c4a6e;
}
.listening-l6__passage .listening-l6__input-wrap {
  display: inline;
  white-space: nowrap;
}
.listening-l6__passage .listening-l6__input {
  display: inline-block;
  min-width: 100px;
  max-width: 100%;
  padding: 4px 8px;
  font-size: 0.9rem;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  vertical-align: middle;
}
.listening-l6__passage .listening-l6__input:focus {
  outline: none;
  border-color: #0369a1;
  box-shadow: 0 0 0 2px rgba(3, 105, 161, 0.2);
}
.listening-l6__passage .listening-l6__input::placeholder { color: #94a3b8; }
.listening-l6__blanks-wrap {
  flex-shrink: 0;
  margin-bottom: 10px;
  padding: 6px 10px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.listening-l6__blanks-title {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0c4a6e;
}
.listening-l6__blanks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.listening-l6__blanks-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.listening-l6__blanks-num {
  flex-shrink: 0;
  width: 28px;
  font-weight: 700;
  font-size: 0.84rem;
  color: #0c4a6e;
}
.listening-l6__blanks-input {
  flex: 1;
  padding: 4px 8px;
  font-size: 0.84rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}
.listening-l6__blanks-input:focus {
  outline: none;
  border-color: #0369a1;
  background: #f0f9ff;
}
.listening-l6__blanks-input::placeholder { color: #94a3b8; }
.listening-l6__progress-wrap--no-seek { pointer-events: none; }
.listening-l6__progress-wrap--no-seek .listening-l6__slider { cursor: default; }

/* === Reading Part 2: Matching (oq + blue-50, gorizontal skroll A–J, tanlangan = kulrang) === */
.screen.screen--reading-match { display: none; }
.screen.screen--reading-match.screen--active { display: flex; flex-direction: column; min-height: 0; }
.screen--reading-match .match-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  background: #fff;
}
.screen--reading-match .match-wrap__topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.screen--reading-match .match-instruction {
  flex-shrink: 0;
  margin: 12px 16px 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #0c4a6e;
  line-height: 1.5;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #f0f9ff;
}
.screen--reading-match .match-instruction__main {
  margin: 0 0 8px;
  font-weight: 700;
}
.screen--reading-match .match-instruction__detail {
  margin: 0;
  font-weight: 400;
  color: var(--text);
}
.screen--reading-match .match-statements-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  padding: 6px 16px 8px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  max-height: 20vh;
  overflow-y: auto;
}
.screen--reading-match .match-statements__title {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.screen--reading-match .match-statements__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.screen--reading-match .match-statement {
  padding: 4px 8px;
  font-size: 0.75rem;
  line-height: 1.3;
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  color: var(--text);
  transition: opacity 0.2s, color 0.2s, text-decoration 0.2s, background 0.2s, border-color 0.2s;
}
.screen--reading-match .match-statement--used {
  opacity: 0.6;
  color: var(--text-muted);
  text-decoration: line-through;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.screen--reading-match .match-statement__letter {
  font-weight: 700;
  color: #0369a1;
  margin-right: 6px;
}
.screen--reading-match .match-statement--used .match-statement__letter {
  color: #94a3b8;
}
.screen--reading-match .match-scroll {
  flex: 1;
  min-height: 60vh;
  overflow-y: auto;
  padding: 12px 16px 24px;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.screen--reading-match .match-questions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.screen--reading-match .match-question {
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}
.screen--reading-match .match-question:last-child { border-bottom: none; }
.screen--reading-match .match-question__header {
  margin-bottom: 6px;
}
.screen--reading-match .match-question__num {
  font-weight: 700;
  color: #0369a1;
  font-size: 1rem;
}
.screen--reading-match .match-question__text {
  min-height: 4em;
  margin: 0 0 12px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.screen--reading-match .match-question__hint {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
/* A–J tugmalar: kichik, joy tejash */
.screen--reading-match .match-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}
.screen--reading-match .match-option-btn {
  flex-shrink: 0;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  background: #f0f9ff;
  border: 2px solid #bae6fd;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.screen--reading-match .match-option-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}
.screen--reading-match .match-option-btn--selected {
  background: #0369a1;
  border-color: #0369a1;
  color: #fff;
}
.screen--reading-match .match-finish {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
}

/* === Reading Part 3: Matching Headings (oq + blue-50, A–H gorizontal skroll, tanlangan = kulrang) === */
.screen.screen--reading-headings { display: none; }
.screen.screen--reading-headings.screen--active { display: flex; flex-direction: column; min-height: 0; }
.screen--reading-headings .headings-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  background: #fff;
}
.screen--reading-headings .headings-wrap__topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.screen--reading-headings .headings-instruction {
  flex-shrink: 0;
  margin: 12px 16px 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #0c4a6e;
  line-height: 1.5;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #f0f9ff;
}
.screen--reading-headings .headings-list-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  padding: 6px 16px 8px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  max-height: 20vh;
  overflow-y: auto;
}
.screen--reading-headings .headings-list__title {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.screen--reading-headings .headings-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.screen--reading-headings .headings-list__item {
  padding: 4px 8px;
  font-size: 0.75rem;
  line-height: 1.3;
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  color: var(--text);
  transition: opacity 0.2s, color 0.2s, text-decoration 0.2s, background 0.2s, border-color 0.2s;
}
.screen--reading-headings .headings-list__item--used {
  opacity: 0.6;
  color: var(--text-muted);
  text-decoration: line-through;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.screen--reading-headings .headings-list__letter {
  font-weight: 700;
  color: #0369a1;
  margin-right: 6px;
}
.screen--reading-headings .headings-list__item--used .headings-list__letter {
  color: #94a3b8;
}
.screen--reading-headings .headings-scroll {
  flex: 1;
  min-height: 60vh;
  overflow-y: auto;
  padding: 12px 16px 24px;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.screen--reading-headings .headings-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}
.screen--reading-headings .headings-paragraph {
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
.screen--reading-headings .headings-paragraph:last-child { border-bottom: none; }
.screen--reading-headings .headings-paragraph__num {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #0369a1;
}
.screen--reading-headings .headings-paragraph__text {
  margin: 0 0 12px;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.screen--reading-headings .headings-paragraph__hint {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.screen--reading-headings .headings-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}
.screen--reading-headings .headings-option-btn {
  flex-shrink: 0;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  background: #f0f9ff;
  border: 2px solid #bae6fd;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.screen--reading-headings .headings-option-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}
.screen--reading-headings .headings-option-btn--selected {
  background: #0369a1;
  border-color: #0369a1;
  color: #fff;
}
.screen--reading-headings .headings-finish {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
}

/* === Reading Part 4: Multiple Choice (matn + savollar 21–29) === */
.screen.screen--reading-multichoice { display: none; }
.screen.screen--reading-multichoice.screen--active { display: flex; flex-direction: column; min-height: 0; }
.screen--reading-multichoice .multichoice-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  background: #fff;
}
.screen--reading-multichoice .multichoice-wrap__topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.screen--reading-multichoice .multichoice-instruction {
  flex-shrink: 0;
  margin: 12px 16px 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #0c4a6e;
  line-height: 1.5;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #f0f9ff;
}
.screen--reading-multichoice .multichoice-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 24px;
  -webkit-overflow-scrolling: touch;
}
.screen--reading-multichoice .multichoice-passage-wrap {
  margin-bottom: 20px;
  min-height: 38vh;
  max-height: 58vh;
  overflow-y: scroll;
  overflow-x: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
.screen--reading-multichoice .multichoice-passage-wrap::-webkit-scrollbar {
  width: 10px;
}
.screen--reading-multichoice .multichoice-passage-wrap::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.screen--reading-multichoice .multichoice-passage-wrap::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
.screen--reading-multichoice .multichoice-passage-wrap::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
.screen--reading-multichoice .multichoice-passage-wrap::-webkit-scrollbar-button {
  display: block;
  height: 8px;
  background: #e2e8f0;
  border-radius: 2px;
}
.screen--reading-multichoice .multichoice-passage {
  padding: 16px;
}
.screen--reading-multichoice .multichoice-passage__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}
.screen--reading-multichoice .multichoice-questions-group {
  margin-bottom: 16px;
}
.screen--reading-multichoice .multichoice-questions-group__title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0369a1;
  padding-bottom: 4px;
  border-bottom: 2px solid #bae6fd;
}
.screen--reading-multichoice .multichoice-questions-group .multichoice-question {
  margin-bottom: 10px;
}
.screen--reading-multichoice .multichoice-questions-group .multichoice-question:last-child {
  margin-bottom: 0;
}
.screen--reading-multichoice .multichoice-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.screen--reading-multichoice .multichoice-question {
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.screen--reading-multichoice .multichoice-question:last-child { border-bottom: none; }
.screen--reading-multichoice .multichoice-question__num {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.screen--reading-multichoice .multichoice-question__text {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}
.screen--reading-multichoice .multichoice-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.screen--reading-multichoice .multichoice-option-btn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text);
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.screen--reading-multichoice .multichoice-option-btn:hover {
  background: #f5f5f5;
  border-color: #d1d5db;
}
.screen--reading-multichoice .multichoice-option-btn--selected {
  background: #f0f9ff;
  border-color: #0369a1;
}
.screen--reading-multichoice .multichoice-option-btn--selected .multichoice-option__radio {
  border-color: #0369a1;
  background: #fff;
}
.screen--reading-multichoice .multichoice-option-btn--selected .multichoice-option__radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0369a1;
}
.screen--reading-multichoice .multichoice-option__radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid #374151;
  border-radius: 50%;
  background: #fff;
  position: relative;
}
.screen--reading-multichoice .multichoice-option__label {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--text);
}
.screen--reading-multichoice .multichoice-option__text {
  flex: 1;
  min-width: 0;
  color: var(--text);
}
.screen--reading-multichoice .multichoice-finish {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
}

/* === Reading Part 5: Advanced Gap Fill & MCQ === */
.screen.screen--reading-part5 { display: none; }
.screen.screen--reading-part5.screen--active { display: flex; flex-direction: column; min-height: 0; }
.screen--reading-part5 .part5-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  background: #fff;
}
.screen--reading-part5 .part5-wrap__topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.screen--reading-part5 .part5-instruction {
  flex-shrink: 0;
  margin: 12px 16px 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #0c4a6e;
  line-height: 1.5;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #f0f9ff;
}
.screen--reading-part5 .part5-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 24px;
  -webkit-overflow-scrolling: touch;
}
.screen--reading-part5 .part5-passage-wrap {
  margin-bottom: 20px;
  max-height: 40vh;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.screen--reading-part5 .part5-passage-wrap::-webkit-scrollbar {
  width: 8px;
}
.screen--reading-part5 .part5-passage-wrap::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.screen--reading-part5 .part5-passage-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.screen--reading-part5 .part5-passage {
  padding: 16px;
}
.screen--reading-part5 .part5-passage__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0369a1;
}
.screen--reading-part5 .part5-passage__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
}
.screen--reading-part5 .part5-summary {
  margin-bottom: 24px;
}
.screen--reading-part5 .part5-summary__instruction {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  font-weight: 600;
}
.screen--reading-part5 .part5-summary__instruction strong {
  font-style: normal;
}
.screen--reading-part5 .part5-summary-passage-wrap {
  margin-top: 0;
}
/* Part 5 summary: passage scroll oynada, pastda 30–33 javob maydonlari */
.screen--reading-part5 .part5-summary-passage-scroll-wrap {
  min-height: 18vh;
  max-height: 36vh;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid #bfdbfe;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.08);
}
.screen--reading-part5 .part5-summary-passage-scroll-wrap::-webkit-scrollbar { width: 8px; }
.screen--reading-part5 .part5-summary-passage-scroll-wrap::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.screen--reading-part5 .part5-summary-passage-scroll-wrap::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
.screen--reading-part5 .part5-summary-passage {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
}
.screen--reading-part5 .part5-summary-passage .gapfill__segment { display: inline; }
.screen--reading-part5 .part5-summary__gap-ph {
  display: inline;
  font-weight: 700;
  color: #0369a1;
  margin: 0 2px;
}
.screen--reading-part5 .part5-summary-blanks-wrap {
  margin-bottom: 20px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.screen--reading-part5 .part5-summary-blanks-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0369a1;
}
.screen--reading-part5 .part5-summary-blanks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.screen--reading-part5 .part5-summary-blanks-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.screen--reading-part5 .part5-summary-blanks-num {
  flex-shrink: 0;
  width: 32px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0369a1;
}
.screen--reading-part5 .part5-summary-blanks-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-sizing: border-box;
}
.screen--reading-part5 .part5-summary-blanks-input:focus {
  outline: none;
  border-color: #0369a1;
  background: #f0f9ff;
}
.screen--reading-part5 .part5-summary-blanks-input::placeholder { color: #94a3b8; }
.screen--reading-part5 .part5-summary__num-label {
  display: inline;
  font-weight: 600;
  color: var(--text);
}
.screen--reading-part5 .part5-summary__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0369a1;
}
.screen--reading-part5 .part5-summary__item {
  margin-bottom: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}
.screen--reading-part5 .part5-summary__num {
  font-weight: 700;
  color: #0369a1;
  margin-right: 4px;
}
.screen--reading-part5 .part5-summary__item .part5-summary__before,
.screen--reading-part5 .part5-summary__item .part5-summary__after {
  display: inline;
}
.screen--reading-part5 .part5-summary__input {
  display: inline;
  min-width: 80px;
  max-width: 140px;
  margin: 0 4px;
  padding: 6px 10px;
  font-size: 0.9rem;
  border: 2px solid #bae6fd;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.screen--reading-part5 .part5-summary__input:focus {
  outline: none;
  border-color: #0369a1;
}
.screen--reading-part5 .part5-questions__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0369a1;
}
.screen--reading-part5 .part5-questions {
  margin-bottom: 24px;
}
.screen--reading-part5 .part5-question {
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}
.screen--reading-part5 .part5-question:last-child { border-bottom: none; margin-bottom: 0; }
.screen--reading-part5 .part5-question__num {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.screen--reading-part5 .part5-question__text {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}
.screen--reading-part5 .part5-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.screen--reading-part5 .part5-option-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.screen--reading-part5 .part5-option-btn:hover {
  background: #f5f5f5;
  border-color: #d1d5db;
}
.screen--reading-part5 .part5-option-btn--selected {
  background: #f0f9ff;
  border-color: #0369a1;
}
.screen--reading-part5 .part5-option-btn--selected .part5-option__radio {
  border-color: #0369a1;
  background: #fff;
}
.screen--reading-part5 .part5-option-btn--selected .part5-option__radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0369a1;
}
.screen--reading-part5 .part5-option__radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid #374151;
  border-radius: 50%;
  background: #fff;
  position: relative;
}
.screen--reading-part5 .part5-option__label {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--text);
}
.screen--reading-part5 .part5-option__text {
  flex: 1;
  min-width: 0;
  color: var(--text);
}
.screen--reading-part5 .part5-finish {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
}

/* === Reading Part Intro (Start / Back, taymer yoqilmagan) === */
.screen--reading-part-intro .screen__inner { padding: 16px; background: #fff; }
.reading-part-intro__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.reading-part-intro__back { color: #0369a1; padding: 6px; background: none; border: none; cursor: pointer; }
.reading-part-intro__back:hover { color: #0284c7; }
.reading-part-intro__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); flex: 1; text-align: center; }
.reading-part-intro__spacer { width: 34px; }
.reading-part-intro__card {
  padding: 24px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.1);
}
.reading-part-intro__part-title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; color: #0c4a6e; }
.reading-part-intro__desc { margin: 0 0 12px; font-size: 0.95rem; color: #475569; line-height: 1.5; }
.reading-part-intro__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #64748b;
}
.reading-part-intro__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reading-part-intro__start { width: 100%; padding: 14px; font-size: 1rem; font-weight: 700; border-radius: 12px; }
.reading-part-intro__back-btn { width: 100%; padding: 12px; font-size: 0.95rem; border-radius: 12px; }

/* === Reading: Gap Fill (inline inputs, white + blue-50) === */
.screen--reading-gapfill .screen__inner,
.screen--reading-part-placeholder .screen__inner { padding: 16px; background: #fff; }
.gapfill__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.gapfill__back { color: #0369a1; padding: 6px; background: none; border: none; cursor: pointer; flex-shrink: 0; }
.gapfill__back:hover { color: #0284c7; }
.gapfill__progress { flex: 1; text-align: center; }
.gapfill__timer { font-variant-numeric: tabular-nums; font-weight: 700; color: #0369a1; flex-shrink: 0; }
.reading-placeholder__msg { margin: 0; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.gapfill__label {
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e40af;
}
.gapfill__passage-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  min-height: 120px;
}
.gapfill__passage-wrap--blue {
  border: 1px solid #bfdbfe;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.08);
}
/* Part 1: passage scroll oynasi (o'ngda scrollbar) */
.gapfill__passage-scroll-wrap {
  min-height: 28vh;
  max-height: 48vh;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.gapfill__passage-scroll-wrap::-webkit-scrollbar { width: 10px; }
.gapfill__passage-scroll-wrap::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.gapfill__passage-scroll-wrap::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
.gapfill__passage-scroll-wrap::-webkit-scrollbar-thumb:hover { background: #64748b; }
.gapfill__passage {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  display: block;
  word-wrap: break-word;
}
.gapfill__passage .gapfill__segment { display: inline; }
.gapfill__passage .gapfill__gap-placeholder {
  display: inline;
  font-weight: 700;
  color: #0369a1;
  margin: 0 2px;
}
/* Pastdagi javob maydonlari 1–6 (ustun) */
.gapfill__blanks-wrap {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.gapfill__blanks-title {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0369a1;
}
.gapfill__blanks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gapfill__blanks-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gapfill__blanks-num {
  flex-shrink: 0;
  width: 28px;
  font-weight: 700;
  font-size: 1rem;
  color: #0369a1;
}
.gapfill__blanks-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-sizing: border-box;
}
.gapfill__blanks-input:focus {
  outline: none;
  border-color: #0369a1;
  background: #f0f9ff;
}
.gapfill__blanks-input::placeholder { color: #94a3b8; }
.gapfill__finish {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
}

/* === Reading Results (tabs: Results | Feedback, red-50 / green-50) === */
.screen--reading-result .screen__inner { padding: 16px; padding-bottom: 24px; background: #fafafa; }
.reading-result__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.reading-result__back { color: #0369a1; padding: 6px; background: none; border: none; cursor: pointer; }
.reading-result__back:hover { color: #0284c7; }
.reading-result__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); flex: 1; text-align: center; }
.reading-result__spacer { width: 34px; }
.reading-result__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}
.reading-result__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
}
.reading-result__tab:hover { color: #0369a1; }
.reading-result__tab--active { color: #0369a1; border-bottom-color: #0369a1; }
.reading-result__panels { min-height: 200px; }
.reading-result__panel { display: none; }
.reading-result__panel--active { display: block; }
.reading-result__summary {
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  text-align: center;
}
.reading-result__summary--wrong { background: #fef2f2; border: 1px solid #fecaca; }
.reading-result__summary--correct { background: #f0fdf4; border: 1px solid #bbf7d0; }
.reading-result__cefr { margin: 0 0 4px; font-size: 0.9rem; color: var(--text); }
.reading-result__score { margin: 0; font-size: 1.75rem; font-weight: 800; }
.reading-result__summary--wrong .reading-result__score { color: #dc2626; }
.reading-result__summary--correct .reading-result__score { color: #16a34a; }
.reading-result__score-label { margin: 4px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.reading-result__breakdown-title { margin: 0 0 10px; font-size: 0.95rem; font-weight: 700; color: var(--text); }
.reading-result__breakdown { display: flex; flex-direction: column; gap: 8px; }
.reading-result__card {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.reading-result__card--wrong { background: #fef2f2; border: 1px solid #fecaca; }
.reading-result__card--correct { background: #f0fdf4; border: 1px solid #bbf7d0; }
.reading-result__card-q { flex: 1 1 100%; font-weight: 700; color: var(--text); }
.reading-result__card-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.reading-result__card-your { color: var(--text-muted); }
.reading-result__card-correct { color: #16a34a; font-weight: 600; }
.reading-result__card-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reading-result__card-icon--wrong { background: #dc2626; color: #fff; font-size: 0.85rem; font-weight: 700; }
.reading-result__card-icon--correct { background: #16a34a; color: #fff; }
.reading-result__feedback-list { display: flex; flex-direction: column; gap: 12px; }
.reading-result__ai-wrap { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.reading-result__ai-btn { width: 100%; margin-bottom: 10px; }
.reading-result__ai-text { font-size: 0.95rem; line-height: 1.5; color: var(--text); white-space: pre-wrap; padding: 12px; background: rgba(14, 165, 233, 0.08); border-radius: 8px; }
.reading-result__feedback-item {
  padding: 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
}
.reading-result__feedback-item--correct { border-color: #bbf7d0; background: #f0fdf4; }
.reading-result__feedback-item h4 { margin: 0 0 8px; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.reading-result__feedback-item p { margin: 0 0 6px; line-height: 1.5; }
.reading-result__feedback-item .reading-result__correct-word { color: #16a34a; font-weight: 600; }
.reading-result__feedback-tip { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.06); font-style: italic; color: var(--text-muted); }

/* === Writing task screen (sticky timer, word count, auto-save) === */
.screen--writing-task .screen__inner { padding: 0; height: 100vh; display: flex; flex-direction: column; }
.writing-task { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.writing-task__timer-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.writing-task__timer-label { font-size: 0.85rem; opacity: 0.9; }
.writing-task__timer { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.writing-task__scroll { flex: 1; overflow-y: auto; padding: 16px; padding-bottom: 24px; }
/* Daily Journal: calming light blue background */
.screen--writing-task.is-daily-journal .writing-task__scroll { background: #e0f2fe; }
.writing-task__topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.writing-task__topbar-spacer { flex: 1; }
.writing-task__back { color: var(--primary); padding: 6px; background: none; border: none; cursor: pointer; font-size: 1.2rem; }
.writing-task__title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.writing-task__history { color: var(--text); padding: 6px; background: none; border: none; cursor: pointer; }
.writing-task__history:hover { color: var(--primary); }
.writing-task__prompt { margin: 0 0 12px; font-size: 0.9rem; color: var(--text); line-height: 1.5; }
/* Daily Journal: hide simple prompt when daily UI is shown */
.screen--writing-task.is-daily-journal .writing-task__prompt { display: none; }
.writing-task__daily-ui { margin-bottom: 14px; }
.writing-task__prompt-card { padding: 14px 16px; border-radius: 1rem; }
.writing-task__prompt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.writing-task__tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem; font-weight: 600;
  color: #4c1d95;
  background: #ede9fe;
  border-radius: 9999px;
}
.writing-task__shuffle { padding: 6px; background: none; border: none; cursor: pointer; font-size: 1.2rem; }
.writing-task__shuffle:hover { opacity: 0.8; }
.writing-task__prompt-card-text { margin: 0; font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.writing-task__instruction { margin: 0 0 12px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }
.writing-task__scenario-wrap { margin-bottom: 16px; }
.writing-task-accordion { margin-bottom: 12px; }
/* Task 2: Scenario oynasi kerak emas, faqat Question */
.writing-task__scenario-wrap.is-task2 .writing-exam-accordion__item:first-child { display: none !important; }
.writing-task-accordion .writing-exam-accordion__item.is-open .writing-exam-accordion__panel { max-height: 70vh; }
.writing-task-accordion .writing-exam-accordion__body { white-space: pre-wrap; }
.writing-task__start-btn { width: 100%; padding: 14px 20px; font-size: 1rem; font-weight: 600; }
.writing-task__textarea {
  width: 100%;
  min-height: 200px;
  padding: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: 1rem;
  resize: vertical;
  margin-bottom: 10px;
  background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.writing-task__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.25);
}
.writing-task__wordcount { margin-bottom: 16px; font-size: 0.9rem; }
.writing-task__wordcount-text { color: var(--text-muted); }
.writing-task__wordcount--low .writing-task__wordcount-text strong { color: #dc2626; }
.writing-task__wordcount--ok .writing-task__wordcount-text strong { color: #16a34a; }
.writing-task__submit { width: 100%; }
.writing-task__submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 1;
}
.writing-task__submit:disabled:hover { background: #9ca3af; }
/* Telegram blue when enabled (primary is already #0088cc) */
.writing-task__submit:not(:disabled) { background: var(--primary); }
.writing-task__submit:not(:disabled):hover { background: var(--primary-hover); }

/* === Writing Feedback (och ko'k rang uyg'unligi) === */
.screen--writing-result .screen__inner { padding: 0; text-align: left; min-height: 100vh; }
.writing-feedback {
  padding: 16px;
  padding-bottom: 24px;
  background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 50%, #e0f2fe 100%);
  min-height: 100vh;
}
.writing-feedback__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.writing-feedback__back {
  color: var(--primary);
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 136, 204, 0.15);
}
.writing-feedback__back:hover { color: var(--primary-hover); background: #fff; }
.writing-feedback__title {
  flex: 1;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0c4a6e;
}
.writing-feedback__share {
  color: var(--primary);
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 136, 204, 0.15);
}
.writing-feedback__share:hover { color: var(--primary-hover); background: #fff; }
.writing-feedback__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #7dd3fc;
  border-radius: 9999px;
  color: #0369a1;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.08);
}
.writing-feedback__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #0ea5e9;
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}
.writing-feedback__score-card {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #bae6fd;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.08);
}
.writing-feedback__score-label {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.writing-feedback__score-value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0369a1;
  line-height: 1.3;
}
.writing-feedback__score-cefr {
  font-size: 1rem;
  font-weight: 600;
  color: #0c4a6e;
  margin-left: 4px;
}
.writing-feedback__hint {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: #0369a1;
  opacity: 0.9;
}
.writing-feedback__card {
  padding: 18px;
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #bae6fd;
  box-shadow: 0 2px 12px rgba(0, 136, 204, 0.06);
  margin-bottom: 16px;
}
.writing-feedback__card--text { min-height: 80px; }
.writing-feedback__error {
  background: rgba(220, 38, 38, 0.15);
  color: #b91c1c;
  text-decoration: underline;
  text-decoration-style: wavy;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 4px;
  transition: background 0.2s;
}
.writing-feedback__error:hover { background: rgba(220, 38, 38, 0.25); }
.writing-feedback__suggestion {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #7dd3fc;
  border-radius: 1rem;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(0, 136, 204, 0.08);
}
.writing-feedback__suggestion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #0ea5e9;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.writing-feedback__suggestion-inner { flex: 1; min-width: 0; }
.writing-feedback__suggestion-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0369a1;
  margin-bottom: 2px;
}
.writing-feedback__suggestion-value {
  color: #0c4a6e;
  font-weight: 600;
}
.writing-feedback__ai {
  margin-top: 12px;
  padding: 12px;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0c4a6e;
  white-space: pre-wrap;
}
.writing-feedback__footer { margin-top: 8px; }
.writing-feedback__btn-back {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.writing-feedback__btn-back:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.4);
}

/* === Journal History (Daily Journal – past entries) === */
.screen--journal-history .screen__inner { text-align: left; padding: 16px; background: #e0f2fe; }
.journal-history { min-height: 100vh; }
.journal-history__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.journal-history__back { color: var(--primary); padding: 6px; background: none; border: none; cursor: pointer; }
.journal-history__back:hover { color: var(--primary-hover); }
.journal-history__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.journal-history__spacer { flex: 1; }
.journal-history__hint { margin: 0 0 16px; font-size: 0.9rem; color: var(--text-muted); }
.journal-history__list { display: flex; flex-direction: column; gap: 12px; }
.journal-history__empty { text-align: center; padding: 32px 16px; }
.journal-history__empty-text { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.journal-history-card {
  display: block;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  border: none;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.journal-history-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04); }
.journal-history-card__row { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 0.85rem; color: var(--text-muted); }
.journal-history-card__row:last-of-type { margin-bottom: 0; }
.journal-history-card__icon { flex-shrink: 0; color: var(--primary); }
.journal-history-card__tag {
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 8px;
  font-size: 0.75rem; font-weight: 600;
  color: #4c1d95;
  background: #ede9fe;
  border-radius: 9999px;
}
.journal-history-card__prompt { margin: 0 0 8px; font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.journal-history-card__preview { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.45; }

/* === Tarix (History): imtihonlar, natijalar, kunlik yaxshilanish === */
.screen--history .screen__inner {
  text-align: left;
  padding: 0 0 24px;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 25%, #f8fafc 100%);
  min-height: 100vh;
}
.history { min-height: 100vh; }
.history__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.history__back {
  color: #1e3a5f;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.history__back:hover { background: #fff; }
.history__title { margin: 0; font-size: 1.2rem; font-weight: 800; color: #1e3a5f; letter-spacing: -0.02em; flex: 1; text-align: center; }
.history__spacer { width: 40px; flex-shrink: 0; }
.history__subtitle {
  margin: 0 16px 16px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.45;
}
.history__tabs {
  display: flex;
  gap: 6px;
  margin: 0 16px 16px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.history__tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.history__tab.is-active { color: #1e3a5f; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07); }
.history__panels { padding: 0 16px; }
.history__panel { display: none; }
.history__panel.is-active { display: block; }
.history__list, .history__daily-list { display: flex; flex-direction: column; gap: 12px; }
.history__date-group {
  margin-bottom: 16px;
}
.history__date-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  padding-left: 4px;
}
.history-card {
  display: block;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.9);
  text-align: left;
  transition: box-shadow 0.2s ease;
}
.history-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.history-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.history-card__row:last-child { margin-bottom: 0; }
.history-card__icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.history-card__icon-wrap--speaking { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.history-card__icon-wrap--writing { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.history-card__icon-wrap--reading { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }
.history-card__icon-wrap--listening { background: linear-gradient(135deg, #e9d5ff, #ddd6fe); color: #6b21a8; }
.history-card__main { flex: 1; min-width: 0; }
.history-card__title { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: #1e293b; }
.history-card__meta { margin: 0; font-size: 0.85rem; color: #64748b; }
.history-card__score {
  font-size: 1rem;
  font-weight: 800;
  color: #0088cc;
  flex-shrink: 0;
}
.history-card__score--good { color: #059669; }
.history-card__score--weak { color: #dc2626; }
.history-card__xp { font-size: 0.8rem; font-weight: 600; color: #b45309; margin-top: 6px; }
.history-daily-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.history-daily-card__date { font-size: 0.95rem; font-weight: 700; color: #1e293b; min-width: 100px; }
.history-daily-card__content { flex: 1; }
.history-daily-card__summary { margin: 0 0 4px; font-size: 0.9rem; color: #475569; }
.history-daily-card__xp { font-size: 0.95rem; font-weight: 800; color: #b45309; }
.history-daily-card__trend { font-size: 0.8rem; font-weight: 600; color: #059669; }
.history__empty {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  margin-top: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.08);
}
.history__empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.8; }
.history__empty-title { margin: 0 0 8px; font-size: 1rem; font-weight: 700; color: #1e293b; }
.history__empty-text { margin: 0; font-size: 0.9rem; color: #64748b; line-height: 1.5; }

/* === Sovg'a (Gift / Taklif) – zamonaviy dizayn === */
.screen--gift .screen__inner {
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #fef7ed 0%, #fff8f0 25%, #fefdfb 60%, #f5f0eb 100%);
}
.gift__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 12px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.gift__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: background 0.2s, box-shadow 0.2s;
}
.gift__back:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.gift__title {
  margin: 0;
  flex: 1;
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  text-align: center;
}
.gift__spacer { width: 44px; flex-shrink: 0; }
.gift__scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px 32px;
}
.gift__hero {
  text-align: center;
  margin-bottom: 28px;
}
.gift__hero-badge {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff9f0 0%, #ffedd5 50%, #fed7aa 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(251, 146, 60, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(251, 146, 60, 0.2);
}
.gift__hero-icon { font-size: 2.5rem; }
.gift__hero-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.gift__hero-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.gift__code-card {
  margin-bottom: 20px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.gift__code-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gift__code-value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #c2410c;
  letter-spacing: 0.12em;
  font-family: 'SF Mono', 'Monaco', 'Consolas', ui-monospace, monospace;
  word-break: break-all;
}
.gift__progress-card {
  margin-bottom: 24px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.gift__progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.gift__progress-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}
.gift__progress-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.gift__progress-bar {
  height: 12px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.gift__progress-fill {
  height: 100%;
  width: 0%;
  max-width: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gift__progress-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}
.gift__reward-section {
  margin-bottom: 28px;
}
.gift__rewards-title {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gift__rewards-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gift-reward {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.9);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gift-reward:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.gift-reward--unlocked {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(145deg, rgba(240, 253, 244, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
  box-shadow: 0 4px 24px rgba(34, 197, 94, 0.12);
}
.gift-reward--locked { opacity: 1; }
.gift-reward__icon-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.4);
}
.gift-reward--unlocked .gift-reward__icon-wrap {
  background: linear-gradient(145deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}
.gift-reward__icon { font-size: 1.75rem; }
.gift-reward__text { flex: 1; min-width: 0; }
.gift-reward__name {
  display: block;
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}
.gift-reward__desc {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}
.gift-reward__status {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ea580c;
}
.gift-reward--unlocked .gift-reward__status { color: #059669; }
.gift__btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 16px;
  padding: 18px 24px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.4);
  transition: box-shadow 0.25s, transform 0.2s;
  letter-spacing: -0.01em;
}
.gift__btn-share:hover {
  box-shadow: 0 8px 32px rgba(234, 88, 12, 0.5);
  transform: translateY(-2px);
}
.gift__btn-share:active { transform: translateY(0); }
.gift__enter-code-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.gift__enter-code-btn:hover { color: #0f172a; }

/* === Sozlamalar (Settings) – zamonaviy dizayn === */
.screen--settings .screen__inner {
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--settings-bg, linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%));
}
.settings__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  flex-shrink: 0;
  background: var(--settings-topbar-bg, rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--settings-border, rgba(0, 0, 0, 0.06));
}
.settings__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--text);
  background: var(--settings-card-bg, rgba(255, 255, 255, 0.95));
  border: 1px solid var(--settings-border, rgba(0, 0, 0, 0.06));
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.settings__back:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.settings__title {
  margin: 0;
  flex: 1;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.02em;
}
.settings__spacer { width: 48px; flex-shrink: 0; }
.settings__scroll { flex: 1; overflow-y: auto; padding: 24px 20px 40px; -webkit-overflow-scrolling: touch; }
.settings__group { margin-bottom: 28px; }
.settings__group-title {
  margin: 0 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--settings-group-color, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.settings__card {
  background: var(--settings-card-bg, rgba(255, 255, 255, 0.98));
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--settings-border, rgba(0, 0, 0, 0.05));
  border: 1px solid var(--settings-border, rgba(255, 255, 255, 0.8));
  overflow: hidden;
}
.settings__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
}
.settings__row:hover { background: var(--settings-bg-hover, rgba(0, 0, 0, 0.02)); }
.settings__row--toggle:hover { background: none; }
.settings__row--toggle { cursor: default; }
.settings__row + .settings__row { border-top: 1px solid var(--settings-border, rgba(0, 0, 0, 0.06)); }
.settings__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--settings-icon-bg, rgba(99, 102, 241, 0.12));
  color: var(--settings-icon-color, #6366f1);
}
.settings__icon--globe { background: var(--settings-icon-bg-globe, rgba(14, 165, 233, 0.12)); color: var(--settings-icon-color-globe, #0ea5e9); }
.settings__icon--warning { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.settings__label { flex: 1; font-size: 1.05rem; font-weight: 600; color: var(--text); }
.settings__label--danger { color: #dc2626; }
.settings__value { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-right: 4px; }
.settings__chevron { flex-shrink: 0; color: var(--text-muted); opacity: 0.8; }
.settings__switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
  flex-shrink: 0;
}
.settings__switch-input { opacity: 0; width: 0; height: 0; }
.settings__switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--settings-switch-bg, #cbd5e1);
  border-radius: 999px;
  transition: 0.3s ease;
}
.settings__switch-slider::before {
  content: '';
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}
.settings__switch-input:checked + .settings__switch-slider {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
}
.settings__switch-input:checked + .settings__switch-slider::before { transform: translateX(26px); }
.settings__card--danger .settings__row { padding: 20px; }
.settings__card--danger .settings__row:hover { background: rgba(220, 38, 38, 0.06); }
.settings__danger-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.settings__sublabel { font-size: 0.88rem; color: var(--text-muted); font-weight: 400; }

/* Sozlamalar modallar */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.settings-overlay.is-open { opacity: 1; visibility: visible; }
.settings-modal {
  background: var(--settings-card-bg, #fff);
  border-radius: 24px;
  padding: 28px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--settings-border, rgba(0, 0, 0, 0.06));
}
.settings-modal__title { margin: 0 0 22px; font-size: 1.25rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.settings-modal__options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.settings-modal__option {
  padding: 16px 20px;
  border: 2px solid var(--settings-border, #e2e8f0);
  border-radius: 14px;
  background: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}
.settings-modal__option:hover { background: var(--settings-bg-hover, #f1f5f9); border-color: #cbd5e1; }
.settings-modal__option.is-selected { border-color: var(--primary); background: rgba(0, 136, 204, 0.1); color: var(--primary); }
.settings-modal__close {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--settings-border, #e2e8f0);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.settings-modal__close:hover { background: #cbd5e1; }
.settings-modal__message { margin: 0 0 26px; font-size: 1rem; color: var(--text-muted); line-height: 1.6; }
.settings-modal__actions { display: flex; gap: 14px; }
.settings-modal__btn { flex: 1; padding: 16px; border-radius: 14px; font-size: 1rem; font-weight: 600; font-family: inherit; cursor: pointer; border: none; transition: opacity 0.2s; }
.settings-modal__btn:hover { opacity: 0.92; }
.settings-modal__btn--secondary { background: var(--settings-border, #e2e8f0); color: var(--text); }
.settings-modal__btn--danger { background: #dc2626; color: #fff; }
.settings-modal--danger .settings-modal__title { color: #dc2626; }

/* === Bildirishnomalar oynasi (yangi materiallar, premium, va boshqa xabarlar) === */
.notifications-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 125;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.notifications-overlay.is-open { opacity: 1; visibility: visible; }
.notifications-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 85vh;
  padding: 0 0 24px;
  background: var(--settings-card-bg, #fff);
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}
.notifications-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.notifications-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.notifications-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.notifications-modal__close:hover { background: rgba(0, 0, 0, 0.1); }
.notifications-modal__list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notifications-modal__empty {
  margin: 0;
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.notification-item {
  padding: 14px 16px;
  background: rgba(0, 136, 204, 0.06);
  border: 1px solid rgba(0, 136, 204, 0.15);
  border-radius: 14px;
  text-align: left;
}
.notification-item__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.notification-item__body {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.notification-item__date {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.9;
}
.notification-item--read {
  opacity: 0.85;
  background: rgba(0, 136, 204, 0.04);
}
.notifications-modal__actions {
  padding: 12px 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 8px;
}
.notifications-modal__clear-btn {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.notifications-modal__clear-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

/* === Yordam oynasi === */
.help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 125;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.help-overlay.is-open { opacity: 1; visibility: visible; }
.help-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 36px 28px 32px;
  background: var(--settings-card-bg, #fff);
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  text-align: center;
}
.help-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.help-modal__close:hover { background: rgba(0, 0, 0, 0.1); }
.help-modal__icon {
  margin: 0 auto 20px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
  border-radius: 20px;
}
.help-modal__title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.help-modal__subtitle {
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.help-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.help-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 18px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.help-modal__btn:active { transform: scale(0.98); }
.help-modal__btn--primary {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.35);
}
.help-modal__btn--primary:hover {
  box-shadow: 0 8px 28px rgba(0, 136, 204, 0.45);
}
.help-modal__btn--secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  border: 2px solid rgba(0, 0, 0, 0.08);
}
.help-modal__btn--secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}
.help-modal__btn-icon { display: flex; flex-shrink: 0; }
.help-modal__btn-text { flex: 1; text-align: center; }
body.app--dark .help-modal { background: #18181b; }
body.app--dark .help-modal__icon { background: linear-gradient(145deg, #1e3a5f 0%, #0c4a6e 100%); color: #7dd3fc; }
body.app--dark .help-modal__btn--secondary { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #e4e4e7; }
body.app--dark .help-modal__btn--secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* === Maxfiylik siyosati === */
.screen--privacy .screen__inner {
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--settings-bg, #f8fafc);
}
.privacy__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  flex-shrink: 0;
  background: var(--settings-topbar-bg, rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid var(--settings-border, rgba(0, 0, 0, 0.06));
}
.privacy__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  background: var(--settings-card-bg, rgba(255, 255, 255, 0.95));
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.privacy__back:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.privacy__title { margin: 0; flex: 1; font-size: 1.15rem; font-weight: 800; color: var(--text); text-align: center; letter-spacing: -0.02em; }
.privacy__spacer { width: 44px; flex-shrink: 0; }
.privacy__scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px 40px;
}
.privacy__intro {
  margin: 0 0 24px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.privacy__block { margin-bottom: 22px; }
.privacy__heading {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.privacy__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.privacy__updated {
  margin: 24px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.9;
}
body.app--dark .screen--privacy .screen__inner { background: #0c0c0f; }

/* === Sotib olish (Purchase) === */
.screen--purchase .screen__inner {
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 20%, #f8fafc 60%);
}
.purchase__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.purchase__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.purchase__back:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.purchase__title { margin: 0; flex: 1; font-size: 1.2rem; font-weight: 800; color: var(--text); text-align: center; letter-spacing: -0.02em; }
.purchase__spacer { width: 44px; flex-shrink: 0; }
.purchase__scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px 40px;
}
.purchase__subtitle {
  margin: 0 0 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.purchase__card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  padding: 24px 22px;
  margin-bottom: 22px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
}
.purchase__card--featured {
  background: linear-gradient(145deg, #fff 0%, #f0fdf4 100%);
  border-color: rgba(34, 197, 94, 0.2);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.12);
}
.purchase__card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #15803d;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 999px;
}
.purchase__card-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.purchase__card-desc {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.purchase__price {
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.purchase__price-currency {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}
.purchase__price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: #15803d;
  letter-spacing: -0.03em;
}
.purchase__price-period {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}
.purchase__pay-label {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.purchase__methods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.purchase__methods--inline { gap: 8px; }
.purchase__method {
  flex: 1;
  min-width: 80px;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.purchase__method:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.purchase__method--click { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.purchase__method--payme { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.purchase__method--paynet { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.purchase__method--small {
  min-width: 0;
  padding: 10px 14px;
  font-size: 0.82rem;
}
.purchase__section-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.purchase__section-desc {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.purchase__card--section { padding: 0; overflow: hidden; }
.purchase__section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}
.purchase__section-row:last-child { border-bottom: none; }
.purchase__section-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.purchase__section-icon { font-size: 1.4rem; }
.purchase__section-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.purchase__section-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.purchase__section-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #15803d;
}
.purchase__price-uzs,
.purchase__section-uzs {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}
.purchase__card--bank {
  margin-top: 20px;
  padding: 16px;
  background: var(--card-yellow-soft, #fff5d6);
  border: 1px solid rgba(161, 98, 7, 0.2);
  border-radius: var(--radius, 16px);
}
.purchase__card-bank-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.purchase__card-bank-desc {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.purchase__card-bank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.purchase__card-bank-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 90px;
}
.purchase__card-bank-value {
  flex: 1;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  word-break: break-all;
}
.purchase__card-bank-copy {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}
.purchase__card-bank-copy:hover {
  background: var(--primary-hover);
}
.purchase__card-bank-prices {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  color: var(--text);
}
.purchase__card-bank-prices p { margin: 4px 0; }
body.app--dark .purchase__card--bank { background: rgba(161, 98, 7, 0.15); border-color: rgba(255, 255, 255, 0.1); }
body.app--dark .purchase__card-bank-title { color: #e4e4e7; }
body.app--dark .purchase__card-bank-desc { color: #a1a1aa; }
body.app--dark .purchase__card-bank-value { color: #e4e4e7; }
body.app--dark .purchase__card-bank-prices { border-top-color: rgba(255, 255, 255, 0.08); color: #e4e4e7; }

body.app--dark .screen--purchase .screen__inner { background: linear-gradient(180deg, #0c0c0f 0%, #0f1410 30%, #0c0c0f 100%); }
body.app--dark .purchase__card { background: #18181b; border-color: rgba(255, 255, 255, 0.06); }
body.app--dark .purchase__card--featured { background: linear-gradient(145deg, #18181b 0%, #0f1f12 100%); border-color: rgba(34, 197, 94, 0.2); }
body.app--dark .purchase__card-title,
body.app--dark .purchase__section-name { color: #e4e4e7; }
body.app--dark .purchase__card-desc,
body.app--dark .purchase__section-desc,
body.app--dark .purchase__subtitle { color: #a1a1aa; }
body.app--dark .purchase__price-amount,
body.app--dark .purchase__section-price { color: #4ade80; }

/* === Tungi rejim (Dark mode) – barcha matn va fonlar ko‘rinsin === */
body.app--dark {
  --bg-main: #0c0c0f;
  --bg-warm: #12121a;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --white: #18181b;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --settings-bg: #0c0c0f;
  --settings-topbar-bg: rgba(18, 18, 18, 0.95);
  --settings-card-bg: #18181b;
  --settings-border: rgba(255, 255, 255, 0.08);
  --settings-bg-hover: rgba(255, 255, 255, 0.06);
  --settings-group-color: #94a3b8;
  --settings-icon-bg: rgba(99, 102, 241, 0.2);
  --settings-icon-color: #818cf8;
  --settings-icon-bg-globe: rgba(14, 165, 233, 0.2);
  --settings-icon-color-globe: #38bdf8;
  --settings-switch-bg: #374151;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
body.app--dark,
body.app--dark .app {
  background: #0c0c0f;
  color: #e4e4e7;
}
body.app--dark .screen__inner { background: #0c0c0f; }
body.app--dark .screen--home .screen__inner { background: linear-gradient(180deg, #0f0f14 0%, #12121a 100%); }
body.app--dark .screen--settings .screen__inner { background: linear-gradient(180deg, #0c0c0f 0%, #0f0f14 100%); }
body.app--dark .screen--gift .screen__inner { background: linear-gradient(165deg, #0f0f14 0%, #12121a 100%); }
body.app--dark .screen--leaderboard .screen__inner { background: linear-gradient(180deg, #0f0f14 0%, #12121a 100%); }
body.app--dark .screen--history .screen__inner { background: linear-gradient(180deg, #0f0f14 0%, #12121a 100%); }
body.app--dark .drawer,
body.app--dark .drawer-overlay { background: rgba(0, 0, 0, 0.9); }
body.app--dark .drawer__item { color: #e4e4e7; }
body.app--dark .drawer__copyright,
body.app--dark .drawer__logout { color: #a1a1aa; }
body.app--dark .drawer__logout:hover { color: #e4e4e7; }
body.app--dark .card { background: #18181b; border-color: rgba(255, 255, 255, 0.08); color: #e4e4e7; }
body.app--dark .btn--primary { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
body.app--dark .title,
body.app--dark .subtitle,
body.app--dark .legal,
body.app--dark .stats { color: #e4e4e7; }
body.app--dark .link { color: #60a5fa; }
body.app--dark .home__title { color: #e4e4e7; }
body.app--dark .home__section-title { color: #a1a1aa; }
body.app--dark .card__title,
body.app--dark .card__desc,
body.app--dark .mini-card__title,
body.app--dark .mini-card__meta { color: #e4e4e7; }
body.app--dark .mini-card__desc { color: #a1a1aa; }
body.app--dark .gift__code-value,
body.app--dark .gift-reward__status,
body.app--dark .gift__hero-title { color: #f97316; }
body.app--dark .gift__hero-subtitle,
body.app--dark .gift__code-label,
body.app--dark .gift__progress-label,
body.app--dark .gift__progress-hint,
body.app--dark .gift-reward__desc { color: #a1a1aa; }
body.app--dark .leaderboard__row,
body.app--dark .history-card,
body.app--dark .gift__code-card,
body.app--dark .gift__progress-card,
body.app--dark .gift-reward { background: rgba(24, 24, 27, 0.95); border-color: rgba(255, 255, 255, 0.06); }
body.app--dark .leaderboard__title,
body.app--dark .leaderboard__rankings-title,
body.app--dark .leaderboard__row-name,
body.app--dark .leaderboard__sticky-name,
body.app--dark .leaderboard__podium-name,
body.app--dark .history__title,
body.app--dark .history__date-group-title,
body.app--dark .history-card__title,
body.app--dark .history-daily-card__date { color: #e4e4e7; }
body.app--dark .leaderboard__row-xp,
body.app--dark .leaderboard__sticky-xp,
body.app--dark .leaderboard__podium-xp,
body.app--dark .history-card__xp,
body.app--dark .history-daily-card__xp { color: #fbbf24; }
body.app--dark .leaderboard__row-rank,
body.app--dark .leaderboard__sticky-rank,
body.app--dark .leaderboard__podium-num,
body.app--dark .history-card__rank,
body.app--dark .history-card__meta,
body.app--dark .history-daily-card__summary { color: #a1a1aa; }
body.app--dark .settings-modal { background: #18181b; color: #e4e4e7; }
body.app--dark .panel__title,
body.app--dark .panel__card-title,
body.app--dark .panel__quest-name,
body.app--dark .panel__level-xp { color: #e4e4e7; }
body.app--dark .panel__card-meta,
body.app--dark .panel__quest-desc,
body.app--dark .panel__level-label { color: #a1a1aa; }
body.app--dark .panel .screen__inner,
body.app--dark .screen--panel .screen__inner { background: linear-gradient(180deg, #0f0f14 0%, #12121a 100%); }
body.app--dark .panel__card,
body.app--dark .panel__quest { background: #18181b; border-color: rgba(255, 255, 255, 0.08); }
body.app--dark .saved-words__title,
body.app--dark .saved-words__item-word { color: #e4e4e7; }
body.app--dark .saved-words__item-translation,
body.app--dark .saved-words__item-context { color: #a1a1aa; }
body.app--dark .screen--saved-words .screen__inner { background: #0c0c0f; }
body.app--dark .dictionary__title,
body.app--dark .dictionary__tab { color: #e4e4e7; }
body.app--dark .dictionary__empty-text,
body.app--dark .dictionary__panel { color: #a1a1aa; }
body.app--dark .screen--dictionary .screen__inner { background: #0c0c0f; }
body.app--dark .journal-history__title,
body.app--dark .journal-history-card__prompt { color: #e4e4e7; }
body.app--dark .journal-history__hint,
body.app--dark .journal-history-card__row,
body.app--dark .journal-entry__title,
body.app--dark .journal-entry__prompt { color: #a1a1aa; }
body.app--dark .screen--journal-history .screen__inner,
body.app--dark .screen--journal-entry .screen__inner { background: #0c0c0f; }
body.app--dark .journal-history-card,
body.app--dark .journal-entry__card { background: #18181b; border-color: rgba(255, 255, 255, 0.08); }
body.app--dark .reading__title,
body.app--dark .reading__section-title,
body.app--dark .reading-card__title,
body.app--dark .reading-skill__title { color: #e4e4e7; }
body.app--dark .reading-card__desc,
body.app--dark .reading-card__meta,
body.app--dark .reading-skill__desc,
body.app--dark .reading-skill__footer { color: #a1a1aa; }
body.app--dark .screen--reading .screen__inner { background: #0c0c0f; }
body.app--dark .listening__title,
body.app--dark .listening__section-title,
body.app--dark .listening-card__title,
body.app--dark .listening-skill__title { color: #e4e4e7; }
body.app--dark .listening-card__desc,
body.app--dark .listening-card__meta,
body.app--dark .listening-skill__desc,
body.app--dark .listening-skill__footer { color: #a1a1aa; }
body.app--dark .screen--listening .screen__inner { background: #0c0c0f; }
body.app--dark .reading-card,
body.app--dark .listening-skill,
body.app--dark .listening-card { background: #18181b; border-color: rgba(255, 255, 255, 0.08); }
body.app--dark .speaking__title,
body.app--dark .speaking-card__title,
body.app--dark .quick-drill__title { color: #e4e4e7; }
body.app--dark .speaking-card__meta,
body.app--dark .quick-drill__meta { color: #a1a1aa; }
body.app--dark .screen--speaking .screen__inner { background: #0c0c0f; }
body.app--dark .writing__title,
body.app--dark .writing-card__title,
body.app--dark .writing-skill__title { color: #e4e4e7; }
body.app--dark .writing-card__desc,
body.app--dark .writing-skill__desc { color: #a1a1aa; }
body.app--dark .screen--writing .screen__inner { background: #0c0c0f; }
body.app--dark .exam-result__score-value,
body.app--dark .exam-result__part-name,
body.app--dark .exam-result__tab { color: #e4e4e7; }
body.app--dark .exam-result__part-score,
body.app--dark .exam-result__criterion-title { color: #a1a1aa; }
body.app--dark .screen--exam-result .screen__inner { background: #0c0c0f; }
body.app--dark .past-exams__title,
body.app--dark .exams-on-date__title { color: #e4e4e7; }
body.app--dark .past-exam-card__row,
body.app--dark .exam-session-card__location,
body.app--dark .exam-session-card__candidate { color: #a1a1aa; }
body.app--dark .screen--past-exams .screen__inner,
body.app--dark .screen--exams-on-date .screen__inner { background: #0c0c0f; }
body.app--dark .xp-help-modal__title,
body.app--dark .xp-help-item__title { color: #e4e4e7; }
body.app--dark .xp-help-item__sub,
body.app--dark .xp-help-item__xp { color: #a1a1aa; }
body.app--dark .xp-help-overlay .xp-help-modal { background: #18181b; border-color: rgba(255, 255, 255, 0.08); }
body.app--dark .daily-limit-overlay .daily-limit-modal { background: #18181b; border-color: rgba(255, 255, 255, 0.08); }
body.app--dark .daily-limit-btn--ghost { color: #a1a1aa; }
body.app--dark .daily-limit-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
body.app--dark .share-result-overlay .share-result-modal,
body.app--dark .share-panel-card,
body.app--dark .share-leaderboard-card__bg { background: #18181b; }
body.app--dark .share-result-close,
body.app--dark .share-result-btn { color: #e4e4e7; background: #27272a; }
body.app--dark .history__subtitle,
body.app--dark .history__empty-title,
body.app--dark .history__empty-text { color: #a1a1aa; }
body.app--dark .leaderboard__tab { color: #a1a1aa; }
body.app--dark .leaderboard__tab.is-active { color: #e4e4e7; }
body.app--dark .reading__back,
body.app--dark .listening__back,
body.app--dark .dictionary__back,
body.app--dark .saved-words__back,
body.app--dark .icon-btn { color: #60a5fa; }
body.app--dark .home__admin-link { color: #60a5fa; }
body.app--dark .brand__handle { color: #a1a1aa; }
body.app--dark .share-leaderboard-card__logo,
body.app--dark .share-leaderboard-card__rank-label,
body.app--dark .share-leaderboard-card__name,
body.app--dark .share-leaderboard-card__cta { color: #e4e4e7; }
body.app--dark .share-leaderboard-card__rank,
body.app--dark .share-leaderboard-card__xp { color: #fbbf24; }
body.app--dark .share-panel-card__logo,
body.app--dark .share-panel-card__name,
body.app--dark .share-panel-card__level,
body.app--dark .share-panel-card__cta { color: #e4e4e7; }
body.app--dark .leaderboard__back,
body.app--dark .leaderboard__target,
body.app--dark .history__back,
body.app--dark .gift__back { color: #e4e4e7; }
body.app--dark .leaderboard__sticky-label { color: #a1a1aa; }

/* === Journal Entry Detail === */
.screen--journal-entry .screen__inner { text-align: left; padding: 16px; background: #e0f2fe; }
.journal-entry__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.journal-entry__back { color: var(--primary); padding: 6px; background: none; border: none; cursor: pointer; }
.journal-entry__back:hover { color: var(--primary-hover); }
.journal-entry__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.journal-entry__card { padding: 16px; border-radius: 1rem; }
.journal-entry__date { margin: 0 0 10px; font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.journal-entry__date::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230088cc' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center;
}
.journal-entry__tag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 10px;
  font-size: 0.8rem; font-weight: 600;
  color: #4c1d95;
  background: #ede9fe;
  border-radius: 9999px;
}
.journal-entry__prompt { margin: 0 0 12px; font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.journal-entry__text { margin: 0; font-size: 0.95rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; color: var(--text); }

/* === Writing exam intro (3-Ekran) === */
.screen--writing-exam-intro .screen__inner { padding: 16px; text-align: left; background: #f8f5f2; }
.writing-exam-intro__topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.writing-exam-intro__back { color: var(--primary); padding: 6px; background: none; border: none; cursor: pointer; }
.writing-exam-intro__back:hover { color: var(--primary-hover); }
.writing-exam-intro__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.writing-exam-intro__warning { padding: 16px; border-radius: 1rem; background: #f7dcdc; border: 1px solid #e8b4b4; }
.writing-exam-intro__text { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--text); }
.writing-exam-intro__btn { width: 100%; margin-top: 24px; padding: 14px; font-size: 1rem; font-weight: 600; border-radius: 9999px; background: #a7421e; color: #fff; border: none; cursor: pointer; }
.writing-exam-intro__btn:hover { background: #8b3619; }

/* === Writing exam main (4-Ekran: sticky timer + accordion) === */
.screen--writing-exam-main { padding: 0; height: 100vh; }
.writing-exam-main { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.writing-exam-main__timer-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.writing-exam-main__scroll { flex: 1; overflow-y: auto; padding: 16px; padding-bottom: 24px; background: #f8f5f2; }
.writing-exam-main__topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.writing-exam-main__back { color: var(--primary); padding: 6px; background: none; border: none; cursor: pointer; font-size: 1.2rem; }
.writing-exam-main__title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.writing-exam-accordion { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.writing-exam-accordion__item { background: var(--white); border-radius: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
/* Task 1.1 only: faqat Scenario + Task 1.1 */
.screen--writing-exam-main.is-task11 .writing-exam-accordion__item--task12,
.screen--writing-exam-main.is-task11 .writing-exam-accordion__item--task2 { display: none !important; }

.screen--writing-exam-main.is-task12 .writing-exam-accordion__item--task11,
.screen--writing-exam-main.is-task12 .writing-exam-accordion__item--task2 { display: none !important; }

.screen--writing-exam-main.is-task2 .writing-exam-accordion__item--task11,
.screen--writing-exam-main.is-task2 .writing-exam-accordion__item--task12 { display: none !important; }

.writing-exam-accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  background: #fff5eb;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.writing-exam-accordion__head:hover { background: #ffe8d6; }
.writing-exam-accordion__chevron {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}
.writing-exam-accordion__item.is-open .writing-exam-accordion__chevron { transform: rotate(180deg); }
.writing-exam-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.writing-exam-accordion__item.is-open .writing-exam-accordion__panel { max-height: 400px; }
.writing-exam-accordion__body { padding: 12px 16px 16px; font-size: 0.9rem; line-height: 1.5; color: var(--text); border-top: 1px solid rgba(0,0,0,0.06); }
.writing-exam-accordion__material { margin-bottom: 0; }
.writing-exam-accordion__instruction { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.08); font-size: 0.88rem; color: var(--text); opacity: 0.92; white-space: pre-wrap; }
.writing-exam-main__finish { width: 100%; padding: 14px; font-size: 1rem; font-weight: 600; border-radius: 1rem; background: #a7421e; color: #fff; border: none; cursor: pointer; }
.writing-exam-main__finish:hover { background: #8b3619; }

/* === Scan & Verify (no timer – paused) === */
.screen--scan-verify .screen__inner { padding: 16px; text-align: left; background: #f8f5f2; }
.scan-verify__topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.scan-verify__back { color: var(--primary); padding: 6px; background: none; border: none; cursor: pointer; }
.scan-verify__back:hover { color: var(--primary-hover); }
.scan-verify__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.scan-verify__step-label { margin: 0 0 8px; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.scan-verify__progress-wrap {
  height: 6px;
  background: rgba(0,0,0,0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}
.scan-verify__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c2410c, #ea580c);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.scan-verify__instruction { margin: 0 0 10px; font-size: 0.95rem; color: var(--text); }
.scan-verify__photo-wrap { margin-bottom: 20px; }
.scan-verify__file-input { position: absolute; width: 0; height: 0; opacity: 0; overflow: hidden; }
.scan-verify__photo-btn { width: 100%; padding: 14px; border-radius: 1rem; background: #f5e6d3; color: var(--text); border: 1px solid #e8d4b8; cursor: pointer; font-size: 0.98rem; }
.scan-verify__photo-btn:hover { background: #ede0d0; }
.scan-verify__textarea-wrap { position: relative; margin-bottom: 20px; }
.scan-verify__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  min-height: 120px;
}
.scan-verify__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 136, 204, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: scan-verify-spin 0.8s linear infinite;
}
@keyframes scan-verify-spin { to { transform: rotate(360deg); } }
.scan-verify__loading-text { font-size: 0.95rem; color: var(--text-muted); }
.scan-verify__textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: 1rem;
  resize: vertical;
  background: var(--white);
}
.scan-verify__wordcount { margin: 8px 0 0; font-size: 0.9rem; color: var(--text-muted); }
.scan-verify__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.scan-verify__btn { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 1rem; font-size: 0.95rem; font-weight: 600; border: none; cursor: pointer; }
.scan-verify__btn--secondary { background: #e5e7eb; color: var(--text); }
.scan-verify__btn--secondary:hover { background: #d1d5db; }
.scan-verify__btn--primary { background: var(--primary); color: #fff; }
.scan-verify__btn--primary:hover { background: var(--primary-hover); }
.scan-verify__btn--submit { background: #a7421e; color: #fff; }
.scan-verify__btn--submit:hover { background: #8b3619; }

/* === Past Exams screen === */
.screen--past-exams .screen__inner {
  text-align: left;
}

.past-exams {
  padding: 0;
  background: transparent;
}

.past-exams__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.past-exams__back {
  color: var(--primary);
  padding: 6px;
}
.past-exams__back:hover { color: var(--primary-hover); }

.past-exams__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.past-exams__refresh {
  padding: 8px;
  color: var(--text-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.past-exams__refresh:hover { color: var(--primary); }

.past-exams__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.past-exam-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: none;
  transition: box-shadow 0.2s;
}
.past-exam-card:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04); }

.past-exam-card__info {
  flex: 1;
  min-width: 0;
}

.past-exam-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--text);
}
.past-exam-card__row:last-child { margin-bottom: 0; }

.past-exam-card__icon {
  flex-shrink: 0;
  color: var(--text-soft);
}

.past-exam-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.35);
  transition: background 0.2s, transform 0.05s;
}
.past-exam-card__btn:hover { background: var(--primary-hover); }
.past-exam-card__btn:active { transform: scale(0.98); }
.past-exam-card__btn svg { flex-shrink: 0; }

/* === Exams on date (bitta sanadagi imtihonlar ro'yxati) === */
.screen--exams-on-date .screen__inner {
  text-align: left;
}

.exams-on-date {
  padding: 0;
  background: transparent;
}

.exams-on-date__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.exams-on-date__back {
  color: var(--primary);
  padding: 6px;
}
.exams-on-date__back:hover { color: var(--primary-hover); }

.exams-on-date__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.exams-on-date__refresh {
  padding: 8px;
  color: var(--text-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.exams-on-date__refresh:hover { color: var(--primary); }

.exams-on-date__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exam-session-card {
  padding: 14px 16px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}
.exam-session-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.exam-session-card__location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.exam-session-card__icon {
  flex-shrink: 0;
  color: var(--text-soft);
}

.exam-session-card__verified {
  display: inline-flex;
  margin-left: 2px;
}

.exam-session-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.exam-session-card__pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 136, 204, 0.12);
  color: var(--primary);
}

.exam-session-card__candidate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.exam-session-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 136, 204, 0.35);
  transition: background 0.2s, transform 0.05s;
}
.exam-session-card__btn:hover { background: var(--primary-hover); }
.exam-session-card__btn:active { transform: scale(0.98); }
.exam-session-card__btn svg { flex-shrink: 0; }
/* Writing flow: faqat Writing kartochkalari; Speaking flow: faqat Speaking kartochkalari */
.screen--exams-on-date[data-flow="writing"] .exam-session-card--speaking { display: none !important; }
.screen--exams-on-date[data-flow="speaking"] .exam-session-card--writing { display: none !important; }

/* === Microphone Test (Equipment Check) === */
.screen--microphone-test .screen__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  background: transparent;
}

.microphone-test__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
}

.microphone-test__back {
  color: var(--primary);
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.microphone-test__back:hover { color: var(--primary-hover); }

.microphone-test__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.microphone-test__spacer {
  width: 34px;
}

.microphone-test__visual {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.microphone-test__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0.35;
  animation: microphone-pulse 2s ease-out infinite;
}

.microphone-test__pulse--2 {
  animation-delay: 0.6s;
}

@keyframes microphone-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.microphone-test__mic-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(0, 136, 204, 0.12);
  color: var(--primary);
}

.microphone-test__mic {
  flex-shrink: 0;
}

.microphone-test__content {
  margin-bottom: 24px;
  max-width: 320px;
}

.microphone-test__desc {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}

.microphone-test__warning {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.microphone-test__btn {
  width: 100%;
  max-width: 320px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.microphone-test__btn:hover { background: var(--primary-hover); }
.microphone-test__btn:active { transform: scale(0.98); }
.microphone-test__btn svg { flex-shrink: 0; }

.microphone-test__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}
.microphone-test__link:hover { color: var(--primary-hover); }

/* === Part 1: Introduction (yo'riqnoma) === */
.screen--exam-intro .screen__inner {
  text-align: center;
  padding: 0;
  background: transparent;
}

.exam-intro__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.exam-intro__back {
  color: var(--primary);
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.exam-intro__back:hover { color: var(--primary-hover); }

.exam-intro__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.exam-intro__spacer { width: 34px; }

.exam-intro__card {
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  margin-bottom: 24px;
  gap: 0;
}

.exam-intro__speaker {
  margin-bottom: 12px;
  color: var(--primary);
}

.exam-intro__speaker-icon {
  display: block;
  animation: speaker-pulse 1.2s ease-in-out infinite;
}

@keyframes speaker-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.exam-intro__card-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.exam-intro__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 36em;
}

.exam-intro__btn {
  width: 100%;
  max-width: 280px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.exam-intro__btn:hover { background: var(--primary-hover); }
.exam-intro__btn:active { transform: scale(0.98); }

/* === Part 1: Preparation === */
.screen--exam-preparation .screen__inner {
  text-align: center;
  padding: 0;
  background: transparent;
}

.exam-preparation__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.exam-preparation__back {
  color: var(--primary);
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.exam-preparation__back:hover { color: var(--primary-hover); }

.exam-preparation__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.exam-preparation__subtitle {
  margin: -8px 0 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.exam-preparation__spacer { width: 34px; }

.exam-question-font-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 10px;
}

.exam-question-font-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.exam-question-font-btn {
  min-width: 36px;
  padding: 6px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(0, 136, 204, 0.4);
  border-radius: 8px;
  background: rgba(0, 136, 204, 0.08);
}
.exam-question-font-btn:hover { background: rgba(0, 136, 204, 0.15); color: var(--primary-hover); }

/* Savol matni shrift o‘lchami (A− / A+) */
.app.question-font--s .js-question-text { font-size: 0.85rem !important; }
.app.question-font--m .js-question-text { font-size: 1.1rem !important; }
.app.question-font--l .js-question-text { font-size: 1.35rem !important; }

.exam-preparation__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #f5a623;
  color: #5c3d0a;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.35);
}

.exam-preparation__clock {
  flex-shrink: 0;
}

.exam-preparation__question-card {
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  margin: 0 auto;
  min-height: 120px;
}

/* Part 1: 4–5–6 savollar uchun rasm bloki; 1–2–3 da wrapper bo'sh, joy yo'q */
.exam-part1-pictures-wrap:empty {
  display: block;
  margin: 0;
  padding: 0;
  min-height: 0;
}
.exam-part1-pictures {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
  padding: 0 12px;
}
.exam-part1-picture-slot {
  flex: 0 0 auto;
  width: 190px;
  height: 190px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--bg-muted, #eee);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.exam-part1-picture {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

/* Part 2: rasm bloki – tashlangan rasm o'z o'lchamida (220×190 doirasida), keyin 3 ta savol */
.exam-part2-picture-wrap {
  width: 220px;
  height: 190px;
  min-width: 220px;
  min-height: 190px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--bg-muted, #eee);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--primary);
}
.exam-part2-picture {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
}
/* 3 ta savol bloki – rasmdan keyin, chap tarafdan, to'liq eni */
.exam-part2-questions-wrap {
  margin-top: 4px;
  width: 100%;
  align-self: stretch;
}
.exam-part2-questions {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}
.exam-part2-questions__item {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--bg, #fff);
}
.exam-part2-questions__item:last-child {
  margin-bottom: 0;
}
.exam-part2-questions__num {
  font-weight: 700;
  margin-right: 6px;
  color: var(--primary);
}

.exam-preparation__question {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  text-align: center;
}

/* Part 3: jadval – matn sig'imiga qarab kattaradi/kichiklashadi */
.exam-part3-table {
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  border: 3px solid var(--primary);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.exam-part3-table__row {
  display: flex;
  border-bottom: 3px solid var(--primary);
  flex: 0 0 auto;
}
.exam-part3-table__row:last-child {
  border-bottom: none;
}
.exam-part3-table__row--top .exam-part3-table__cell {
  flex: 1;
  border-right: none;
  padding: 8px 12px;
}
.exam-part3-table__row:not(.exam-part3-table__row--top) .exam-part3-table__cell {
  flex: 1;
  min-width: 0;
  border-right: 3px solid var(--primary);
}
.exam-part3-table__row:not(.exam-part3-table__row--top) .exam-part3-table__cell:last-child {
  border-right: none;
}
.exam-part3-table__cell {
  padding: 10px 12px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  background: #fff;
  min-height: 2.5em;
  box-sizing: border-box;
}
.exam-part3-table__row--top .exam-part3-table__cell {
  min-height: 2.5em;
}

/* === Part 1: Recording === */
.screen--exam-recording .screen__inner {
  text-align: center;
  padding: 0;
  background: transparent;
}

.exam-recording__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}

.exam-recording__back {
  color: var(--primary);
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.exam-recording__back:hover { color: var(--primary-hover); }

.exam-recording__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.exam-recording__subtitle {
  margin: -8px 0 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.exam-recording__spacer { width: 34px; }

.exam-recording__indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  gap: 8px;
}

.exam-recording__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d32f2f;
  animation: recording-dot 1s ease-in-out infinite;
}

@keyframes recording-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.5); }
  50% { opacity: 0.85; }
  60% { box-shadow: 0 0 0 6px rgba(211, 47, 47, 0); }
}

.exam-recording__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #c62828;
}

.exam-recording__time {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.exam-recording__question-card {
  width: 100%;
  flex-direction: column;
  padding: 20px 18px;
  margin-bottom: 20px;
}

.exam-recording__question {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  text-align: center;
}

.exam-recording__prompt {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.exam-recording__visualizer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 12px;
  min-height: 100px;
}

.exam-recording__bar {
  width: 5px;
  min-height: 12px;
  border-radius: 3px;
  background: #c62828;
  animation: visualizer-bar 0.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.04s);
}

@keyframes visualizer-bar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.exam-recording__stop {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #c62828;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.5);
  animation: stop-glow 1.5s ease-in-out infinite;
  transition: transform 0.1s;
}
.exam-recording__stop:hover { transform: translate(-50%, -50%) scale(1.05); }
.exam-recording__stop:active { transform: translate(-50%, -50%) scale(0.95); }

@keyframes stop-glow {
  0%, 100% { box-shadow: 0 0 12px 4px rgba(198, 40, 40, 0.5); }
  50% { box-shadow: 0 0 20px 6px rgba(198, 40, 40, 0.7); }
}

/* === Speaking section complete (tasdiq) === */
.screen--speaking-complete .screen__inner {
  text-align: center;
  padding: 0;
  background: transparent;
}

.speaking-complete__topbar {
  margin-bottom: 24px;
}

.speaking-complete__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.speaking-complete__card {
  width: 100%;
  flex-direction: column;
  padding: 24px 20px;
  margin-bottom: 24px;
}

.speaking-complete__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

.speaking-complete__btn {
  width: 100%;
  max-width: 280px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.speaking-complete__btn:hover { background: var(--primary-hover); }
.speaking-complete__btn:active { transform: scale(0.98); }

/* === Imtihon natijasi (AI mezon asosida to'ldiriladi) === */
.screen--exam-result .screen__inner {
  padding: 0;
  background: transparent;
  text-align: left;
}

.exam-result__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}

.exam-result__back {
  color: var(--primary);
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.exam-result__back:hover { color: var(--primary-hover); }

.exam-result__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.exam-result__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.exam-result__action {
  color: var(--text-soft);
  padding: 6px;
}
.exam-result__action:hover { color: var(--primary); }

.exam-result__score-card {
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff5eb, #ffe8d6);
}

.exam-result__score-label {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.exam-result__score-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #c2410c;
  line-height: 1.2;
}

.exam-result__score-max {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.exam-result__score-loading {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted, #6b7280);
}

.exam-result__score-summary {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted, #6b7280);
  min-height: 1.2em;
}

.exam-result__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.exam-result__tab {
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.exam-result__tab:hover { color: var(--text); }
.exam-result__tab--active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.exam-result__panels {
  position: relative;
}

.exam-result__panel {
  display: none;
}
.exam-result__panel--active {
  display: block;
}

.exam-result__heard-card {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
}

.exam-result__heard-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.exam-result__heard-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.exam-result__heard-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.exam-result__heard-card--open .exam-result__heard-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.exam-result__heard-body {
  display: none;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: 0.9rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.exam-result__heard-card--open .exam-result__heard-body {
  display: block;
}

.exam-result__ai-feedback {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.exam-result__ai-feedback-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.exam-result__ai-feedback-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
}

.exam-result__part {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
  margin-bottom: 12px;
}
.exam-result__part--hidden {
  display: none !important;
}

.exam-result__part-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.exam-result__part-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.exam-result__part-level {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fff5eb;
  color: #c2410c;
}

.exam-result__part-score {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(194, 65, 12, 0.12);
  color: #c2410c;
}

.exam-result__rubric {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.exam-result__rubric-score {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.exam-result__criteria {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exam-result__criterion {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.exam-result__criterion-icon {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.exam-result__criteria-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.exam-result__levelup {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
  margin-bottom: 12px;
  background: #fef3f2;
}

.exam-result__levelup-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.exam-result__levelup-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(194, 65, 12, 0.2);
  color: #c2410c;
  margin-bottom: 12px;
}

.exam-result__levelup-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.exam-result__mispronounced-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.exam-result__mispronounced-list {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.4;
}
.exam-result__levelup-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.exam-result__levelup-part {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c2410c;
}

.exam-result__levelup-q {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--text);
}

.exam-result__levelup-time {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.85;
}

.exam-result__levelup-answer {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.exam-result__levelup-b1 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.exam-result__calc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--primary);
  text-decoration: none;
}
.exam-result__calc-link:hover { text-decoration: underline; }

.exam-result__transcript-card {
  width: 100%;
  padding: 20px;
}

.exam-result__transcript-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.exam-result__transcript-content {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* === Share natija modal (Telegram / Instagram stories uchun rasm) === */
.share-result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.share-result-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.share-result-modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.share-result-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.share-result-close:hover { background: #fff; }

/* Kartochka – stories uchun o‘lcham (nisbat 9:16 ga yaqin) */
.share-result-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.share-result-card__head {
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-result-card__icon { display: flex; }
.share-result-card__official {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.share-result-card__body {
  padding: 20px;
  text-align: center;
}

.share-result-card__level {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 0.02em;
}

.share-result-card__score-num {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  color: #c2410c;
  line-height: 1.1;
}

.share-result-card__score-label {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.08em;
}

.share-result-card__part {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.share-result-card__star { color: #f59e0b; font-size: 1rem; }
.share-result-card__part-score { margin-left: 4px; color: #c2410c; }

.share-result-card__date-label {
  margin: 0 0 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ea580c;
  letter-spacing: 0.05em;
}

.share-result-card__date {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #6b7280;
}

.share-result-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff5eb;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
}

.share-result-card__verified svg { color: #16a34a; flex-shrink: 0; }

.share-result-btn {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.share-result-btn:hover { background: #f5f5f5; }
.share-result-btn:active { transform: scale(0.98); }

/* === Lug'atga saqlash modal === */
.save-word-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.save-word-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.save-word-modal {
  width: 100%;
  max-width: 360px;
  background: #faf8f5;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.save-word-modal__title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.save-word-modal__label {
  display: block;
  margin: 12px 0 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.save-word-modal__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.save-word-modal__input::placeholder { color: var(--text-muted); }

.save-word-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.save-word-modal__btn {
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.save-word-modal__btn--cancel {
  background: none;
  color: #c2410c;
}
.save-word-modal__btn--cancel:hover { background: rgba(194, 65, 12, 0.08); }
.save-word-modal__btn--save {
  background: var(--primary);
  color: #fff;
}
.save-word-modal__btn--save:hover:not(:disabled) { background: var(--primary-hover); }
.save-word-modal__btn--save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === So'z ustida popover (AI xulosasida) === */
.feedback-word-popover {
  position: fixed;
  z-index: 120;
  padding: 6px 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}
.feedback-word-popover.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.feedback-word-popover__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.feedback-word-popover__btn:hover { color: var(--primary-hover); }
.feedback-word-popover__btn svg { flex-shrink: 0; }

/* So'z bosilganda ko'rinadi */
.feedback-word {
  cursor: pointer;
  border-radius: 2px;
  padding: 0 1px;
}
.feedback-word:hover { background: rgba(194, 65, 12, 0.12); }

/* === Saqlangan so'zlar ekrani === */
.screen--saved-words .screen__inner {
  padding: 0;
  background: transparent;
  text-align: left;
}

.saved-words__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.saved-words__back {
  color: var(--primary);
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.saved-words__back:hover { color: var(--primary-hover); }

.saved-words__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.saved-words__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-words__item {
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.saved-words__item-word {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.saved-words__item-translation {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.saved-words__item-context {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.saved-words__empty {
  margin: 24px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* === Yetakchilar (Leaderboard) – zamonaviy dizayn === */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.screen--leaderboard .screen__inner {
  padding: 0 0 0;
  background: linear-gradient(180deg, #fefce8 0%, #fef9c3 18%, #faf5f0 45%, #f5f0eb 100%);
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.leaderboard__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px 14px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.leaderboard__back {
  color: #1e3a5f;
  padding: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.leaderboard__back:hover { background: #fff; }
.leaderboard__title {
  flex: 1;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e3a5f;
  text-align: center;
  letter-spacing: -0.02em;
}
.leaderboard__target {
  color: #1e3a5f;
  padding: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.leaderboard__target:hover { background: #fff; }

.leaderboard__tabs {
  display: flex;
  gap: 8px;
  margin: 16px 16px 0;
  padding: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.leaderboard__tab {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.leaderboard__tab.is-active {
  color: #1e3a5f;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.leaderboard__podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px 28px;
  min-height: 180px;
}

.leaderboard__podium-place {
  flex: 1;
  max-width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.leaderboard__podium-place:hover { transform: translateY(-2px); }
.leaderboard__podium--1 {
  order: 2;
  background: linear-gradient(145deg, rgba(253, 224, 71, 0.5) 0%, rgba(250, 204, 21, 0.35) 100%);
  border: 1px solid rgba(250, 204, 21, 0.4);
  padding-bottom: 28px;
}
.leaderboard__podium--2 {
  order: 1;
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.leaderboard__podium--3 {
  order: 3;
  background: linear-gradient(145deg, rgba(254, 243, 199, 0.7) 0%, rgba(253, 230, 138, 0.4) 100%);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.leaderboard__podium-crown { font-size: 1.4rem; margin-bottom: 6px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }
.leaderboard__podium-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.leaderboard__podium-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px;
  width: 100%;
  text-align: center;
}
.leaderboard__podium-xp {
  font-size: 0.85rem;
  color: #b45309;
  font-weight: 800;
  margin: 0;
}
.leaderboard__podium-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #94a3b8;
  margin-top: 10px;
  line-height: 1;
}

.leaderboard__rankings-title {
  margin: 0 20px 14px;
  font-size: 1rem;
  font-weight: 800;
  color: #1e3a5f;
  letter-spacing: -0.02em;
}

.leaderboard__list-wrap {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 100px;
}

.leaderboard__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leaderboard__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: box-shadow 0.2s ease;
}
.leaderboard__row:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); }
.leaderboard__row.is-me {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.15) 0%, rgba(0, 102, 153, 0.08) 100%);
  border: 1px solid rgba(0, 136, 204, 0.35);
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.15);
}
.leaderboard__row-rank {
  width: 32px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: #64748b;
}
.leaderboard__row.is-me .leaderboard__row-rank { color: var(--primary); }
.leaderboard__row-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.leaderboard__row-name {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}
.leaderboard__row-xp {
  font-size: 0.95rem;
  font-weight: 800;
  color: #b45309;
  flex-shrink: 0;
}

.leaderboard__sticky {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px 16px;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 0));
  flex-shrink: 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
  border-radius: 20px 20px 0 0;
  z-index: 10;
}

.leaderboard__sticky-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.leaderboard__sticky-label {
  font-size: 0.72rem;
  color: #64748b;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.leaderboard__sticky-rank {
  width: 26px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.leaderboard__sticky-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.leaderboard__sticky-name {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}
.leaderboard__sticky-xp {
  font-size: 0.95rem;
  font-weight: 800;
  color: #b45309;
  flex-shrink: 0;
}
.leaderboard__sticky-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.35);
  flex-shrink: 0;
}
.leaderboard__sticky-share:hover {
  background: linear-gradient(135deg, #006699 0%, #004d73 100%);
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.45);
}
.leaderboard__sticky-share svg { flex-shrink: 0; }

/* Leaderboard share card (story format) */
.share-leaderboard-modal .share-result-modal { max-width: 340px; }
.share-leaderboard-card {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 16px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}
.share-leaderboard-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1e3a5f 0%, #0f172a 50%, #020617 100%);
  z-index: 0;
}
.share-leaderboard-card__logo,
.share-leaderboard-card__rank-label,
.share-leaderboard-card__rank,
.share-leaderboard-card__name,
.share-leaderboard-card__xp,
.share-leaderboard-card__cta {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  text-align: center;
  color: #fff;
}
.share-leaderboard-card__logo { font-size: 0.85rem; opacity: 0.9; }
.share-leaderboard-card__rank-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 12px;
}
.share-leaderboard-card__rank {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
  color: #fcd34d;
}
.share-leaderboard-card__name { font-size: 1.2rem; font-weight: 700; }
.share-leaderboard-card__xp {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fcd34d;
  margin-bottom: 16px;
}
.share-leaderboard-card__cta {
  font-size: 1rem;
  opacity: 0.95;
}

/* === Lug'at (maxsus lug'atlar) ekrani === */
.screen--dictionary .screen__inner {
  padding: 0;
  background: transparent;
  text-align: left;
}

.dictionary__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dictionary__back {
  color: var(--primary);
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.dictionary__back:hover { color: var(--primary-hover); }

.dictionary__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.dictionary__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.dictionary__tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.dictionary__tab.is-active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dictionary__panels { position: relative; }

.dictionary__panel {
  display: none;
}
.dictionary__panel.is-active {
  display: block;
}

.dictionary__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dictionary-level-card,
.dictionary-topic-card,
.dictionary-myword-card {
  display: block;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border: none;
  width: 100%;
  font-family: inherit;
}
.dictionary-level-card:hover,
.dictionary-topic-card:hover,
.dictionary-myword-card:hover {
  background: var(--bg-card-hover, rgba(0, 0, 0, 0.04));
}

.dictionary-level-card__title,
.dictionary-topic-card__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.dictionary-level-card__count,
.dictionary-topic-card__count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dictionary__topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dictionary-topic-card {
  text-align: center;
  padding: 18px 12px;
}
.dictionary-topic-card__title { font-size: 0.95rem; }

.dictionary__empty-state {
  margin-top: 32px;
  padding: 24px 16px;
  text-align: center;
}
.dictionary__empty-icon {
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 16px;
}
.dictionary__empty-icon svg {
  display: block;
  margin: 0 auto;
}
.dictionary__empty-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Fleshkarta ekrani === */
.screen--dictionary-flashcard .screen__inner {
  padding: 0;
  background: linear-gradient(180deg, #e6f3ff 0%, #f0f9ff 100%);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.flashcard__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  flex-shrink: 0;
}

.flashcard__back {
  color: var(--primary);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.flashcard__progress {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.flashcard__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  min-height: 200px;
}

.flashcard__card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 3/4;
  perspective: 1000px;
  cursor: pointer;
}

.flashcard__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}
.flashcard__card-inner.is-flipped {
  transform: rotateY(180deg);
}

.flashcard__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.flashcard__face--front {
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(0, 136, 204, 0.2);
}
.flashcard__face--back {
  background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid rgba(0, 136, 204, 0.25);
  transform: rotateY(180deg);
}

.flashcard__word {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.flashcard__audio {
  padding: 10px 16px;
  font-size: 1.2rem;
  border: none;
  border-radius: 10px;
  background: rgba(0, 136, 204, 0.12);
  color: var(--primary);
  cursor: pointer;
}
.flashcard__translation {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.flashcard__synonyms {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.flashcard__synonyms:empty { display: none; }
.flashcard__example {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.4;
}
.flashcard__example:empty { display: none; }

.flashcard__actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
  flex-shrink: 0;
}
.flashcard__btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.flashcard__btn--hard {
  background: #fef2f2;
  color: #dc2626;
  border: 2px solid #fecaca;
}
.flashcard__btn--easy {
  background: #f0fdf4;
  color: #16a34a;
  border: 2px solid #bbf7d0;
}
.flashcard__hint {
  margin: 0 0 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Panel (Gamifikatsiya markazi) === */
.screen--panel .screen__inner {
  padding: 0 0 80px;
  background: var(--bg-warm, #faf8f5);
  text-align: left;
}

.panel__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 16px;
}

.panel__back {
  color: var(--primary);
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.panel__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.panel__card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 16px;
  margin-bottom: 14px;
}

.panel__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.panel__card-head--row { flex-wrap: wrap; gap: 8px; }
.panel__card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.panel__card-meta, .panel__skill-level {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.panel__pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.12);
  color: #ea580c;
}
.panel__pill--time { background: rgba(234, 88, 12, 0.15); }

.panel__quest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.panel__quest {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.panel__quest:last-child { border-bottom: none; }
.panel__quest-icon { font-size: 1.4rem; flex-shrink: 0; }
.panel__quest-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.panel__quest-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.panel__quest-desc { font-size: 0.82rem; color: var(--text-muted); }
.panel__quest-xp {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ea580c;
  background: rgba(234, 88, 12, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.panel__quest-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}
.panel__quest--action { cursor: pointer; }
.panel__quest--action:hover { background: rgba(0, 0, 0, 0.03); border-radius: 8px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }

.panel__level-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.panel__level-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.panel__level-info { display: flex; flex-direction: column; gap: 2px; }
.panel__level-label { font-size: 0.8rem; color: var(--text-muted); }
.panel__level-xp { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.panel__level-xp-help {
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.panel__level-xp-help:hover { color: var(--primary-hover); }
.panel__level-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.panel__level-progress-right {
  font-weight: 600;
  color: var(--primary);
}
.panel__progress-bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.panel__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea580c, #f97316);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.panel__leaderboard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.panel__leaderboard-icon { font-size: 1.2rem; }
.panel__leaderboard-desc {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.panel__consistency-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.panel__consistency-days {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  height: calc(7 * 14px + 6 * 4px);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 14px;
}
.panel__consistency-days span {
  display: block;
  height: 14px;
}
.panel__consistency-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.panel__consistency-grid {
  display: grid;
  grid-template-rows: repeat(7, 14px);
  grid-auto-columns: 14px;
  grid-auto-flow: column;
  gap: 4px;
  width: min-content;
  min-width: 100%;
}
.panel__consistency-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #ebedf0;
}
.panel__consistency-cell[data-intensity="0"] { background: #ebedf0; }
.panel__consistency-cell[data-intensity="1"] { background: #9be9a8; }
.panel__consistency-cell[data-intensity="2"] { background: #40c463; }
.panel__consistency-cell[data-intensity="3"] { background: #30a14e; }
.panel__consistency-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.panel__consistency-legend-text { flex-shrink: 0; }
.panel__consistency-legend-samples {
  display: flex;
  gap: 3px;
  align-items: center;
}
.panel__consistency-legend-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.panel__consistency-legend-cell[data-intensity="0"] { background: #ebedf0; }
.panel__consistency-legend-cell[data-intensity="1"] { background: #9be9a8; }
.panel__consistency-legend-cell[data-intensity="2"] { background: #40c463; }
.panel__consistency-legend-cell[data-intensity="3"] { background: #30a14e; }
.panel__consistency-legend-more { color: #30a14e; font-weight: 600; }

.panel__skill-badge {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.panel__radar-title {
  margin: 14px 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.panel__radar-hint {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.panel__radar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.panel__radar {
  display: block;
  max-width: 100%;
  height: auto;
}
.panel__radar-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.panel__radar-label {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 136, 204, 0.3);
  background: rgba(0, 136, 204, 0.08);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.panel__radar-label:hover {
  background: rgba(0, 136, 204, 0.15);
}

.panel__share-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* Kvadrat ulashish kartochkasi (Panel) */
.share-panel-card {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 16px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
}
.share-panel-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #0088cc 0%, #006699 50%, #004d73 100%);
  z-index: 0;
}
.share-panel-card__logo,
.share-panel-card__name,
.share-panel-card__level,
.share-panel-card__cta {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  text-align: center;
  color: #fff;
}
.share-panel-card__logo { font-size: 0.9rem; opacity: 0.95; }
.share-panel-card__name { font-size: 1rem; }
.share-panel-card__level {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-top: 8px;
  margin-bottom: 12px;
}
.share-panel-card__cta {
  font-size: 1rem;
  opacity: 0.95;
}

/* How to earn XP? modal */
.xp-help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.xp-help-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.xp-help-modal {
  background: #fefbf7;
  border-radius: 20px;
  max-width: 360px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.xp-help-modal__title {
  margin: 0;
  padding: 20px 20px 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.xp-help-modal__intro {
  margin: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.xp-help-modal__list {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 12px;
  -webkit-overflow-scrolling: touch;
}
.xp-help-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.xp-help-item:last-child { border-bottom: none; }
.xp-help-item__icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.xp-help-item__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.xp-help-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.xp-help-item__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.xp-help-item__xp {
  font-size: 0.9rem;
  font-weight: 700;
  color: #a16207;
  flex-shrink: 0;
}
.xp-help-modal__actions {
  padding: 12px 20px 20px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}
.xp-help-modal__btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: #a16207;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.xp-help-modal__btn:hover {
  background: #854d0e;
}

/* Ball qanday hisoblanadi? (Speaking) */
.score-calc-modal { max-width: 420px; }
.score-calc-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  -webkit-overflow-scrolling: touch;
}
.score-calc-modal__body p { margin: 0 0 12px; }
.score-calc-modal__body p:last-of-type { margin-bottom: 8px; }
.score-calc-modal__body ul { margin: 0 0 12px; padding-left: 1.2em; }
.score-calc-modal__body li { margin-bottom: 4px; }
.score-calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 4px;
  margin-bottom: 0;
}
.score-calc-table th,
.score-calc-table td {
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 8px 12px;
  text-align: center;
}
.score-calc-table th {
  background: rgba(161, 98, 7, 0.12);
  font-weight: 700;
  color: var(--text);
}
.score-calc-table tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.03); }

.daily-limit-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.daily-limit-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px 20px;
}
.daily-limit-btn {
  width: 100%;
  text-align: center;
}
.daily-limit-btn--secondary {
  background: var(--primary);
  color: #fff;
}
.daily-limit-btn--secondary:hover {
  background: var(--primary-hover);
}
.daily-limit-btn--ghost {
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
}
.daily-limit-btn--ghost:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* === Yonbosh menyu (drawer) === */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  max-width: 320px;
  background: var(--bg-main);
  z-index: 101;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__inner {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 24px;
}

.drawer__profile {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.12), rgba(0, 136, 204, 0.08));
  padding: 20px 16px;
  text-align: center;
  position: relative;
}

.drawer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer__close:hover { background: rgba(0, 136, 204, 0.15); color: var(--primary-hover); }
.drawer__close:active { background: var(--primary); color: var(--white); }

.drawer__avatar-wrap {
  margin-bottom: 8px;
}

.drawer__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  margin: 0 auto;
}

.drawer__username {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.drawer__email {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.drawer__buy {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 8px;
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  font-size: 0.9rem;
}
.drawer__buy:hover { background: var(--primary-hover); }
.drawer__buy:active { background: #004d73; }

.drawer__join {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.drawer__join-icon {
  flex-shrink: 0;
}

.drawer__nav {
  padding: 12px 0;
}

.drawer__group-label {
  display: block;
  padding: 8px 16px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.drawer__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}

.drawer__item:hover {
  background: rgba(0, 136, 204, 0.12);
  color: var(--primary);
}

.drawer__item:active {
  background: var(--primary);
  color: var(--white);
}

.drawer__item--active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}
.drawer__item--active:hover { background: var(--primary-hover); color: var(--white); }
.drawer__item--active:active { background: #004d73; }

.drawer__item-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.drawer__divider {
  display: block;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 8px 16px;
}

.drawer__footer {
  padding: 16px 16px 0;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.drawer__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  color: #c62828;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
}

.drawer__logout:hover {
  background: rgba(198, 40, 40, 0.08);
}

.drawer__logout-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.drawer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
}

.drawer__social {
  color: var(--text-muted);
  padding: 6px;
}

.drawer__social:hover {
  color: var(--primary);
}

.drawer__copyright {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 8px 8px;
}

/* === Responsive: barcha qurilmalar ekraniga mos === */
/* Juda kichik ekranlar (masalan 320px) */
@media (max-width: 359px) {
  .app {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .title { font-size: 1.5rem; }
  .subtitle { font-size: 0.9rem; }
  .btn { padding: 12px 16px; font-size: 1rem; }
}

/* Planshet va katta ekranlar – kontent markazda, o‘qi oson */
@media (min-width: 480px) {
  .title {
    font-size: 2rem;
  }

  .btn {
    padding: 18px 28px;
    font-size: 1.15rem;
  }

  .listening-l1__submit,
  .listening-l2__submit,
  .listening-l3__submit,
  .listening-l4__submit,
  .listening-l5__submit,
  .listening-l6__submit {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
}

@media (min-width: 768px) {
  .screen {
    max-width: 480px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-radius: 24px;
  }
}
