/* ===================== eTroniX — Favorites + Telegram alerts (mirrors source favorites.css) ===================== */

.fav-page { padding-top: 26px; padding-bottom: 48px; }

/* ---- Telegram banner ---- */
.tg-banner {
  margin-top: 6px; padding: 26px 28px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px 24px;
  background: radial-gradient(120% 160% at 0% 0%, var(--blue-soft) 0%, var(--surface) 55%);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.tg-banner.connected {
  background: radial-gradient(120% 160% at 0% 0%, var(--green-soft) 0%, var(--surface) 55%);
}
.tg-banner-main { display: flex; align-items: flex-start; gap: 18px; min-width: 0; }
.tg-banner-ic {
  width: 56px; height: 56px; border-radius: 16px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue)); box-shadow: var(--sh-blue);
}
.tg-banner.connected .tg-banner-ic { background: var(--green); box-shadow: 0 8px 24px rgba(17,163,107,.32); }
.tg-banner-ic svg { width: 28px; height: 28px; }
.tg-banner-text h3 { font-size: 21px; letter-spacing: -0.02em; }
.tg-banner-text p { margin: 7px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; max-width: 560px; }
.tg-banner-text b { color: var(--ink); }
.tg-banner-act { flex: 0 0 auto; }
.tg-feats {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 22px;
  border-top: 1px solid var(--line); padding-top: 16px; margin-top: 2px;
}
.tg-feats span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tg-feats svg { width: 17px; height: 17px; color: var(--blue); }

/* ---- layout: list + preview ---- */
.fav-layout { display: grid; grid-template-columns: 1fr 330px; gap: 22px; align-items: start; margin-top: 22px; }
@media (max-width: 960px) { .fav-layout { grid-template-columns: 1fr; } }

.fav-list { display: flex; flex-direction: column; gap: 14px; }

/* ---- favorite row ---- */
.fav-row {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center;
  transition: box-shadow .2s, border-color .2s;
}
.fav-row:hover { box-shadow: var(--sh-2); border-color: var(--line-2); }
.fav-img { width: 120px; height: 120px; aspect-ratio: 1/1; flex: 0 0 auto; cursor: pointer; object-fit: contain; border-radius: var(--r-md); background: #f5f7fc; user-select: none; -webkit-user-drag: none; }
.fav-body { min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.fav-name { font-size: 17px; font-weight: 700; line-height: 1.28; letter-spacing: -0.01em; }
.fav-badges { display: flex; flex-wrap: wrap; gap: 7px; }

.fav-right { display: flex; flex-direction: column; align-items: flex-end; gap: 11px; min-width: 200px; }

/* watch-price chip */
.fav-watch {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px;
  border-radius: 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  background: var(--bg-2); color: var(--ink-3); border: 1.5px solid transparent; transition: all .15s;
}
.fav-watch svg { width: 16px; height: 16px; }
.fav-watch.on { background: var(--blue-soft); color: var(--blue-deep); border-color: var(--blue-soft); }
.fav-watch.on svg { color: var(--blue); }
.fav-watch:not(.off):not(.on) { background: var(--bg-2); color: var(--ink-3); cursor: pointer; }
.fav-watch:not(.off):hover { filter: brightness(.98); }
.fav-watch.off { cursor: not-allowed; opacity: .85; font-weight: 600; }

.fav-actions { display: flex; align-items: center; gap: 8px; }
.fav-remove { width: 38px; height: 38px; }
.fav-remove:hover { border-color: var(--red); color: var(--red); }

@media (max-width: 560px) {
  .fav-row { grid-template-columns: 84px 1fr; }
  .fav-img { width: 84px; height: 84px; }
  .fav-right { grid-column: 1 / -1; align-items: stretch; min-width: 0; flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .fav-actions { flex: 1; }
  .fav-actions .btn { flex: 1; }
}

/* ---- alert notification preview (right column) ---- */
.tg-preview {
  position: sticky; top: 148px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
}
.tg-preview-head { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
.tg-chat {
  display: flex; gap: 10px; padding: 14px;
  border-radius: var(--r-md);
  background: radial-gradient(120% 120% at 50% 0%, #d9ecfb 0%, #cfe3f5 100%);
}
.tg-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; color: #fff;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #34a8e0, #1f8fc6);
}
.tg-avatar svg { width: 21px; height: 21px; }
.tg-bubble { background: #fff; border-radius: 4px 16px 16px 16px; padding: 10px 13px 7px; box-shadow: 0 1px 2px rgba(11,21,38,.12); max-width: 240px; }
.tg-bot-name { font-size: 12.5px; font-weight: 800; color: #1f8fc6; margin-bottom: 3px; }
.tg-msg { font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.tg-old { color: var(--ink-4); text-decoration: line-through; }
.tg-new { color: var(--green); font-weight: 800; }
.tg-msg-time { font-size: 10px; color: var(--ink-4); text-align: right; margin-top: 3px; }

/* ---- empty state ---- */
.empty.card { padding: 54px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.empty.card h3 { font-size: 22px; }
.empty.card p { color: var(--ink-3); max-width: 380px; }
