.telegram-link-page [hidden] { display: none !important; }
.telegram-link-page, .telegram-link-page * { box-sizing: border-box; }
.telegram-link-page { padding-bottom: 64px; }
.telegram-link-page button { font: inherit; cursor: pointer; }
.telegram-link-page button:disabled { opacity: .55; cursor: wait; }
.telegram-link-page a:focus-visible, .telegram-link-page button:focus-visible { outline: 3px solid #79aaff; outline-offset: 4px; }
.telegram-link-page .page-title { margin: 28px 0 24px; color: #f0f4fa; font-size: 30px; line-height: 1.3; font-weight: 740; letter-spacing: -.4px; }
.telegram-link-page .link-card {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 26px 34px 30px;
  border: 1px solid rgba(133, 165, 205, .19);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 42, 66, .96), rgba(12, 29, 47, .97));
  box-shadow: 0 16px 44px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.025);
}
.telegram-link-page .account-strip {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 18px;
  border: 1px solid rgba(143, 171, 207, .15);
  border-radius: 12px;
  background: rgba(5, 18, 31, .64);
}
.telegram-link-page .account-avatar { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #b5d0f4; background: #1b385b; }
.telegram-link-page .account-avatar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.telegram-link-page .account-label { color: #c2cede; font-size: 15px; font-weight: 570; white-space: nowrap; }
.telegram-link-page .account-divider { width: 1px; height: 30px; margin: 0 3px; background: rgba(143,171,207,.25); }
.telegram-link-page .member-badge { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid rgba(218,171,78,.31); border-radius: 999px; color: #efc467; background: rgba(153,111,31,.13); font-size: 14px; font-weight: 680; white-space: nowrap; }
.telegram-link-page .crown { font-size: 14px; line-height: 1; }

.telegram-link-page .link-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 22px 2px; }
.telegram-link-page .telegram-mark { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #229ed9; box-shadow: 0 8px 22px rgba(34,158,217,.18); }
.telegram-link-page .telegram-mark svg { width: 46px; height: 46px; fill: currentColor; }
.telegram-link-page .link-state h2 { margin: 20px 0 0; color: #f1f5fb; font-size: 27px; line-height: 1.35; font-weight: 740; letter-spacing: -.35px; }
.telegram-link-page .intro-copy { max-width: 650px; margin: 14px auto 0; color: #b7c4d5; font-size: 16px; line-height: 1.85; font-weight: 400; }
.telegram-link-page .primary-button { width: min(100%, 440px); min-height: 56px; margin-top: 28px; padding: 0 22px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: #fff; background: #2878ff; font-size: 17px; line-height: 1.2; font-weight: 680; cursor: pointer; box-shadow: 0 8px 22px rgba(40,120,255,.16); transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
.telegram-link-page .primary-button:hover { background: #1769ef; transform: translateY(-1px); box-shadow: 0 11px 25px rgba(40,120,255,.22); }
.telegram-link-page .primary-button:active { transform: translateY(0); }
.telegram-link-page .primary-button svg { width: 21px; height: 21px; fill: currentColor; flex: 0 0 auto; }
.telegram-link-page .helper-copy { margin: 12px 0 0; color: #8193aa; font-size: 13px; line-height: 1.6; }
.telegram-link-page .back-link { margin-top: 22px; color: #79aaff; font-size: 15px; line-height: 1.5; font-weight: 630; }
.telegram-link-page .back-link:hover { color: #b0ceff; text-decoration: underline; text-underline-offset: 4px; }

.telegram-link-page .success-state { padding-top: 44px; padding-bottom: 14px; }
.telegram-link-page .success-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #159b70; box-shadow: 0 8px 22px rgba(21,155,112,.18); }
.telegram-link-page .success-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.telegram-link-page .success-state h2 { margin-top: 18px; }
.telegram-link-page .success-description { margin: 12px 0 0; color: #b7c4d5; font-size: 15px; line-height: 1.7; }
.telegram-link-page .success-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 13px; border: 1px solid rgba(47,194,137,.22); border-radius: 999px; color: #8fe0bf; background: rgba(21,155,112,.1); font-size: 13px; }
.telegram-link-page .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #32c58b; box-shadow: 0 0 0 3px rgba(50,197,139,.13); }
.telegram-link-page .success-back { margin-top: 24px; }
.telegram-link-page .channel-entry {
  width: min(100%, 650px);
  margin-top: 22px;
  padding: 19px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(133, 165, 205, .16);
  border-radius: 14px;
  background: rgba(30, 57, 84, .48);
}
.telegram-link-page .channel-entry-heading { display: flex; align-items: center; justify-content: center; gap: 10px; }
.telegram-link-page .channel-entry-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #229ed9; }
.telegram-link-page .channel-entry-icon svg { width: 23px; height: 23px; fill: currentColor; }
.telegram-link-page .channel-entry h3 { margin: 0; color: #eef4fc; font-size: 17px; line-height: 1.4; font-weight: 700; }
.telegram-link-page .channel-description { max-width: 540px; margin: 9px 0 0; color: #aebed0; font-size: 13px; line-height: 1.7; text-align: center; }
.telegram-link-page .channel-button {
  width: min(100%, 270px);
  min-height: 48px;
  margin-top: 16px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(83, 151, 255, .55);
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #2878ff, #1674ed);
  box-shadow: 0 7px 18px rgba(40,120,255,.16);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 680;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.telegram-link-page .channel-button:hover { background: linear-gradient(135deg, #3985ff, #2380f5); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(40,120,255,.22); }
.telegram-link-page .channel-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.telegram-link-page .channel-note { margin: 10px 0 0; color: #e8bb72; font-size: 12px; line-height: 1.5; text-align: center; }

.telegram-link-page .account-strip { flex-wrap: wrap; }
.telegram-link-page .account-name { overflow-wrap: anywhere; color: #b7c4d5; }
.telegram-link-page .link-message { text-align: center; color: #b7c4d5; line-height: 1.8; }
.telegram-link-page .channel-button { cursor: pointer; }
.telegram-link-page .back-link { display: block; text-align: center; }
@media (max-width: 600px) {
  .telegram-link-page .link-card { padding: 18px 14px 24px; }
  .telegram-link-page .link-state { padding: 28px 4px 0; }
  .telegram-link-page .link-state h2 { font-size: 23px; }
  .telegram-link-page .page-title { font-size: 26px; }
  .telegram-link-page .channel-entry { padding: 18px 12px; }
  .telegram-link-page .account-strip { padding: 12px; gap: 8px; }
}
