[data-testid="chatroom-send-blocked"] {
  display: none !important;
}

[data-testid="chatroom-telegram-cta"] {
  display: inline-flex !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

[data-testid="chatroom-page"] {
  position: relative;
}

#tf-chat-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 8;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 23, 38, 0.92);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

#tf-chat-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-testid="chatroom-composer"] {
  display: flex;
  flex-direction: column;
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: #0b1726;
  flex-shrink: 0;
}

[data-testid="chatroom-composer"] > form {
  order: 1;
}

#tf-chat-points {
  display: none;
  order: 2;
  margin-top: 0.75rem;
  margin-bottom: 0;
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: rgba(4, 47, 46, 0.35);
  border-radius: 1.1rem;
  padding: 0.9rem 1rem;
}

#tf-chat-points.is-on {
  display: block;
}

#tf-chat-points .tf-cp-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #99f6e4;
}

#tf-chat-points .tf-cp-kicker span {
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  color: #94a3b8;
}

#tf-chat-points .tf-cp-balance {
  margin: 0.35rem 0 0;
  color: #f8fafc;
  font-size: 0.95rem;
}

#tf-chat-points .tf-cp-note,
#tf-chat-points .tf-cp-wait,
#tf-chat-points .tf-cp-cost {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}

#tf-chat-points .tf-cp-reason {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #fde68a;
}

#tf-chat-points .tf-cp-buy {
  margin-top: 0.7rem;
}

#tf-chat-points .tf-cp-buy label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
}

#tf-chat-points .tf-cp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

#tf-chat-points .tf-cp-row input {
  width: 7.4rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #04111c;
  color: #fff;
  padding: 0.5rem 0.65rem;
}

#tf-chat-points .tf-cp-row button {
  border: 0;
  border-radius: 999px;
  background: #2dd4bf;
  color: #042f2e;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  pointer-events: auto;
}

#tf-chat-points .tf-cp-status {
  margin: 0.45rem 0 0;
  min-height: 1.1em;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #94a3b8;
}

#tf-chat-points .tf-cp-status.is-ok {
  color: #99f6e4;
}

#tf-chat-points .tf-cp-status.is-err {
  color: #fecaca;
}

#tf-chat-points .tf-cp-topup {
  display: inline-block;
  margin-top: 0.45rem;
  color: #7dd3c7;
  font-size: 0.78rem;
  font-weight: 600;
}

.tf-chat-tr {
  display: inline-block;
  margin-top: 0.18rem;
  padding: 0;
  border: 0;
  background: none;
  color: #7dd3c7;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  opacity: 0.92;
}

.tf-chat-tr:hover {
  opacity: 1;
  text-decoration: none;
  color: #99f6e4;
}

.tf-chat-tr-out {
  display: none;
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #99f6e4;
  white-space: pre-wrap;
}

.tf-chat-tr-out.is-on {
  display: block;
}

.tf-chat-unread {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 0.55rem;
  color: #5eead4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tf-chat-unread::before,
.tf-chat-unread::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(45, 212, 191, 0.35);
}

[data-testid="chatroom-page"] {
  display: flex;
  flex-direction: column;
  min-height: 28rem;
}

[data-testid="chatroom-messages"],
#tf-chat-feed {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 14rem;
  max-height: min(62vh, 40rem);
  overflow-y: auto;
  overflow-x: hidden;
}

html.tf-chat-feed-on [data-testid="chatroom-messages"] {
  display: none !important;
}

#tf-chat-latest {
  position: sticky;
  left: 0.4rem;
  bottom: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 1.75rem;
  height: 1.75rem;
  min-width: 0;
  margin: 0.3rem 0 0.45rem 0.35rem;
  margin-right: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 20, 34, 0.35);
  color: #7dd3c7;
  opacity: 0.4;
  cursor: pointer;
  box-shadow: none;
  z-index: 6;
  float: none;
}

#tf-chat-latest svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

#tf-chat-latest[hidden] {
  display: none !important;
}

#tf-chat-latest:hover {
  opacity: 0.82;
  background: rgba(8, 20, 34, 0.5);
}
#tf-chat-page {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 4.6rem 1rem 6.5rem;
  background: #07111c;
  color: #e2e8f0;
}

#tf-chat-page h1 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

#tf-room-fab,
#tf-tg-fab {
  display: none !important;
}

#tf-social-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.15rem;
  z-index: 2147483004;
  width: 3.1rem;
  height: 3.1rem;
  padding: 0;
  border: 0;
  border-radius: 1.05rem;
  background: #0b1726;
  color: #99f6e4;
  cursor: pointer;
  pointer-events: auto;
  visibility: visible;
}

#tf-social-fab svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  margin: 0 auto;
}

#tf-social-fab.is-off,
html.hx-user-open #tf-social-fab,
html.hx-user-open #tf-social-pick {
  display: none !important;
}

#tf-social-pick {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 1.1rem 5.2rem;
  background: rgba(4, 10, 18, 0.62);
}

#tf-social-pick.is-on {
  display: flex !important;
}

#tf-social-pick .sheet {
  position: relative;
  width: min(18rem, calc(100vw - 2.2rem));
  padding: 1.05rem 1rem 1rem;
  border-radius: 1.1rem;
  background: #0b1726;
  color: #e2e8f0;
  font: 600 0.92rem Figtree, sans-serif;
}

#tf-social-pick .sheet p {
  margin: 0 1.6rem 0.85rem 0;
  font: 800 0.78rem Unbounded, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #99f6e4;
}

#tf-social-pick .sheet .x {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
}

#tf-social-pick .sheet [data-tf="go-room"],
#tf-social-pick .sheet [data-tf="go-tg"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.7rem;
  margin: 0 0 0.5rem;
  border: 0;
  border-radius: 0.8rem;
  background: #122337;
  color: #f8fafc;
  font: 800 0.78rem Unbounded, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

#tf-social-pick .sheet [data-tf="go-tg"] {
  margin: 0;
  background: #0e3a4a;
  color: #99f6e4;
}
