/* Qo'shimcha funksiyalar: o'sish grafigi, to'lovlar, yozma javoblar, Telegram, arizalar. */
.notice-ok {
  background: var(--accent-soft);
  color: var(--accent);
}

a.notice {
  transition: filter 0.15s;
}

a.notice:hover {
  filter: brightness(0.97);
}

/* ---- O'sish ---- */
.progress {
  display: grid;
  gap: 18px;
}

.chart {
  height: 110px;
}

.chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.chart-area {
  fill: color-mix(in srgb, var(--accent) 12%, transparent);
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-dots line {
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.progress-stats div {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
}

.progress-stats strong {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.progress-stats span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.3;
}

/* ---- To'lovlar ---- */
.pay-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 20px 0;
  color: var(--muted);
  font-size: 13.5px;
}

.pay-amount {
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Yozma savollar ---- */
.question-points {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
}

.answer-text {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.review-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 14px;
}

.review-row .input {
  width: 84px;
}

.editor-kind {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.editor-kind .input {
  width: 78px;
}

.editor-kind label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---- Prompt mashqi (AI bahosi) ---- */
.fb {
  display: grid;
  gap: 20px;
}

.fb-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.fb-criteria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fb-criterion {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.fb-criterion-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.fb-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}

.fb-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.fb-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.fb-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.fb-list svg {
  margin-top: 3px;
  color: var(--accent);
}

.fb-copy {
  margin-top: 10px;
}

.fb-wait {
  display: grid;
  justify-items: center;
  text-align: center;
}

.fb-wait .spinner {
  margin: 12px auto;
}

.fb-submit {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.fb-modal {
  display: grid;
  gap: 20px;
}

/* ---- Telegram ---- */
.tg-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- Arizalar ---- */
.lead-goal {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lead-row {
  align-items: flex-start;
}

.lead-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-links {
  display: grid;
  gap: 6px;
}

.auth-links a {
  color: var(--accent);
  font-weight: 550;
}

.apply-done {
  display: grid;
  gap: 14px;
  justify-items: start;
}

/* Botlar uchun tuzoq maydoni: odamga ko'rinmaydi. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .fb-criteria {
    grid-template-columns: minmax(0, 1fr);
  }

  .progress-stats strong {
    font-size: 19px;
  }

  .lead-row {
    flex-wrap: wrap;
  }

  .lead-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
