:root {
  --bg: #040507;
  --bg-2: #090b10;
  --panel: rgba(8, 10, 15, 0.9);
  --panel-2: rgba(11, 13, 18, 0.92);
  --panel-3: rgba(14, 16, 22, 0.88);
  --line: rgba(255, 45, 45, 0.24);
  --line-soft: rgba(255, 45, 45, 0.12);
  --line-strong: rgba(255, 45, 45, 0.55);
  --text: #eef2f7;
  --muted: #8f97a6;
  --muted-2: #697180;
  --red: #ff2c2c;
  --red-soft: rgba(255, 44, 44, 0.18);
  --red-glow: rgba(255, 44, 44, 0.26);
  --cyan: #14d8dc;
  --gold: #e7b85a;
  --blue: #72a7ff;
  --green: #37d18d;
  --danger: #ff6d87;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  --radius: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --aside-width: 392px;
  --header-h: 102px;
  --cut: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  background:
    radial-gradient(circle at 8% 0%, rgba(116, 10, 19, 0.42), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(123, 7, 17, 0.35), transparent 32%),
    linear-gradient(180deg, #05070a 0%, #040507 48%, #06070a 100%);
  overflow: auto;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(255, 0, 0, 0.025) 14.2%, transparent 14.4%, transparent 100%),
    linear-gradient(180deg, transparent 0 78px, rgba(255, 0, 0, 0.03) 79px, transparent 80px),
    radial-gradient(circle at 80% 50%, rgba(255, 0, 0, 0.06), transparent 35%);
  mix-blend-mode: screen;
  opacity: 0.55;
}

body::after {
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.06;
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--aside-width) minmax(0, 1fr);
  min-height: 100vh;
  height: 100vh;
  gap: 14px;
  padding: 10px;
}

.aside,
.main {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.94), rgba(5, 6, 10, 0.96));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), var(--shadow);
  overflow: auto;
  overflow-x: hidden;
}

.aside {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 20px);
  height: calc(100vh - 20px);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  border-radius: 0 28px 28px 28px;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100vh - 20px);
  height: calc(100vh - 20px);
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
  border-radius: 28px;
}

.aside::before,
.main::before,
.card::before,
.actionsBox::before,
.popup-content::before,
.login-shell::before,
.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aside::before {
  background:
    linear-gradient(90deg, rgba(255, 45, 45, 0.85) 0 42px, transparent 42px) top left / 78px 2px no-repeat,
    linear-gradient(180deg, rgba(255, 45, 45, 0.85) 0 42px, transparent 42px) top left / 2px 78px no-repeat,
    linear-gradient(270deg, rgba(255, 45, 45, 0.75) 0 34px, transparent 34px) bottom right / 66px 2px no-repeat,
    linear-gradient(0deg, rgba(255, 45, 45, 0.75) 0 34px, transparent 34px) bottom right / 2px 66px no-repeat;
  opacity: 0.65;
}

.main::before {
  background:
    linear-gradient(90deg, rgba(255, 45, 45, 0.8) 0 78px, transparent 78px) top left / 140px 2px no-repeat,
    linear-gradient(180deg, rgba(255, 45, 45, 0.8) 0 22px, transparent 22px) top right / 2px 54px no-repeat,
    linear-gradient(270deg, rgba(255, 45, 45, 0.8) 0 90px, transparent 90px) bottom right / 170px 2px no-repeat,
    linear-gradient(0deg, rgba(255, 45, 45, 0.8) 0 52px, transparent 52px) bottom left / 2px 88px no-repeat;
  opacity: 0.7;
}

.aside-head {
  position: relative;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 16, 16, 0.08), transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4f6f9;
}

.brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7d7d, #ff3131);
  box-shadow: 0 0 24px rgba(255, 49, 49, 0.85);
  flex: 0 0 auto;
}

.search {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 45, 45, 0.18);
  border-radius: 14px;
  outline: none;
  color: #f1f4f8;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005)),
    rgba(2, 4, 8, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.search::placeholder {
  color: #6f7480;
}

.search:focus {
  border-color: rgba(255, 62, 62, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 44, 44, 0.08), inset 0 0 0 1px rgba(255,255,255,0.03);
}

.aside-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.list {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 45, 45, 0.32) transparent;
}

.list::-webkit-scrollbar {
  width: 6px;
}

.list::-webkit-scrollbar-thumb {
  background: rgba(255, 45, 45, 0.28);
  border-radius: 999px;
}

.item {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 74px;
  padding: 12px 34px 12px 12px;
  border: 1px solid rgba(255, 45, 45, 0.14);
  border-radius: 18px;
  text-align: left;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.004)),
    rgba(6, 8, 12, 0.96);
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,45,45,0.95) 0 26px, transparent 26px) top left / 46px 1px no-repeat,
    linear-gradient(180deg, rgba(255,45,45,0.95) 0 26px, transparent 26px) top left / 1px 46px no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 52, 52, 0.34);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008)),
    rgba(8, 10, 15, 0.98);
}

.item.active {
  border-color: rgba(255, 62, 62, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 0 1px rgba(255, 45, 45, 0.08), 0 10px 32px rgba(0,0,0,0.38);
  background:
    linear-gradient(180deg, rgba(255, 36, 36, 0.08), rgba(255, 36, 36, 0.015)),
    rgba(8, 10, 15, 0.99);
}

.item.active::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 44, 44, 0.95);
}

.item.important {
  border-color: rgba(231, 184, 90, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 0 28px rgba(231, 184, 90, 0.08);
}

.item.important::after {
  background:
    linear-gradient(90deg, rgba(231,184,90,0.98) 0 28px, transparent 28px) top left / 52px 1px no-repeat,
    linear-gradient(180deg, rgba(231,184,90,0.98) 0 28px, transparent 28px) top left / 1px 52px no-repeat,
    linear-gradient(270deg, rgba(231,184,90,0.9) 0 28px, transparent 28px) bottom right / 52px 1px no-repeat,
    linear-gradient(0deg, rgba(231,184,90,0.9) 0 28px, transparent 28px) bottom right / 1px 52px no-repeat;
  opacity: 0.32;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  width: 54px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}

.badge.ticket {
  color: #91afff;
  border-color: rgba(114, 167, 255, 0.35);
  background: rgba(31, 67, 138, 0.14);
}

.badge.report {
  color: #ff8888;
  border-color: rgba(255, 77, 77, 0.35);
  background: rgba(115, 15, 15, 0.16);
}

.badge.donate {
  color: #72f0c4;
  border-color: rgba(55, 209, 141, 0.35);
  background: rgba(10, 70, 48, 0.18);
}

.badge.trade {
  color: #f3c56a;
  border-color: rgba(231, 184, 90, 0.34);
  background: rgba(99, 67, 12, 0.18);
}

.meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5f7fb;
}

.item .title {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.2;
  padding-right: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mono {
  font-family: var(--mono);
}

.sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.muted {
  color: var(--muted);
}

.aside-foot {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,0,0,0.045));
}

.actionsBox {
  position: relative;
  border: 1px solid rgba(255, 45, 45, 0.18);
  border-radius: 18px;
  padding: 12px;
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.005)), rgba(8, 10, 14, 0.95);
}

.actionsBox::before {
  background:
    linear-gradient(90deg, rgba(255,45,45,0.95) 0 46px, transparent 46px) top left / 78px 1px no-repeat,
    linear-gradient(180deg, rgba(255,45,45,0.95) 0 46px, transparent 46px) top left / 1px 78px no-repeat,
    linear-gradient(270deg, rgba(255,45,45,0.95) 0 34px, transparent 34px) bottom right / 56px 1px no-repeat,
    linear-gradient(0deg, rgba(255,45,45,0.95) 0 34px, transparent 34px) bottom right / 1px 56px no-repeat;
  opacity: 0.45;
}

.actionsBox .row1 {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.actionsBox .row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#selChannelId {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f0f3f7;
}

.btnAction,
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005)), rgba(10, 12, 16, 0.95);
  color: #eef2f7;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.btn:hover,
.btnAction:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 45, 45, 0.45);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 18px rgba(255,45,45,0.12);
}

.btnAction.imp {
  color: #ffe4a7;
  border-color: rgba(231, 184, 90, 0.35);
}

.btnAction.del {
  color: #ffc5cf;
  border-color: rgba(255, 109, 135, 0.28);
}

.hint.smallmuted {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted-2);
}

.head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 28, 28, 0.06), transparent 70%),
    linear-gradient(90deg, rgba(255,255,255,0.015), transparent 35%, rgba(255,255,255,0.008));
}

.head .left {
  min-width: 0;
}

#chatTitle.title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

#chatTitle.title::after {
  content: " /";
  color: var(--red);
  margin-left: 4px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.userBox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.userBox .u-ava {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
}

.userBox .u-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.userBox .u-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.main > .chatcard {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  display: flex;
}

.msgList {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 45, 45, 0.26) transparent;
}

.msgList::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 39, 39, 0.09), transparent 20%),
    radial-gradient(circle at 100% 100%, rgba(255, 39, 39, 0.06), transparent 20%),
    linear-gradient(90deg, transparent 0, rgba(255,255,255,0.01) 50%, transparent 100%);
  opacity: 0.8;
}

.msgList::-webkit-scrollbar {
  width: 8px;
}

.msgList::-webkit-scrollbar-thumb {
  background: rgba(255, 45, 45, 0.25);
  border-radius: 999px;
}

.msgRow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.msgRow.right {
  grid-template-columns: minmax(0, 1fr) 46px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), rgba(16,18,24,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar .initial {
  font-size: 13px;
  font-weight: 800;
}

.msgRow .bubble {
  position: relative;
  width: fit-content;
  max-width: min(48%, 720px);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 45, 45, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.016), rgba(255,255,255,0.005)), rgba(8, 10, 14, 0.97);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.msgRow .bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,45,45,0.95) 0 26px, transparent 26px) top left / 42px 1px no-repeat,
    linear-gradient(180deg, rgba(255,45,45,0.95) 0 26px, transparent 26px) top left / 1px 42px no-repeat;
  opacity: 0.22;
}

.msgRow.right .bubble {
  justify-self: end;
  background: linear-gradient(180deg, rgba(255, 18, 18, 0.05), rgba(255, 18, 18, 0.01)), rgba(8, 10, 14, 0.98);
}

.msgRow.right .bubble::before {
  background:
    linear-gradient(270deg, rgba(255,45,45,0.95) 0 24px, transparent 24px) top right / 42px 1px no-repeat,
    linear-gradient(180deg, rgba(255,45,45,0.95) 0 24px, transparent 24px) top right / 1px 42px no-repeat;
  opacity: 0.34;
}

.bubble .meta {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.bubble .content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.55;
  color: #f4f6f9;
}

.attach {
  margin-top: 10px;
  font-size: 13px;
  color: #cad0d9;
}

.attach a {
  color: #ff5b5b;
  text-decoration: none;
  font-weight: 700;
}

.attach a:hover {
  text-decoration: underline;
}

.popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.popup-content {
  position: relative;
  width: min(760px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 45, 45, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.005)), rgba(8, 10, 14, 0.98);
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.popup-content::before {
  background:
    linear-gradient(90deg, rgba(255,45,45,0.95) 0 42px, transparent 42px) top left / 72px 1px no-repeat,
    linear-gradient(180deg, rgba(255,45,45,0.95) 0 42px, transparent 42px) top left / 1px 72px no-repeat,
    linear-gradient(270deg, rgba(255,45,45,0.95) 0 42px, transparent 42px) bottom right / 72px 1px no-repeat,
    linear-gradient(0deg, rgba(255,45,45,0.95) 0 42px, transparent 42px) bottom right / 1px 72px no-repeat;
  opacity: 0.5;
}

.month-popup-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.month-popup-sub {
  margin: 0 0 18px;
  color: var(--muted);
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.popup-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.popup-btn.primary {
  border-color: rgba(255, 45, 45, 0.38);
}

.popup-btn.danger {
  border-color: rgba(255, 109, 135, 0.3);
  color: #ffcad2;
}

.login-page {
  overflow: auto;
  overflow-x: hidden;
}

.login-page body {
  display: grid;
  place-items: center;
}

.login-shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  min-height: min(760px, calc(100vh - 32px));
  border-radius: 30px;
  border: 1px solid rgba(255,45,45,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.006)), rgba(5,7,11,0.95);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.login-shell::before {
  background:
    linear-gradient(90deg, rgba(255,45,45,0.95) 0 120px, transparent 120px) top left / 200px 2px no-repeat,
    linear-gradient(180deg, rgba(255,45,45,0.95) 0 74px, transparent 74px) top left / 2px 120px no-repeat,
    linear-gradient(270deg, rgba(255,45,45,0.95) 0 120px, transparent 120px) bottom right / 200px 2px no-repeat,
    linear-gradient(0deg, rgba(255,45,45,0.95) 0 74px, transparent 74px) bottom right / 2px 120px no-repeat;
  opacity: 0.72;
}

.login-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: min(760px, calc(100vh - 32px));
}

.login-hero {
  position: relative;
  padding: 46px 42px;
  border-right: 1px solid rgba(255,45,45,0.12);
  background:
    radial-gradient(circle at 15% 20%, rgba(255,40,40,0.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.01), transparent 40%),
    rgba(4,6,10,0.92);
}

.login-hero::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 30px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,40,40,0.16), transparent 65%);
  filter: blur(18px);
  opacity: 0.55;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-brand span:last-child {
  color: var(--red);
}

.login-brand::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8383, #ff2b2b);
  box-shadow: 0 0 20px rgba(255, 43, 43, 0.9);
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,45,45,0.22);
  background: rgba(255,45,45,0.07);
  font-size: 12px;
  color: #f6c6c6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.login-title em {
  font-style: normal;
  color: var(--red);
}

.login-subtitle {
  max-width: 560px;
  margin: 20px 0 0;
  color: #9ba2af;
  font-size: 16px;
  line-height: 1.7;
}

.login-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.login-feature {
  border: 1px solid rgba(255,45,45,0.12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.016);
}

.login-feature b {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.login-feature span {
  color: var(--muted);
  font-size: 13px;
}

.login-panel-wrap {
  display: grid;
  place-items: center;
  padding: 34px;
}

.login-panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  border-radius: 28px;
  border: 1px solid rgba(255,45,45,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.006)), rgba(7,9,13,0.94);
  padding: 28px 24px 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 24px 70px rgba(0, 0, 0, 0.42);
}

.login-panel::before {
  background:
    linear-gradient(90deg, rgba(255,45,45,0.95) 0 50px, transparent 50px) top left / 86px 1px no-repeat,
    linear-gradient(180deg, rgba(255,45,45,0.95) 0 50px, transparent 50px) top left / 1px 86px no-repeat,
    linear-gradient(270deg, rgba(255,45,45,0.95) 0 34px, transparent 34px) bottom right / 58px 1px no-repeat,
    linear-gradient(0deg, rgba(255,45,45,0.95) 0 34px, transparent 34px) bottom right / 1px 58px no-repeat;
  opacity: 0.56;
}

.login-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 18px;
}

.login-panel h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.login-panel h2 span {
  color: var(--red);
}

.login-panel p {
  margin: 14px 0 0;
  color: var(--muted);
}

.block {
  width: 100%;
  margin: 16px 0 0;
  border: 1px solid rgba(255,45,45,0.12);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.012);
  color: var(--muted);
}

.block.warn {
  color: #ffc7c7;
  border-color: rgba(255,45,45,0.18);
  background: rgba(255,45,45,0.04);
}

.discord-btn {
  width: 100%;
  margin-top: 16px;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,45,45,0.3);
  background: linear-gradient(180deg, rgba(255,58,58,0.18), rgba(255,58,58,0.08)), rgba(17, 8, 10, 0.98);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 800;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.discord-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,70,70,0.55);
  box-shadow: 0 0 0 4px rgba(255,45,45,0.08), 0 14px 30px rgba(0,0,0,0.35);
}

.discord-icon {
  width: 20px;
  height: 20px;
}

.discord-icon img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.error {
  display: none;
  margin-top: 14px;
  border: 1px solid rgba(255,109,135,0.28);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,109,135,0.08);
  color: #ffc5cf;
}

.footline {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .msgRow .bubble {
    max-width: min(60%, 720px);
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .aside,
  .main {
    min-height: auto;
    clip-path: none;
    border-radius: 24px;
  }

  .aside {
    max-height: 48vh;
  }

  .main {
    min-height: 52vh;
  }

  .msgRow .bubble {
    max-width: min(72%, 720px);
  }

  .login-grid {
    grid-template-columns: 1fr;
  }

  .login-hero {
    border-right: 0;
    border-bottom: 1px solid rgba(255,45,45,0.12);
  }
}

@media (max-width: 640px) {
  .layout {
    padding: 8px;
    gap: 10px;
  }

  .aside-head,
  .head,
  .msgList {
    padding-left: 14px;
    padding-right: 14px;
  }

  .head {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .controls {
    width: 100%;
    justify-content: flex-start;
  }

  .msgRow,
  .msgRow.right {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .msgRow.right .avatar {
    order: 2;
  }

  .msgRow.right .bubble {
    order: 1;
    justify-self: start;
  }

  .msgRow .bubble,
  .msgRow.right .bubble {
    max-width: calc(100% - 8px);
  }

  .title,
  #chatTitle.title {
    font-size: 22px;
  }

  .login-shell {
    width: calc(100% - 18px);
    min-height: auto;
  }

  .login-hero,
  .login-panel-wrap {
    padding: 22px;
  }

  .login-features {
    grid-template-columns: 1fr;
  }
}


/* scroll-safe hotfix */
.aside-foot{margin-top:auto;z-index:2}
.item.active::after{opacity:.42}
.item.active .badge{box-shadow:0 0 0 1px rgba(255,255,255,.04),0 0 14px rgba(255,45,45,.12)}
.btn,.btnAction{font-weight:700;letter-spacing:.01em}
@media (max-width: 980px){
  body{overflow:auto;}
  .layout{height:auto;min-height:100vh;grid-template-columns:1fr;}
  .aside,.main{height:auto;min-height:unset;}
  .list{max-height:44vh;}
  .main > .chatcard{min-height:52vh;}
}


/* precise aside/list sizing fix */
.aside-head{flex:0 0 auto;}
.aside-body{height:0;}
.list{padding-right:18px;}
.item .badge{justify-self:start;}
.item .meta{width:100%; overflow:hidden;}
.item .sub{display:block;}
.actionsBox .row2 .btnAction{min-width:0;}
.hint.smallmuted{margin-top:10px; text-align:center; font-size:11px; letter-spacing:.08em;}


/* === XD PRO OVERRIDES === */
:root{
  --aside-width: 424px;
  --header-h: 108px;
  --line: rgba(255, 38, 38, 0.20);
  --line-soft: rgba(255, 38, 38, 0.10);
  --line-strong: rgba(255, 38, 38, 0.58);
  --red: #ff3030;
  --red-glow: rgba(255,48,48,.30);
}
body{
  background:
    radial-gradient(circle at 0% 0%, rgba(125, 8, 16, 0.34), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(125, 8, 16, 0.24), transparent 30%),
    linear-gradient(180deg, #030406 0%, #020305 44%, #040507 100%);
}
body::before{
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(255, 0, 0, 0.018) 14.2%, transparent 14.4%, transparent 100%),
    radial-gradient(circle at 88% 30%, rgba(255, 0, 0, 0.065), transparent 25%),
    radial-gradient(circle at 12% 86%, rgba(255, 0, 0, 0.045), transparent 22%);
  opacity: .7;
}
.aside,
.main,
.chatcard,
.actionsBox,
.popup-content,
.login-panel,
.login-hero{
  backdrop-filter: blur(10px);
}
.aside,
.main{
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.96), rgba(3, 4, 7, 0.98));
}
.aside::after,
.main::after,
.actionsBox::after,
.chatcard::after,
.login-panel::after,
.login-hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
}
.aside::after{
  background:
    linear-gradient(135deg, rgba(255,48,48,.35), transparent 34%) top left/160px 160px no-repeat,
    linear-gradient(315deg, rgba(255,48,48,.18), transparent 36%) bottom right/170px 170px no-repeat;
  opacity:.34;
}
.main::after{
  background:
    linear-gradient(125deg, rgba(255,48,48,.16), transparent 24%) top right/260px 120px no-repeat,
    linear-gradient(315deg, rgba(255,48,48,.14), transparent 20%) bottom right/320px 220px no-repeat;
  opacity:.40;
}
.brand{
  font-size: 16px;
  letter-spacing: .09em;
}
.brand::after{
  content: "XD";
  margin-left: auto;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,48,48,.24);
  color: #ff9a9a;
  background: rgba(255,48,48,.08);
  letter-spacing: .14em;
}
.search{
  height: 46px;
  border-radius: 16px;
  padding: 0 16px;
}
.item{
  grid-template-columns: 62px minmax(0,1fr);
  min-height: 84px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  border-color: rgba(255,48,48,.16);
}
.item::after{
  background:
    linear-gradient(90deg, rgba(255,48,48,.85) 0 22px, transparent 22px) top left / 42px 1px no-repeat,
    linear-gradient(180deg, rgba(255,48,48,.85) 0 22px, transparent 22px) top left / 1px 42px no-repeat,
    linear-gradient(270deg, rgba(255,48,48,.65) 0 18px, transparent 18px) top right / 34px 1px no-repeat;
  opacity:.22;
}
.item.active{
  border-color: rgba(255,62,62,.44);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 0 1px rgba(255,45,45,.06), 0 14px 28px rgba(0,0,0,.28);
  background:
    linear-gradient(180deg, rgba(255,36,36,.06), rgba(255,36,36,.01)),
    rgba(8,10,15,.985);
}
.item.active::before{
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  box-shadow: 0 0 12px rgba(255,44,44,.65);
}
.item.important{
  border-color: rgba(231,184,90,.28);
  background:
    linear-gradient(180deg, rgba(231,184,90,.045), rgba(231,184,90,.01)),
    rgba(8,10,15,.98);
}
.badge{
  min-width: 58px;
  width: 58px;
  height: 26px;
  font-size: 10px;
  border-radius: 999px;
}
.item .title{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.sub{
  gap: 5px;
  font-size: 11px;
}
.actionsBox{
  border-radius: 20px;
  padding: 14px;
}
.actionsBox::before,
.chatcard::before,
.login-panel::before,
.login-hero::before{
  background:
    linear-gradient(90deg, rgba(255,48,48,.95) 0 30px, transparent 30px) top left / 58px 1px no-repeat,
    linear-gradient(180deg, rgba(255,48,48,.95) 0 30px, transparent 30px) top left / 1px 58px no-repeat,
    linear-gradient(270deg, rgba(255,48,48,.95) 0 26px, transparent 26px) bottom right / 48px 1px no-repeat,
    linear-gradient(0deg, rgba(255,48,48,.95) 0 26px, transparent 26px) bottom right / 1px 48px no-repeat;
  opacity:.48;
}
.btn,
.btnAction{
  min-height: 46px;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}
.btn:hover,
.btnAction:hover{
  box-shadow: 0 12px 24px rgba(0,0,0,.32), 0 0 18px rgba(255,45,45,.08);
}
.btnAction.imp{
  color: #ffd77a;
  background: linear-gradient(180deg, rgba(255,215,122,.06), rgba(255,215,122,.015)), rgba(10,12,16,.96);
}
.btnAction.del{
  color: #ffb7c1;
}
.head{
  padding: 22px 24px 18px;
}
#chatTitle.title{
  font-size: 26px;
  letter-spacing: -.04em;
}
#chatTitle.title::after{
  margin-left: 8px;
}
.userBox,
.btn{
  min-height: 52px;
  border-radius: 18px;
}
.userBox{
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.006)), rgba(8,10,15,.86);
}
.chatcard{
  position: relative;
  margin: 14px;
  margin-top: 16px;
  border: 1px solid rgba(255,48,48,.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.014), rgba(255,255,255,.005)),
    rgba(5,7,10,.96);
  overflow: hidden;
}
.msgList{
  padding: 22px 22px 24px;
}
.msg{
  gap: 12px;
}
.bubble{
  border-radius: 18px;
  border-color: rgba(255,48,48,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,.004)), rgba(7,9,13,.95);
}
.msg.me .bubble{
  border-color: rgba(255,48,48,.34);
  box-shadow: 0 0 0 1px rgba(255,48,48,.05), 0 12px 24px rgba(0,0,0,.20);
}
.composer,
.inputbar,
.input-row,
.replyBox{
  border-radius: 18px;
}
.login-shell{
  background:
    radial-gradient(circle at 8% 14%, rgba(125,8,16,.32), transparent 24%),
    radial-gradient(circle at 100% 100%, rgba(125,8,16,.26), transparent 28%),
    linear-gradient(180deg, #040507 0%, #030407 100%);
}
.login-grid{
  gap: 28px;
}
.login-hero,
.login-panel{
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(9,12,18,.95), rgba(5,7,11,.98));
}
.login-brand{
  font-size: 22px;
  letter-spacing: .03em;
}
.login-brand span:last-child,
.login-title em,
.login-panel h2 span{
  color: #ff3030;
}
.login-title{
  font-size: 50px;
  line-height: .92;
}
.login-panel h2{
  font-size: 24px;
}
.discord-btn{
  border-radius: 18px;
  min-height: 54px;
  background: linear-gradient(180deg, rgba(255,52,52,.22), rgba(255,22,22,.12));
  border: 1px solid rgba(255,48,48,.32);
  box-shadow: 0 14px 28px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.02);
}
.hint.smallmuted,
.footline{
  color: #787f8c;
}
@media (max-width: 1500px){
  :root{ --aside-width: 392px; }
  .item .title{ font-size: 13px; }
}

/* === XD PREMIUM OVERRIDES === */
:root{
  --aside-width: 438px;
  --header-h: 112px;
  --shadow: 0 28px 80px rgba(0,0,0,.52);
}

body{
  background:
    radial-gradient(circle at 0% 0%, rgba(158, 12, 22, 0.22), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(158, 12, 22, 0.18), transparent 28%),
    linear-gradient(180deg, #020305 0%, #030407 46%, #040507 100%);
}

body::before{
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(255, 0, 0, 0.014) 14.2%, transparent 14.4%, transparent 100%),
    radial-gradient(circle at 84% 24%, rgba(255, 33, 33, 0.07), transparent 24%),
    radial-gradient(circle at 14% 82%, rgba(255, 33, 33, 0.05), transparent 22%);
  opacity: .82;
}

.aside,
.main,
.actionsBox,
.login-shell,
.login-panel,
.login-hero{
  backdrop-filter: blur(12px);
}

.aside,
.main{
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.965), rgba(4, 5, 8, 0.985));
}

.aside::before{
  background:
    linear-gradient(90deg, rgba(255, 38, 38, 0.92) 0 56px, transparent 56px) top left / 104px 2px no-repeat,
    linear-gradient(180deg, rgba(255, 38, 38, 0.92) 0 56px, transparent 56px) top left / 2px 104px no-repeat,
    linear-gradient(270deg, rgba(255, 38, 38, 0.75) 0 34px, transparent 34px) bottom right / 70px 2px no-repeat,
    linear-gradient(0deg, rgba(255, 38, 38, 0.75) 0 34px, transparent 34px) bottom right / 2px 70px no-repeat;
  opacity: .7;
}

.main::before{
  background:
    linear-gradient(90deg, rgba(255, 38, 38, 0.84) 0 110px, transparent 110px) top left / 190px 2px no-repeat,
    linear-gradient(180deg, rgba(255, 38, 38, 0.8) 0 34px, transparent 34px) top right / 2px 68px no-repeat,
    linear-gradient(270deg, rgba(255, 38, 38, 0.84) 0 112px, transparent 112px) bottom right / 210px 2px no-repeat,
    linear-gradient(0deg, rgba(255, 38, 38, 0.8) 0 64px, transparent 64px) bottom left / 2px 98px no-repeat;
  opacity: .8;
}

.aside::after,
.main::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
}

.aside::after{
  background:
    linear-gradient(135deg, rgba(255, 36, 36, .24), transparent 38%) top left/180px 180px no-repeat,
    linear-gradient(315deg, rgba(255, 36, 36, .12), transparent 40%) bottom right/180px 180px no-repeat;
  opacity:.42;
}

.main::after{
  background:
    linear-gradient(135deg, rgba(255, 36, 36, .10), transparent 22%) top right/360px 180px no-repeat,
    linear-gradient(315deg, rgba(255, 36, 36, .09), transparent 24%) bottom right/420px 260px no-repeat,
    linear-gradient(90deg, transparent 0 48%, rgba(255,255,255,.012) 50%, transparent 52%);
  opacity:.46;
}

.brand{
  font-size: 18px;
  letter-spacing: .08em;
}

.brand::after{
  content: "PREMIUM";
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 48, 48, .22);
  background: linear-gradient(180deg, rgba(255,48,48,.10), rgba(255,48,48,.04));
  font-size: 9px;
  font-weight: 800;
  color: #ffb0b0;
  letter-spacing: .16em;
}

.search{
  height: 48px;
  padding: 0 16px;
  border-radius: 15px;
}

.list{
  gap: 11px;
  padding: 16px 16px 16px;
}

.item{
  grid-template-columns: 56px minmax(0,1fr);
  min-height: 82px;
  padding: 12px 24px 12px 12px;
  border-radius: 17px;
  border-color: rgba(255, 46, 46, .16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.016), rgba(255,255,255,.004)),
    rgba(7, 9, 13, .96);
}

.item::after{
  background:
    linear-gradient(90deg, rgba(255,46,46,.86) 0 24px, transparent 24px) top left / 42px 1px no-repeat,
    linear-gradient(180deg, rgba(255,46,46,.86) 0 24px, transparent 24px) top left / 1px 42px no-repeat;
  opacity:.16;
}

.item.important::after,
.actionsBox::before,
.login-panel::before{
  opacity:.5;
}

.item.active{
  border-color: rgba(255, 72, 72, .34);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 0 0 1px rgba(255, 45, 45, .05),
    0 14px 30px rgba(0,0,0,.26),
    0 0 28px rgba(255, 45, 45, .08);
  background:
    linear-gradient(180deg, rgba(255,36,36,.045), rgba(255,36,36,.012)),
    rgba(8,10,14,.985);
}

.item.active::before{
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  box-shadow: 0 0 10px rgba(255, 44, 44, .55);
}

.badge{
  min-width: 50px;
  width: 50px;
  height: 22px;
  padding: 0 6px;
  font-size: 9px;
  letter-spacing: .07em;
}

.meta{
  gap: 6px;
}

.item .title{
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub{
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actionsBox{
  border-radius: 20px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.005)),
    rgba(8,10,14,.96);
}

.btn,
.btnAction{
  min-height: 46px;
  border-radius: 15px;
  font-weight: 800;
  letter-spacing: .01em;
}

.btn{
  background:
    linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.008)),
    rgba(10,12,16,.96);
}

.head{
  min-height: 112px;
  padding: 24px 24px 18px;
  background:
    linear-gradient(180deg, rgba(255, 28, 28, 0.055), transparent 72%),
    linear-gradient(90deg, rgba(255,255,255,0.018), transparent 32%, rgba(255,255,255,0.006));
}

#chatTitle.title{
  font-size: 26px;
  letter-spacing: -.03em;
}

.userBox{
  min-height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.006)),
    rgba(9,11,15,.92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.msgList{
  padding: 26px 26px 30px;
  gap: 18px;
}

.msgList::before{
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 39, 39, 0.08), transparent 20%),
    radial-gradient(circle at 100% 100%, rgba(255, 39, 39, 0.05), transparent 22%),
    linear-gradient(90deg, transparent 0, rgba(255,255,255,0.01) 50%, transparent 100%);
  opacity: .95;
}

.msgRow .bubble{
  max-width: min(56%, 780px);
  padding: 15px 17px;
  border-radius: 18px;
  border-color: rgba(255, 46, 46, .15);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.018),
    0 8px 24px rgba(0,0,0,.12);
}

.msgRow .bubble::before{
  background:
    linear-gradient(90deg, rgba(255,46,46,.85) 0 22px, transparent 22px) top left / 38px 1px no-repeat,
    linear-gradient(180deg, rgba(255,46,46,.85) 0 22px, transparent 22px) top left / 1px 38px no-repeat;
  opacity: .18;
}

.msgRow.right .bubble{
  background:
    linear-gradient(180deg, rgba(255, 34, 34, .055), rgba(255, 34, 34, .012)),
    rgba(10, 8, 11, .975);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 10px 28px rgba(255, 34, 34, .06);
}

.msgRow.right .bubble::before{
  background:
    linear-gradient(270deg, rgba(255,46,46,.92) 0 22px, transparent 22px) top right / 38px 1px no-repeat,
    linear-gradient(180deg, rgba(255,46,46,.92) 0 22px, transparent 22px) top right / 1px 38px no-repeat,
    linear-gradient(0deg, rgba(255,46,46,.82) 0 18px, transparent 18px) bottom right / 1px 32px no-repeat;
  opacity: .42;
}

.avatar{
  border-radius: 15px;
}

.login-shell{
  max-width: 1360px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006)),
    rgba(5,7,11,.96);
}

.login-shell::before{
  opacity: .8;
}

.login-hero{
  background:
    radial-gradient(circle at 16% 18%, rgba(255,40,40,0.11), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.012), transparent 46%),
    rgba(4,6,10,0.94);
}

.login-hero::after{
  width: 320px;
  height: 320px;
  opacity: .4;
}

.login-brand{
  font-size: 19px;
}

.login-title{
  font-size: clamp(38px, 4vw, 62px);
}

.login-subtitle{
  max-width: 600px;
  font-size: 15px;
}

.login-feature{
  position: relative;
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006)),
    rgba(8,10,14,.72);
}

.login-feature::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(255,46,46,.84) 0 28px, transparent 28px) top left / 48px 1px no-repeat,
    linear-gradient(180deg, rgba(255,46,46,.84) 0 28px, transparent 28px) top left / 1px 48px no-repeat;
  opacity:.22;
}

.login-panel{
  max-width: 450px;
  border-radius: 30px;
  padding: 30px 26px 24px;
}

.login-panel h2{
  font-size: 36px;
}

.discord-btn{
  min-height: 56px;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0,0,0,.24);
}

.footline{
  margin-top: 20px;
}

@media (max-width: 1180px){
  :root{ --aside-width: 380px; }
  .item .title{ font-size: 12px; }
  .msgRow .bubble{ max-width: min(66%, 720px); }
}

@media (max-width: 980px){
  :root{ --aside-width: 100%; }
  .list{ max-height: 42vh; }
  .item{ min-height: 76px; }
  .msgList{ padding: 18px; }
  .msgRow .bubble,
  .msgRow.right .bubble{ max-width: 88%; }
  .login-grid{ grid-template-columns: 1fr; }
}
