/* public/styles/telegram.css — DR-1420 Telegram signup-bonus card.
   Uses the shared tokens so it tracks light/dark and the app's rhythm. */

.tg-card { margin: 0 0 16px; border-left: 3px solid #29a9eb; }
.tg-main { display: flex; align-items: flex-start; gap: 12px; }
.tg-icon { flex: none; line-height: 0; margin-top: 1px; }
.tg-copy { flex: 1 1 auto; min-width: 0; }
.tg-title { font-size: 15px; font-weight: 650; margin: 0 0 2px; color: var(--fg-0); }
.tg-sub { line-height: 1.45; margin: 0; }
.tg-widget { margin-top: 12px; min-height: 40px; }
/* (FU-TG-1) Step-2 "open the bot" deep link — styled like the Telegram CTAs. */
.tg-start-btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 12px; padding: 9px 18px; border-radius: 8px; text-decoration: none;
  background: #29a9eb; color: var(--on-accent); font-size: 14px; font-weight: 650;
}
.tg-start-btn:hover { background: #2199d6; }

/* Community funnel banner — slim, at the top of the dashboard for everyone. */
.tg-community {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 16px; padding: 12px 16px;
  border: 1px solid color-mix(in srgb, #29a9eb 35%, var(--line-2));
  border-radius: 12px;
  background: color-mix(in srgb, #29a9eb 8%, var(--bg-2));
}
.tg-community-icon { flex: none; line-height: 0; }
.tg-community-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tg-community-copy strong { color: var(--fg-0); font-size: 14px; font-weight: 650; }
.tg-community-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 8px; text-decoration: none;
  background: #29a9eb; color: var(--on-accent); font-size: 13.5px; font-weight: 650;
}
.tg-community-btn:hover { background: #2199d6; }
@media (max-width: 560px) {
  .tg-community { flex-wrap: wrap; }
  .tg-community-btn { width: 100%; }
}
/* Our own "Log in with Telegram" button (JS-API popup — avoids the eval-based
   auto-init widget that a strict CSP blocks). */
.tg-login-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 0; border-radius: 8px; cursor: pointer;
  background: #29a9eb; color: var(--on-accent); font-size: 14px; font-weight: 600;
}
.tg-login-btn:hover { background: #2199d6; }
.tg-login-btn:disabled { opacity: .6; cursor: default; }
.tg-login-btn svg { display: block; }
.tg-msg { margin-top: 10px; font-size: 13px; padding: 9px 12px; border-radius: 8px; }
/* (RG-3) Success is green: the old var(--spoof-bright, #34d399) always resolved to the red. */
.tg-msg[data-kind="ok"] { color: var(--green-text); background: color-mix(in srgb, var(--green) 14%, transparent); }
.tg-msg[data-kind="info"] { color: var(--fg-2); background: color-mix(in srgb, var(--fg-4) 12%, transparent); }
.tg-msg[data-kind="error"] { color: #fca5a5; background: color-mix(in srgb, var(--red) 12%, transparent); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }
/* The sign-up page (public, never themed) keeps its pink; the app reads the theme's red text. */
html[data-theme] .tg-msg[data-kind="error"] { color: var(--spoof-text); }

/* Sign-up page variant — a compact block under the Clerk widget. */
.tg-signup {
  margin: 14px 0 4px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-left: 3px solid #29a9eb; border-radius: 10px;
  background: var(--bg-3);
}
.tg-signup-head { font-size: 13px; color: var(--fg-2); margin-bottom: 10px; line-height: 1.4; }
.tg-signup-head strong { color: var(--fg-0); }
.tg-signup-widget { min-height: 40px; }
.tg-signup-note { margin: 8px 0 0; }
.tg-signup-done { font-size: 13px; color: var(--green-text); line-height: 1.45; }
.tg-signup-done strong { color: var(--fg-0); }
