.home-neon .hh-messenger-pro {
  --msg-cyan: #62d7e7;
  --msg-pink: #f05caf;
  --msg-lime: #91e58b;
  --msg-gold: #f4d76d;
  grid-template-columns: minmax(250px, 290px) minmax(500px, 1fr) minmax(230px, 270px);
  min-height: min(760px, calc(100dvh - 190px));
  border: 1px solid rgba(116, 216, 229, .2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(98, 215, 231, .045), transparent 30%),
    linear-gradient(315deg, rgba(240, 92, 175, .05), transparent 34%),
    rgba(5, 10, 16, .96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .025);
}

.home-neon .hh-messenger-pro .hh-messenger-rooms,
.home-neon .hh-messenger-pro .hh-messenger-people { padding: 14px; }
.home-neon .hh-messenger-pro .hh-messenger-rooms nav { max-height: calc(100dvh - 330px); }
.home-neon .hh-messenger-pro .hh-messenger-rooms nav > button { min-height: 66px; padding: 9px; }
.home-neon .hh-messenger-pro .hh-messenger-rooms button strong { font-size: 12px; }
.home-neon .hh-messenger-pro .hh-messenger-rooms button small { font-size: 9px; }
.home-neon .hh-messenger-pro .hh-messenger-rooms nav > small { font-size: 8px; }

.home-neon .hh-room-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 9px;
  padding: 3px;
  border: 1px solid #263846;
  border-radius: 6px;
  background: rgba(3, 8, 13, .72);
}
.home-neon .hh-room-tabs button {
  min-height: 31px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8295a1;
  font-size: 9px;
  font-weight: 800;
}
.home-neon .hh-room-tabs button.active {
  background: linear-gradient(120deg, rgba(98, 215, 231, .2), rgba(240, 92, 175, .13));
  color: #f3fbfd;
  box-shadow: inset 0 0 0 1px rgba(98, 215, 231, .28);
}
.home-neon .hh-room-empty { padding: 14px 8px; color: #70838e; font-size: 10px; }

.home-neon .hh-messenger-pro .hh-messenger-main { grid-template-rows: auto minmax(380px, 1fr) auto; }
.home-neon .hh-messenger-pro .hh-messenger-main > header { min-height: 82px; padding: 12px 16px; }
.home-neon .hh-messenger-pro .hh-messenger-main > header h6 { font-size: 15px; }
.home-neon .hh-messenger-pro .hh-messenger-main > header p { font-size: 9px; }
.home-neon .hh-messenger-pro .hh-message-head-actions > button {
  width: 38px;
  height: 38px;
  border-color: #355160;
  background: linear-gradient(145deg, #14232d, #101821);
  color: #b7f5f7;
  font-size: 12px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-neon .hh-messenger-pro .hh-message-head-actions > button:hover {
  transform: translateY(-2px);
  border-color: var(--msg-cyan);
  box-shadow: 0 8px 24px rgba(98, 215, 231, .15);
}

.home-neon .hh-messenger-pro .hh-message-list {
  max-height: calc(100dvh - 410px);
  padding: 19px;
  background:
    linear-gradient(rgba(98, 215, 231, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 92, 175, .015) 1px, transparent 1px);
  background-size: 34px 34px;
}
.home-neon .hh-load-older {
  align-self: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(98, 215, 231, .25);
  border-radius: 999px;
  background: rgba(11, 22, 30, .9);
  color: #8cdae3;
  font-size: 9px;
}
.home-neon .hh-messenger-pro .hh-message > section { padding: 11px 13px; }
.home-neon .hh-messenger-pro .hh-message header strong { font-size: 11px; }
.home-neon .hh-messenger-pro .hh-message header time,
.home-neon .hh-messenger-pro .hh-message header small { font-size: 8px; }
.home-neon .hh-messenger-pro .hh-message p { font-size: 12px; }
.home-neon .hh-message header .pinned { color: var(--msg-gold); }
.home-neon .hh-message header .expires { color: #ffb1c3; }
.home-neon .hh-message-status { margin-top: 6px; color: #8ddce4; font-size: 8px; text-align: right; }
.home-neon .hh-message-tombstone { padding: 7px 0; color: #8b9aa3; font-size: 10px; font-style: italic; }
.home-neon .hh-message.is-deleted > section { border-style: dashed; opacity: .78; }
.home-neon .hh-message-sticker { padding: 8px 3px; font-size: clamp(42px, 5vw, 68px); line-height: 1; filter: drop-shadow(0 8px 15px rgba(240, 92, 175, .24)); }

.home-neon .hh-message-audio,
.home-neon .hh-message-document,
.home-neon .hh-message-location,
.home-neon .hh-message-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: min(320px, 70vw);
  margin-top: 8px;
  padding: 9px;
  border: 1px solid rgba(98, 215, 231, .26);
  border-radius: 7px;
  background: linear-gradient(125deg, rgba(98, 215, 231, .09), rgba(240, 92, 175, .06));
  color: #edf8fa;
  text-decoration: none;
}
.home-neon .hh-message-audio { grid-template-columns: 34px minmax(140px, 1fr); }
.home-neon .hh-message-audio audio { width: 100%; height: 34px; grid-column: 2; }
.home-neon .hh-message-audio > small { grid-column: 2; color: #8296a1; font-size: 8px; }
.home-neon .hh-message-audio > i,
.home-neon .hh-message-document > i,
.home-neon .hh-message-location > i,
.home-neon .hh-message-link > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--msg-cyan), var(--msg-pink));
  color: #071016;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.home-neon .hh-message-document span,
.home-neon .hh-message-location span,
.home-neon .hh-message-link span { display: grid; min-width: 0; gap: 3px; }
.home-neon .hh-message-document strong,
.home-neon .hh-message-location strong,
.home-neon .hh-message-link strong { font-size: 10px; }
.home-neon .hh-message-document small,
.home-neon .hh-message-location small,
.home-neon .hh-message-link small { overflow: hidden; color: #8799a4; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.home-neon .hh-messenger-pro .hh-message footer button,
.home-neon .hh-messenger-pro .hh-message-reactions button { min-height: 26px; font-size: 8px; }
.home-neon .hh-message-picker { display: grid; grid-template-columns: repeat(8, minmax(36px, 1fr)); gap: 7px; }
.home-neon .hh-message-picker button {
  min-height: 48px;
  border: 1px solid #304450;
  border-radius: 6px;
  background: #101922;
  font-size: 24px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.home-neon .hh-message-picker button:hover { transform: translateY(-3px) scale(1.04); border-color: var(--msg-pink); background: #1d1721; }

.home-neon .hh-messenger-pro .hh-message-composer { padding: 10px 14px 13px; }
.home-neon .hh-composer-row { display: grid !important; grid-template-columns: auto minmax(160px, 1fr) 43px !important; align-items: end; gap: 8px !important; }
.home-neon .hh-composer-tools { display: grid; grid-template-columns: repeat(4, 32px); gap: 4px; }
.home-neon .hh-composer-tools button,
.home-neon .hh-composer-tools label {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #304754;
  border-radius: 5px;
  background: #111c25;
  color: #a9eaf0;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.home-neon .hh-composer-tools button:hover,
.home-neon .hh-composer-tools label:hover { border-color: var(--msg-cyan); background: #172731; color: #fff; }
.home-neon .hh-composer-tools button.recording { border-color: #ff6d8c; background: #5d1d2d; color: #fff; animation: hh-recording 1s ease-in-out infinite; }
.home-neon .hh-composer-tools input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.home-neon .hh-messenger-pro .hh-message-composer textarea { min-height: 70px; max-height: 180px; resize: vertical; font-size: 12px; }
.home-neon .hh-send-message { width: 43px; min-width: 43px !important; height: 43px; border-radius: 50% !important; background: linear-gradient(135deg, var(--msg-cyan), var(--msg-lime)) !important; color: #071015 !important; font-size: 16px; box-shadow: 0 8px 24px rgba(98, 215, 231, .2); }
.home-neon .hh-composer-options { display: grid !important; grid-template-columns: minmax(150px, 1fr) auto auto !important; align-items: center; gap: 8px !important; }
.home-neon .hh-composer-options > label { display: flex; align-items: center; gap: 6px; color: #8297a3; font-size: 8px; }
.home-neon .hh-composer-options select { min-height: 32px; border: 1px solid #304653; border-radius: 5px; background: #0a1219; color: #dce9ed; }
.home-neon .hh-composer-extra { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid rgba(240, 92, 175, .34); border-radius: 6px; background: rgba(240, 92, 175, .08); }
.home-neon .hh-composer-extra b { font-size: 28px; }
.home-neon .hh-composer-extra img { width: 52px; height: 40px; border-radius: 5px; object-fit: cover; }
.home-neon .hh-composer-extra span { flex: 1; color: #d6e0e5; font-size: 9px; }
.home-neon .hh-composer-extra button { width: 26px; height: 26px; border: 0; background: transparent; color: #ff9acb; }

.home-neon .hh-messenger-pro .hh-messenger-people article strong { font-size: 10px; }
.home-neon .hh-messenger-pro .hh-messenger-people article small { font-size: 8px; }
.home-neon .hh-messenger-pro .hh-messenger-people > section p { font-size: 8px; }
.home-neon .hh-conversation-menu { display: grid; gap: 7px; }
.home-neon .hh-conversation-menu button { min-height: 42px; padding: 0 13px; border: 1px solid #304450; border-radius: 6px; background: #101922; color: #d8e4e8; text-align: left; }
.home-neon .hh-conversation-menu button:hover { border-color: var(--msg-cyan); background: #15242d; }
.home-neon .hh-conversation-menu button.danger { color: #ff9caf; }

.home-neon .hh-room-member-admin { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }
.home-neon .hh-room-member-admin > header { display: flex; justify-content: space-between; padding: 7px 0; }
.home-neon .hh-room-member-admin article { display: grid; grid-template-columns: 38px minmax(100px, 1fr) repeat(3, auto); align-items: center; gap: 6px; padding: 7px; border: 1px solid #2c414d; border-radius: 6px; background: #0d161e; }
.home-neon .hh-room-member-admin article > span { display: grid; gap: 2px; }
.home-neon .hh-room-member-admin article button { min-height: 30px; padding: 0 7px; border: 1px solid #345260; border-radius: 4px; background: #13202a; color: #b7dfe4; font-size: 8px; }
.home-neon .hh-room-member-admin article button.danger { color: #ff9aae; }

.hh-call-stage {
  position: fixed;
  z-index: 10020;
  inset: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(98, 215, 231, .42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 15%, rgba(98, 215, 231, .16), transparent 28%),
    radial-gradient(circle at 88% 90%, rgba(240, 92, 175, .14), transparent 32%),
    #060b11;
  color: #eef8fa;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .72);
}
.hh-call-stage > header { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 12px 18px; border-bottom: 1px solid #263944; background: rgba(9, 16, 23, .9); }
.hh-call-stage > header > div:first-child { display: grid; gap: 2px; }
.hh-call-stage > header small { color: #62d7e7; font-size: 9px; font-weight: 900; }
.hh-call-stage > header strong { font-size: 17px; }
.hh-call-stage > header span { color: #8a9da7; font-size: 10px; }
.hh-call-stage > header > div:last-child { display: flex; align-items: center; gap: 7px; }
.hh-call-stage > header i { width: 8px; height: 8px; border-radius: 50%; background: #67dba1; box-shadow: 0 0 12px #67dba1; }
.hh-call-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-rows: minmax(220px, 1fr); gap: 10px; padding: 12px; overflow: auto; }
.hh-call-grid article { position: relative; min-height: 220px; overflow: hidden; border: 1px solid #2d414d; border-radius: 8px; background: linear-gradient(145deg, #111c25, #080d13); }
.hh-call-grid video { width: 100%; height: 100%; background: #05080b; object-fit: cover; }
.hh-call-stage.audio-only .hh-call-grid video { opacity: 0; }
.hh-call-grid article > div { position: absolute; right: 9px; bottom: 9px; left: 9px; display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; background: rgba(4, 9, 13, .75); backdrop-filter: blur(10px); }
.hh-call-grid article > div strong { font-size: 11px; }
.hh-call-grid article > div span { color: #9fb0b8; font-size: 9px; }
.hh-call-stage > footer { display: flex; justify-content: center; gap: 10px; padding: 13px; border-top: 1px solid #263944; background: rgba(9, 16, 23, .94); }
.hh-call-stage > footer button { width: 46px; height: 46px; border: 1px solid #354c58; border-radius: 50%; background: #14212a; color: #a4b6bf; font-size: 15px; }
.hh-call-stage > footer button.active { border-color: #62d7e7; color: #eafbfc; box-shadow: 0 0 20px rgba(98, 215, 231, .16); }
.hh-call-stage > footer button.danger { border-color: #ff6b89; background: #8e2940; color: #fff; transform: rotate(135deg); }
.hh-call-stage > aside { position: absolute; right: 18px; bottom: 84px; display: grid; gap: 9px; width: min(330px, calc(100vw - 36px)); padding: 13px; border: 1px solid #34515e; border-radius: 7px; background: #0c151d; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.hh-call-stage > aside[hidden] { display: none; }
.hh-call-stage > aside header { display: flex; align-items: center; justify-content: space-between; }
.hh-call-stage > aside header button { border: 0; background: transparent; color: #8fdde4; }
.hh-call-stage > aside label { display: grid; gap: 5px; color: #8fa0a9; font-size: 9px; }
.hh-call-stage > aside select { min-height: 38px; border: 1px solid #304754; border-radius: 5px; background: #080f15; color: #e7f1f4; }
.hh-call-security { position: absolute; left: 13px; bottom: 11px; margin: 0; color: #637a86; font-size: 8px; }

.hh-incoming-call {
  position: fixed;
  z-index: 10030;
  right: 20px;
  bottom: 20px;
  width: min(370px, calc(100vw - 40px));
  padding: 14px;
  border: 1px solid rgba(98, 215, 231, .5);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(19, 34, 44, .98), rgba(30, 18, 31, .98));
  color: #edf8fa;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .58), 0 0 35px rgba(98, 215, 231, .1);
  animation: hh-call-arrive .28s ease both;
}
.hh-incoming-call > div { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 11px; }
.hh-incoming-call > div > i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #62d7e7, #f05caf, #f4d76d); color: #071016; font-style: normal; font-weight: 900; }
.hh-incoming-call span { display: grid; gap: 2px; }
.hh-incoming-call small { color: #71dce7; font-size: 8px; font-weight: 900; }
.hh-incoming-call strong { font-size: 15px; }
.hh-incoming-call p { margin: 0; color: #91a4ad; font-size: 9px; }
.hh-incoming-call footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 12px; }
.hh-incoming-call footer button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #863044; color: #fff; }
.hh-incoming-call footer button:last-child { background: #48b989; }

@keyframes hh-recording { 50% { box-shadow: 0 0 20px rgba(255, 109, 140, .55); } }
@keyframes hh-call-arrive { from { transform: translateY(20px); opacity: 0; } }

@media (max-width: 1240px) {
  .home-neon .hh-messenger-pro { grid-template-columns: minmax(230px, 270px) minmax(0, 1fr); }
  .home-neon .hh-messenger-pro .hh-messenger-people { display: none; }
}
@media (max-width: 820px) {
  .home-neon .hh-messenger-pro { grid-template-columns: minmax(0, 1fr); }
  .home-neon .hh-messenger-pro .hh-messenger-rooms nav { max-height: none; }
  .home-neon .hh-composer-row { grid-template-columns: minmax(0, 1fr) 43px !important; }
  .home-neon .hh-composer-tools { grid-column: 1 / -1; grid-template-columns: repeat(7, 32px); }
  .home-neon .hh-composer-row textarea { grid-column: 1; }
  .home-neon .hh-composer-options { grid-template-columns: minmax(0, 1fr) auto !important; }
  .home-neon .hh-composer-options > small { grid-column: 1 / -1; }
  .hh-call-stage { inset: 0; border: 0; border-radius: 0; }
  .hh-call-grid { grid-template-columns: minmax(0, 1fr); }
  .hh-call-security { display: none; }
}
@media (max-width: 520px) {
  .home-neon .hh-composer-tools { grid-template-columns: repeat(7, minmax(29px, 1fr)); }
  .home-neon .hh-composer-tools button,
  .home-neon .hh-composer-tools label { width: 100%; }
  .home-neon .hh-composer-options { grid-template-columns: minmax(0, 1fr) !important; }
  .home-neon .hh-room-member-admin article { grid-template-columns: 34px minmax(0, 1fr); }
  .home-neon .hh-room-member-admin article button { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hh-incoming-call,
  .home-neon .hh-composer-tools button.recording { animation: none !important; }
}
.hh-messenger-pro [data-v2-secure-media].is-loading{opacity:.42;filter:saturate(.55);animation:hh-message-media-pulse 1.1s ease-in-out infinite alternate}
.hh-messenger-pro [data-v2-secure-media].is-error{opacity:.7;outline:1px dashed #ff6a9f;cursor:help}
.hh-messenger-pro a[data-v2-secure-media][aria-disabled="true"]{pointer-events:none;opacity:.55}
@keyframes hh-message-media-pulse{to{opacity:.78}}
