/* ══════════════════════════════════════════
   SHARED INNER PAGE LAYOUT
══════════════════════════════════════════ */
.inner {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: var(--bg);
  position: relative;
}

.inner::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 8%  12%, rgba(99,102,241,0.07), transparent 60%),
    radial-gradient(ellipse 40% 35% at 92% 88%, rgba(59,130,246,0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.inner-dots {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.inner-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.inner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.inner-title {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1.15;
}

.inner-sub {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-top: 0.3rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   STAT CARDS  (shared by multiple pages)
══════════════════════════════════════════ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.stat-card {
  background: rgba(12,19,38,0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.stat-card-val {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-card-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
}

/* ══════════════════════════════════════════
   BADGE
══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.badge-pass { background: rgba(16,185,129,0.14); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.badge-fail { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.22);  }

/* ══════════════════════════════════════════
   TABLE
══════════════════════════════════════════ */
.tbl-wrap {
  background: rgba(12,19,38,0.75);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.tbl thead {
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}

.tbl th {
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.tbl td {
  padding: 0.9rem 1.25rem;
  color: var(--text-2);
  border-bottom: 1px solid rgba(255,255,255,0.035);
  vertical-align: middle;
}

.tbl tbody tr:last-child td { border-bottom: none; }

.tbl tbody tr {
  transition: background 0.15s;
}

.tbl tbody tr:hover { background: rgba(255,255,255,0.02); }

.tbl-score {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tbl-bar-track {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.tbl-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--blue));
}

.tbl-bar-fill.fail { background: linear-gradient(90deg, #ef4444, #f87171); }

/* ══════════════════════════════════════════
   TEST PAGE
══════════════════════════════════════════ */
.test-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.q-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  background: rgba(12,19,38,0.8);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
}

.q-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.q-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.q-bubble {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s var(--ease);
}

.q-bubble:hover          { border-color: rgba(99,102,241,0.35); color: var(--text-2); }
.q-bubble.q-bubble-done    { background: rgba(99,102,241,0.14); border-color: rgba(99,102,241,0.3); color: #a5b4fc; }
.q-bubble.q-bubble-correct { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.4); color: #34d399; }
.q-bubble.q-bubble-wrong   { background: rgba(239,68,68,0.15);  border-color: rgba(239,68,68,0.4);  color: #f87171; }
.q-bubble.q-bubble-cur     { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 10px var(--primary-glow); }

.q-sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}

.q-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.q-sidebar-row span { color: var(--text-3); }
.q-sidebar-row strong { color: var(--text); font-weight: 700; }

.q-timer-val {
  color: var(--primary) !important;
  font-variant-numeric: tabular-nums;
}

/* ── Main question card ── */
.q-main { display: flex; flex-direction: column; gap: 1rem; }

.q-card {
  background: rgba(12,19,38,0.8);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
}

.q-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.q-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-lt);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
}

.q-counter {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 500;
}

.q-bar-track {
  height: 3px;
  background: rgba(255,255,255,0.055);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.q-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--blue));
  border-radius: 999px;
  transition: width 0.3s var(--ease);
  box-shadow: 0 0 8px var(--primary-glow);
}

.q-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.q-opts { display: flex; flex-direction: column; gap: 0.55rem; }

.q-opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 11px;
  border: 1.5px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.q-opt:hover { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.06); }

.q-opt.q-opt-sel {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.12);
}

.q-opt-badge {
  min-width: 36px; height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s;
}

.q-opt.q-opt-sel .q-opt-badge { background: var(--primary); color: #fff; }
.q-opt:hover:not(.q-opt-sel) .q-opt-badge { background: rgba(99,102,241,0.2); color: #a5b4fc; }

.q-opt-text { font-size: 0.9rem; color: var(--text-2); font-weight: 500; }
.q-opt.q-opt-sel .q-opt-text { color: var(--text); }

/* To'g'ri/noto'g'ri javob stillari */
.q-opt.q-opt-correct {
  border-color: rgba(16,185,129,0.5);
  background: rgba(16,185,129,0.12);
  cursor: default;
}
.q-opt.q-opt-correct .q-opt-badge { background: #10b981; color: #fff; }
.q-opt.q-opt-correct .q-opt-text { color: #34d399; }

.q-opt.q-opt-wrong {
  border-color: rgba(239,68,68,0.5);
  background: rgba(239,68,68,0.12);
  cursor: default;
}
.q-opt.q-opt-wrong .q-opt-badge { background: #ef4444; color: #fff; }
.q-opt.q-opt-wrong .q-opt-text { color: #f87171; }

.q-opt.q-opt-locked { cursor: default; pointer-events: none; }

.q-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.q-actions-right { display: flex; gap: 0.75rem; }

/* ══════════════════════════════════════════
   WRONG ANSWERS (XATOLAR)
══════════════════════════════════════════ */
.wrong-list { display: flex; flex-direction: column; gap: 1rem; }

.wrong-card {
  background: rgba(12,19,38,0.75);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(239,68,68,0.5);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  transition: border-color 0.25s var(--ease);
}

.wrong-card:hover { border-color: rgba(239,68,68,0.4); }

.wrong-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(239,68,68,0.6);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.wrong-q {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.wrong-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.wrong-ans-block { display: flex; flex-direction: column; gap: 0.3rem; }

.wrong-ans-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.wrong-ans-val {
  padding: 0.55rem 0.85rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
}

.wrong-ans-val.is-wrong   { background: rgba(239,68,68,0.1);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.wrong-ans-val.is-correct { background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }

/* ══════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-3);
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.filter-btn:hover { color: var(--text-2); border-color: rgba(255,255,255,0.1); }
.filter-btn.active { color: var(--text); background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.25); }

/* ══════════════════════════════════════════
   RESPONSIVE (inner pages)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .test-layout { grid-template-columns: 1fr; }
  .q-sidebar   { position: static; }
  .q-grid      { grid-template-columns: repeat(10, 1fr); }
  .wrong-answers { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .q-grid     { grid-template-columns: repeat(5, 1fr); }
  .inner-wrap { padding: 1.5rem 1rem 4rem; }
  .tbl th, .tbl td { padding: 0.7rem 0.75rem; }
}

/* ══════════════════════════════════════════
   AI EXPLAIN
══════════════════════════════════════════ */
.ai-explain-wrap {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-explain-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.08);
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease, ease);
  width: fit-content;
}

.ai-explain-btn:hover:not(:disabled) {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.55);
  color: #c7d2fe;
}

.ai-explain-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ai-explain-btn.loading svg {
  animation: ai-spin 0.8s linear infinite;
}

@keyframes ai-spin {
  to { transform: rotate(360deg); }
}

.ai-panel {
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.ai-panel-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.ai-panel-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-2, #cbd5e1);
  white-space: pre-wrap;
  margin: 0;
}

.ai-limit-unlimited {
  color: #34d399;
}

/* ══════════════════════════════════════════
   AI USTOZ PAGE
══════════════════════════════════════════ */
.ustoz-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* AI Tahlil */
.ustoz-analysis-card {
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 2rem;
}
.ustoz-analysis-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a5b4fc;
  margin-bottom: 0.75rem;
}
.ustoz-analysis-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-2, #cbd5e1);
  margin: 0;
  white-space: pre-wrap;
}

/* Zaif tomonlar */
.ustoz-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3, #94a3b8);
  margin: 0 0 1rem;
}
.ustoz-weak-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}
.ustoz-weak-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.ustoz-weak-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}
.ustoz-weak-name { font-size: 0.88rem; font-weight: 600; color: var(--text-2); }
.ustoz-weak-count { font-size: 0.78rem; font-weight: 700; color: #f87171; }
.ustoz-weak-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}
.ustoz-weak-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f87171, #fb923c);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(.34,1.56,.64,1);
}

/* Empty */
.ustoz-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-3);
}
.ustoz-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* ── Pricing cards ── */
.ustoz-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.ustoz-plan-card {
  background: rgba(12,19,38,0.75);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.2s;
}
.ustoz-plan-card:hover { border-color: rgba(255,255,255,0.12); }
.ustoz-plan-card-premium {
  border-color: rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.05);
}
.ustoz-plan-card-premium:hover { border-color: rgba(99,102,241,0.6); }

.ustoz-plan-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  width: fit-content;
}
.ustoz-plan-top { margin-bottom: 1.25rem; }
.ustoz-plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.ustoz-plan-price {
  font-size: 0.85rem;
  color: var(--text-3);
  font-weight: 600;
}
.ustoz-plan-price-premium { color: #a5b4fc; }

.ustoz-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.ustoz-plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 500;
}
.ustoz-plan-feat-no { color: var(--text-3) !important; }

.ustoz-current-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  text-align: center;
  margin-bottom: 0.5rem;
}

.ustoz-plan-btn {
  width: 100%;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 700;
}
.ustoz-plan-btn-gray {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-3);
  cursor: not-allowed;
}
.ustoz-plan-btn-o {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.18s;
}
.ustoz-plan-btn-o:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}
.ustoz-plan-btn-premium {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  box-shadow: 0 4px 18px rgba(99,102,241,0.35);
}
.ustoz-plan-btn-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.5);
}

/* Toast */
.ustoz-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: rgba(7,12,25,0.97);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 3000;
  white-space: nowrap;
}
.ustoz-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 860px) {
  .ustoz-plans-grid { grid-template-columns: 1fr; }
  .ustoz-two-col    { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ustoz-plans-grid { gap: 1rem; }
}

/* ══════════════════════════════════════════
   USTOZ — TAB NAV
══════════════════════════════════════════ */
.ustoz-tabs {
  display: flex;
  gap: 0.3rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.35rem;
  margin-bottom: 1.75rem;
  width: fit-content;
  flex-wrap: wrap;
}
.ustoz-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-3);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.ustoz-tab:hover { color: var(--text-2); background: rgba(255,255,255,0.04); }
.ustoz-tab.active {
  color: var(--text);
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
}
.ustoz-panel { animation: fadeInUp 0.22s var(--ease) both; }
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Two-column layout ── */
.ustoz-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}
.ustoz-card {
  background: rgba(12,19,38,0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
}
.ustoz-card-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 1rem;
}

/* ── Score prediction ── */
.ustoz-pred-score {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 0.3rem;
}
.ustoz-pred-label {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 0.85rem;
}
.ustoz-pred-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.ustoz-pred-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s cubic-bezier(.34,1.56,.64,1);
}

/* ══════════════════════════════════════════
   USTOZ — AI CHAT
══════════════════════════════════════════ */
.ustoz-chat-wrap {
  display: flex;
  flex-direction: column;
  height: 520px;
  background: rgba(12,19,38,0.75);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.ustoz-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.ustoz-chat-bot,
.ustoz-chat-user {
  display: flex;
  gap: 0.65rem;
  align-items: flex-end;
  max-width: 82%;
}
.ustoz-chat-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ustoz-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.ustoz-chat-bubble {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  padding: 0.7rem 0.95rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-2);
  word-break: break-word;
}
.ustoz-chat-bubble-user {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.2);
  border-radius: 14px 14px 4px 14px;
  color: var(--text);
}
.chat-dots { display: inline-flex; gap: 3px; align-items: center; }
.chat-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-3);
  animation: chatDot 1.2s ease infinite;
}
.chat-dots span:nth-child(2) { animation-delay: .2s; }
.chat-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes chatDot { 0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-5px)} }

.ustoz-chat-input-wrap {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(7,12,25,0.5);
}
.ustoz-chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s;
}
.ustoz-chat-input:focus { border-color: rgba(99,102,241,0.45); }
.ustoz-chat-input::placeholder { color: var(--text-3); }
.ustoz-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg,#6366f1,#818cf8);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s;
  box-shadow: 0 3px 12px rgba(99,102,241,0.35);
}
.ustoz-chat-send:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(99,102,241,0.5); }
.ustoz-chat-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════
   USTOZ — DAILY CHALLENGE
══════════════════════════════════════════ */
.ustoz-daily-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.ustoz-daily-cat {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
}
.daily-q-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1.1rem;
  font-weight: 500;
}
.daily-opts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.daily-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
  color: var(--text-2);
  font-family: inherit;
  font-weight: 500;
  transition: all 0.15s;
}
.daily-opt:hover:not(:disabled) { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.3); color: var(--text); }
.daily-opt:disabled { cursor: default; }
.daily-opt-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.daily-opt-correct { background: rgba(16,185,129,0.1)!important; border-color: rgba(16,185,129,0.35)!important; color: #34d399!important; }
.daily-opt-wrong   { background: rgba(239,68,68,0.1)!important; border-color: rgba(239,68,68,0.3)!important; color: #f87171!important; }

/* ══════════════════════════════════════════
   USTOZ — LEADERBOARD
══════════════════════════════════════════ */
.ustoz-my-rank {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-3);
}
.my-rank-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #a5b4fc;
  letter-spacing: -1px;
}
.ustoz-leaderboard { display: flex; flex-direction: column; gap: 0.5rem; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.18s;
}
.lb-row:hover { border-color: rgba(255,255,255,0.1); }
.lb-top { background: rgba(99,102,241,0.05); border-color: rgba(99,102,241,0.15); }
.lb-rank { font-size: 1.2rem; min-width: 2rem; text-align: center; }
.lb-name { flex: 1; font-weight: 600; color: var(--text-2); font-size: 0.9rem; }
.lb-score { font-weight: 800; font-size: 1rem; }
.lb-tests { color: var(--text-3); font-size: 0.8rem; }

/* ══════════════════════════════════════════
   USTOZ — NON-PREMIUM HERO
══════════════════════════════════════════ */
.ustoz-hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}
.ustoz-hero-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)}50%{transform:scale(1.08)} }
.ustoz-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 0.65rem;
}
.ustoz-hero-sub {
  font-size: 1rem;
  color: var(--text-3);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Features grid */
.ustoz-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}
.ustoz-feat {
  background: rgba(12,19,38,0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1rem;
  text-align: center;
  transition: all 0.2s;
}
.ustoz-feat:hover { transform: translateY(-2px); border-color: rgba(99,102,241,0.25); }
.ustoz-feat-ico { font-size: 1.8rem; margin-bottom: 0.6rem; }
.ustoz-feat-title { font-size: 0.88rem; font-weight: 700; color: var(--text-2); margin-bottom: 0.3rem; }
.ustoz-feat-desc { font-size: 0.78rem; color: var(--text-3); line-height: 1.5; }

/* Plans title */
.ustoz-plans-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

/* Plan feature list items */
.feat-yes, .feat-no, .feat-prem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.feat-yes::before  { content:'✓'; color:#34d399; font-weight:800; font-size:.85rem; flex-shrink:0; }
.feat-no::before   { content:'✗'; color:#4b5a7a; font-weight:800; font-size:.85rem; flex-shrink:0; }
.feat-prem::before { content:'✓'; color:#a5b4fc; font-weight:800; font-size:.85rem; flex-shrink:0; }
.feat-no { color: var(--text-3)!important; }

/* Trust badges */
.ustoz-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 500;
}

@media (max-width: 860px) {
  .ustoz-features-grid { grid-template-columns: repeat(2,1fr); }
  .ustoz-tabs { width: 100%; }
  .ustoz-chat-wrap { height: 420px; }
}
@media (max-width: 560px) {
  .ustoz-features-grid { grid-template-columns: 1fr 1fr; }
  .ustoz-hero-title { font-size: 1.6rem; }
}

/* ── Chart grid ──────────────────────────────────────────────────────────── */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.chart-card {
  background: var(--card-bg, rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem 1rem;
}
.chart-card-full {
  grid-column: 1 / -1;
}
.chart-card-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .85rem;
  opacity: .75;
}
@media (max-width: 620px) {
  .chart-grid { grid-template-columns: 1fr; }
  .chart-card-full { grid-column: 1; }
}
