/* ─── Insights strip, alert composer, Telegram panel, price chart, health card ─── */

.insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 28px;
}

/* ─── Alert channel buttons ─── */

.alert-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.alert-options button {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.alert-options button.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.alert-options button.coming-soon {
  opacity: 0.5;
  cursor: default;
  font-size: 0.8125rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.alert-options button.coming-soon span {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Upsell panel (unpaid users) ─── */

.alert-upsell {
  margin-top: 18px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.alert-upsell p {
  margin: 0;
  font-weight: 500;
}

/* ─── Alert composer form ─── */

.alert-composer {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.composer-head,
.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.composer-head {
  margin-bottom: 14px;
}

.composer-head strong {
  font-size: 1rem;
}

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

.composer-grid .composer-full {
  grid-column: 1 / -1;
}

.composer-actions {
  margin-top: 14px;
}

.composer-actions .button {
  min-width: 150px;
}

/* ─── Telegram linking panel ─── */

.tg-link-panel {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tg-step {
  font-size: 0.875rem;
  margin: 0 0 8px;
}

.tg-code {
  font-family: monospace;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-align: center;
  padding: 10px;
  background: var(--surface-soft);
  border: 1px dashed var(--accent);
  border-radius: 6px;
  cursor: pointer;
  user-select: all;
  margin-bottom: 8px;
}

.tg-open-btn {
  display: block;
  text-align: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #229ED9;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}

.tg-open-btn:hover {
  opacity: 0.88;
}

.tg-status {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

.channel-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
}

/* ─── Price chart ─── */

.chart {
  height: 130px;
  padding: 8px 0;
  overflow: hidden;
}

.price-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

/* ─── Alternatives card ─── */

.history-events,
.history-records {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.history-records {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.history-events li,
.history-records li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 0.8125rem;
}

.history-events span,
.history-records span {
  color: var(--muted);
  font-weight: 800;
}

.history-events strong,
.history-records strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-records small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 750;
}

.alternatives-card ul:not(.history-records),
.price-panel ul {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.alternatives-card ul:not(.history-records) li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 0.875rem;
}

/* ─── Health card ─── */

.health-card {
  display: grid;
  gap: 14px;
}

.health-card strong {
  color: var(--success);
  font-size: 1.0625rem;
  font-weight: 700;
}

.health-dots {
  display: flex;
  gap: 12px;
}

.health-dots span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success);
}

.health-dots .muted {
  background: #b7c5d7;
}

/* ─── Mobile upsell card (hidden on desktop, shown via responsive.css) ─── */

.mobile-upsell {
  display: none;
}

.check-icon {
  color: #0ca99b;
  flex-shrink: 0;
}
