/* Life4Club Chat — profesjonalny motyw (auth + czat) */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Sora:wght@600;700&display=swap");

:root {
  --l4c-bg: #020617;
  --l4c-card: rgba(15, 23, 42, 0.94);
  --l4c-border: rgba(51, 65, 85, 0.75);
  --l4c-text: #e2e8f0;
  --l4c-muted: #94a3b8;
  --l4c-meta: #64748b;
  --l4c-indigo: #4f46e5;
  --l4c-indigo-hover: #6366f1;
  --l4c-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --l4c-font: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --l4c-display: "Sora", "Outfit", sans-serif;
  --l4c-auth-w: 22.5rem;
}

html {
  min-height: 100%;
  background-color: var(--l4c-bg);
}

/*
  Tło: bez background-attachment:fixed (Chrome/Edge robi z tego poziome „paski”).
  Atmosfera idzie na stałą warstwę ::before / .l4c-orbs.
*/
body.x_global,
body.x_blab,
body.x_overal {
  color: var(--l4c-text) !important;
  background-color: var(--l4c-bg) !important;
  background-image: none !important;
  background-attachment: scroll !important;
  font-family: var(--l4c-font) !important;
  -webkit-font-smoothing: antialiased;
}

body.x_blab,
body.x_global {
  position: relative;
}

body.x_blab::before,
body.x_global:not(.l4c-auth)::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--l4c-bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(99, 102, 241, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 40%, rgba(14, 165, 233, 0.06), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 85%, rgba(244, 63, 94, 0.05), transparent 45%);
}

body.x_overal {
  background-color: var(--l4c-bg) !important;
}

.x_bcolor_x {
  color: var(--l4c-text) !important;
  background-color: #0f172a !important;
}

.x_bcolor_y {
  color: var(--l4c-text) !important;
  background-color: #1e293b !important;
}

.x_bcolor_z {
  color: #fff !important;
  background-color: #0f172a !important;
}

.x_accent_bg {
  color: #fff !important;
  background-color: var(--l4c-indigo) !important;
}

.x_accent_fg {
  color: #a5b4fc !important;
  background-color: transparent !important;
}

.x_accent_bb {
  border-bottom: 2px solid var(--l4c-indigo) !important;
}

.x_all_rounded { border-radius: 1rem !important; }
.x_left_rounded { border-radius: 0.75rem 0 0 0.75rem !important; }
.x_right_rounded { border-radius: 0 0.75rem 0.75rem 0 !important; }
.x_top_rounded { border-radius: 1rem 1rem 0 0 !important; }
.x_bottom_rounded { border-radius: 0 0 1rem 1rem !important; }
.x_circle { border-radius: 9999px !important; }

input, select, textarea {
  color: #fff !important;
  font-family: var(--l4c-font) !important;
}

/* ========== AUTH (login / register) ========== */
body.l4c-auth {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background-color: #020617 !important;
  background-image: none !important;
  background-attachment: scroll !important;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.l4c-orbs {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #020617;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(79, 70, 229, 0.28), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 20%, rgba(244, 63, 94, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(14, 165, 233, 0.12), transparent 50%),
    linear-gradient(180deg, #020617 0%, #0b1220 50%, #020617 100%);
}

.l4c-orbs::before,
.l4c-orbs::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(140px);
  animation: l4c-drift 16s ease-in-out infinite alternate;
}

.l4c-orbs::before {
  width: 480px;
  height: 480px;
  top: -120px;
  left: 50%;
  margin-left: -240px;
  background: rgba(79, 70, 229, 0.22);
}

.l4c-orbs::after {
  width: 380px;
  height: 380px;
  bottom: 4%;
  right: -80px;
  background: rgba(244, 63, 94, 0.12);
  animation-delay: -5s;
}

/* „scena” / światła klubu pod formularzem */
body.l4c-auth::before {
  content: "";
  pointer-events: none;
  position: fixed;
  left: 50%;
  bottom: -18%;
  width: min(920px, 140vw);
  height: 42vh;
  transform: translateX(-50%);
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(99, 102, 241, 0.22), transparent 70%),
    radial-gradient(ellipse 30% 35% at 20% 90%, rgba(244, 63, 94, 0.1), transparent 70%),
    radial-gradient(ellipse 30% 35% at 80% 90%, rgba(52, 211, 153, 0.08), transparent 70%);
  filter: blur(8px);
}

@keyframes l4c-drift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(16px) scale(1.05); }
}

body.l4c-auth #middps {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 26rem);
  /* BlaB verti_pos() wstawia inline marginTop — blokujemy, centrujemy body flexem */
  margin: 0 auto !important;
  padding: 2rem 1.75rem 1.75rem !important;
  background: var(--l4c-card) !important;
  border: 1px solid var(--l4c-border) !important;
  border-radius: 1.35rem !important;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.38) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: l4c-rise 0.5s var(--l4c-ease) both;
  box-sizing: border-box;
  /* Stock blabaxpro.css: #middps{visibility:hidden} — bez tego info/login znika */
  visibility: visible !important;
}

/* Karta po złym haśle / rejestracji — zawsze widoczna (bez fade-in JS) */
body.l4c-auth #middps.l4c-info-panel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  animation: none;
}

body.l4c-auth form.l4c-auth-form {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin: 0;
  padding: 1.25rem 0;
  box-sizing: border-box;
}

@keyframes l4c-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.l4c-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  text-align: center;
}

.l4c-brand img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(79, 70, 229, 0.22));
}

.l4c-brand p {
  margin: 0;
  max-width: 18rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--l4c-muted);
}

.l4c-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  padding: 0.25rem;
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(51, 65, 85, 0.7);
}

.l4c-tabs-active {
  flex: 1;
  text-align: center;
  font-family: var(--l4c-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  background: rgba(79, 70, 229, 0.28);
}

.l4c-tabs-link {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--l4c-muted) !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  padding: 0.55rem 0.7rem;
  line-height: 1.2;
  border-radius: 0.65rem;
  transition: color 0.2s var(--l4c-ease), background-color 0.2s var(--l4c-ease);
}

.l4c-tabs-link:hover {
  color: #e2e8f0 !important;
  background: rgba(148, 163, 184, 0.08);
}

.l4c-tips {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--l4c-muted);
}

.l4c-fields {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

body.l4c-auth .holder_text,
body.l4c-auth input.holder_text {
  display: block;
  width: 100% !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 1rem !important;
  background-color: rgba(2, 6, 23, 0.65) !important;
  background-image: none !important;
  border: 1px solid rgba(51, 65, 85, 0.9) !important;
  border-radius: 0.8rem !important;
  box-sizing: border-box !important;
  font-size: 0.95rem !important;
  transition: border-color 0.22s var(--l4c-ease), box-shadow 0.22s var(--l4c-ease);
}

body.l4c-auth .holder_text.x_accent_bb {
  border-bottom: 1px solid rgba(51, 65, 85, 0.9) !important;
}

body.l4c-auth .holder_text:focus {
  border-color: rgba(99, 102, 241, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.22);
}

body.l4c-auth .holder_text::placeholder,
body.l4c-auth input.holder_text::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

body.l4c-auth .l4c-pass-wrap {
  position: relative;
  width: 100%;
}

body.l4c-auth .l4c-pass-wrap .holder_text {
  padding-right: 3rem !important;
}

body.l4c-auth .l4c-pass-toggle {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.55rem;
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.15rem;
  cursor: pointer;
  opacity: 0.9;
  transition: background-color 0.15s var(--l4c-ease), opacity 0.15s var(--l4c-ease);
}

body.l4c-auth .l4c-pass-toggle:hover {
  background-color: rgba(99, 102, 241, 0.18);
  opacity: 1;
}

body.l4c-auth .l4c-pass-toggle.is-on {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3l18 18'/><path d='M10.6 10.6a3 3 0 004.2 4.2'/><path d='M9.9 5.1A10.5 10.5 0 0122 12s-1.5 2.6-4.2 4.4'/><path d='M6.1 6.1C3.8 7.8 2 12 2 12s3.5 6 10 6c1.3 0 2.5-.2 3.6-.6'/></svg>");
}

body.l4c-auth .l4c-textarea,
body.l4c-auth textarea.l4c-textarea {
  display: block;
  width: 100%;
  min-height: 4.25rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(51, 65, 85, 0.9) !important;
  border-radius: 0.8rem !important;
  resize: none;
  box-sizing: border-box;
  font-size: 0.95rem;
  line-height: 1.4;
}

body.l4c-auth .holder_button,
body.l4c-auth input.holder_button {
  display: block;
  width: 100% !important;
  height: 50px !important;
  margin: 0.35rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0.8rem !important;
  background: var(--l4c-indigo) !important;
  color: #fff !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.32);
  transition: background-color 0.22s var(--l4c-ease), transform 0.22s var(--l4c-ease), box-shadow 0.22s var(--l4c-ease);
}

body.l4c-auth .holder_button:hover {
  background: var(--l4c-indigo-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.4);
}

.l4c-help-row {
  display: flex;
  justify-content: flex-end;
}

.l4c-help-btn {
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.8);
  color: var(--l4c-muted);
  font-family: var(--l4c-font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: color 0.2s var(--l4c-ease), border-color 0.2s var(--l4c-ease);
}

.l4c-help-btn:hover {
  color: #fff;
  border-color: rgba(99, 102, 241, 0.55);
}

.l4c-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 0.15rem;
}

.l4c-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--l4c-muted);
  font-family: var(--l4c-font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  height: 1.25rem;
}

.l4c-lang .flag_curr {
  float: none !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.l4c-lang:hover {
  color: #e2e8f0;
}

.l4c-forgot {
  color: #a5b4fc !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.25rem;
  transition: color 0.2s var(--l4c-ease);
}

.l4c-forgot:hover {
  color: #c7d2fe !important;
}

.l4c-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
  padding-bottom: 1.5rem;
}

.l4c-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 9999px;
  border: 1px solid rgba(79, 70, 229, 0.38);
  background: rgba(79, 70, 229, 0.1);
  color: #c7d2fe !important;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.22s var(--l4c-ease), border-color 0.22s var(--l4c-ease), transform 0.22s var(--l4c-ease);
}

.l4c-admin-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.75);
}

.l4c-admin-link:hover {
  background: rgba(79, 70, 229, 0.2);
  border-color: rgba(129, 140, 248, 0.6);
  transform: translateY(-1px);
}

.l4c-fb-wrap {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 26rem);
  margin: 0.85rem auto 0;
}

.fb_log {
  width: 100% !important;
  height: 44px !important;
  background-color: #3b5998 !important;
  border-radius: 0.8rem !important;
  box-shadow: none !important;
}

body.l4c-auth #flags_div {
  border: 1px solid var(--l4c-border) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

/* ========== CHAT — spójny, profesjonalny chrome (bez zmiany pozycji) ========== */
body.x_blab {
  font-family: var(--l4c-font) !important;
  overflow-x: hidden !important;
}

body.x_blab .top_area.x_bcolor_z {
  background: #0b1220 !important;
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.x_blab #rbgcolor.top_area {
  background: transparent !important;
  top: 0 !important;
}

body.x_blab .top_area {
  height: 40px !important;
  line-height: 40px !important;
  top: 0 !important;
}

.l4c-top-left {
  position: absolute;
  left: 6px;
  right: clamp(220px, 34vw, 360px);
  top: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  z-index: 2;
  pointer-events: none;
  box-sizing: border-box;
}

.l4c-chat-logo-fixed {
  display: block;
  height: 26px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  opacity: 0.95;
}

.l4c-top-left .top_button {
  pointer-events: auto;
  margin: 0 !important;
  flex-shrink: 0;
  position: relative;
  z-index: 6;
}

.l4c-chat-brand {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  height: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 1;
  pointer-events: auto;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 100%;
  overflow: hidden;
  width: auto;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.l4c-chat-brand:focus-visible .l4c-onair {
  outline: 2px solid rgba(129, 140, 248, 0.7);
  outline-offset: 2px;
}

.l4c-chat-brand-logo {
  display: none;
}

.l4c-onair {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
  width: max-content;
  flex: 0 1 auto;
  overflow: hidden;
  padding: 0.2rem 0.55rem 0.2rem 0.35rem;
  border-radius: 0.7rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(51, 65, 85, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: var(--l4c-font);
  line-height: 1.15;
}

.l4c-chat-brand.is-live .l4c-onair {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.9));
}

.l4c-chat-brand.is-next .l4c-onair {
  border-color: rgba(129, 140, 248, 0.35);
  background: linear-gradient(180deg, rgba(49, 46, 129, 0.32), rgba(15, 23, 42, 0.9));
}

.l4c-onair-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(71, 85, 105, 0.7);
}

.l4c-onair-dot {
  width: 7px;
  height: 7px;
  margin: 0;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
  flex-shrink: 0;
  animation: l4c-live-pulse 1.6s ease-in-out infinite;
}

@keyframes l4c-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.l4c-onair-label {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1;
}

.l4c-chat-brand.is-live .l4c-onair-label {
  color: #6ee7b7;
}

.l4c-chat-brand.is-next .l4c-onair-label {
  color: #a5b4fc;
}

.l4c-onair-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  max-width: min(42vw, 28rem);
}

.l4c-onair-name {
  display: block;
  font-family: var(--l4c-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  line-height: 1.15;
  max-width: 100%;
}

.l4c-onair-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.64rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.1;
}

@media (max-width: 900px) {
  .l4c-top-left {
    right: clamp(160px, 40vw, 280px);
  }
}

@media (max-width: 720px) {
  .l4c-top-left {
    right: 7.6rem;
    gap: 0.28rem;
  }
  .l4c-chat-logo-fixed {
    height: 22px;
    max-width: 72px;
  }
  .l4c-onair-label {
    font-size: 0.62rem;
  }
  .l4c-onair-name {
    font-size: 0.72rem;
  }
  body.x_blab #toprght {
    right: 4px !important;
    gap: 0.18rem;
  }
  body.x_blab #toprght .l4c-top-sep,
  body.x_blab #toprght #online_map {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .l4c-chat-logo-fixed {
    display: none;
  }
  .l4c-top-left {
    left: 4px;
    right: 6.2rem;
    gap: 0.25rem;
  }
  .l4c-onair {
    padding: 0.16rem 0.38rem;
    gap: 0.35rem;
    border-radius: 0.55rem;
  }
  .l4c-onair-meta {
    display: none;
  }
  .l4c-onair-copy {
    min-width: 0;
  }
  .l4c-onair-name {
    max-width: 42vw;
  }
  body.x_blab #toprght div {
    width: 26px !important;
    height: 26px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .l4c-onair-dot {
    animation: none !important;
  }
}

body.x_blab .top_button {
  border-radius: 0.6rem;
  background-color: rgba(30, 41, 59, 0.55);
  background-size: 58% !important;
  transition: background-color 0.18s var(--l4c-ease), box-shadow 0.18s var(--l4c-ease);
}

body.x_blab #top_unread {
  left: 118px !important;
  z-index: 7;
}

body.x_blab #top2unread {
  left: 130px !important;
  z-index: 7;
}

body.x_blab .top_button:hover {
  background-color: rgba(99, 102, 241, 0.28);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.25);
}

body.x_blab #toprght {
  position: fixed !important;
  top: 0 !important;
  right: 6px !important;
  left: auto !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 2px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.28rem;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  box-sizing: border-box !important;
  /* Nad blurem paneli — pokoje / status / ikony zostają klikalne */
  z-index: 95 !important;
}

body.x_blab #toprght > div,
body.x_blab #toprght > .l4c-open-tab {
  margin: 0 !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  border-radius: 0.55rem !important;
  background-color: rgba(30, 41, 59, 0.7);
  background-size: 56% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
  flex: 0 0 auto !important;
  align-self: center !important;
  box-sizing: border-box !important;
  transition: background-color 0.18s var(--l4c-ease), box-shadow 0.18s var(--l4c-ease);
}

body.x_blab #toprght div:hover {
  background-color: rgba(99, 102, 241, 0.28);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.25);
}

body.x_blab #toprght .svg_admn {
  background-color: rgba(79, 70, 229, 0.85) !important;
}

body.x_blab #toprght .svg_admn:hover {
  background-color: var(--l4c-indigo-hover) !important;
}

body.x_blab #toprght .l4c-top-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  margin: 0 0.2rem !important;
  background: rgba(51, 65, 85, 0.9);
  border-radius: 0;
  flex-shrink: 0;
}

body.x_blab #toprght .l4c-top-sep:hover {
  background: rgba(51, 65, 85, 0.9);
  box-shadow: none;
}

/* Ikony menu są w górze — ukryj dolny pasek panelu */
body.x_blab #panel_bottom {
  display: none !important;
}

body.x_blab #panel_left,
body.x_blab #panel_offbot {
  bottom: 0 !important;
}

@media (max-width: 900px) {
  body.x_blab #toprght div {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
  }
}

@media (max-width: 720px) {
  body.x_blab #toprght .svg_fmed {
    display: none !important;
  }
}

/* Czystsze ikony (mono) zamiast kolorowych „zabawkowych” */
body.x_blab .svg_emtn {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M8.5 14.5c1.2 1.3 2.7 1.9 3.5 1.9s2.3-.6 3.5-1.9'/><circle cx='9' cy='10' r='1' fill='%23e2e8f0' stroke='none'/><circle cx='15' cy='10' r='1' fill='%23e2e8f0' stroke='none'/></svg>") !important;
}

body.x_blab .svg_more {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e2e8f0'><circle cx='6' cy='12' r='1.7'/><circle cx='12' cy='12' r='1.7'/><circle cx='18' cy='12' r='1.7'/></svg>") !important;
}

body.x_blab .svg_usrs {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='3.2'/><path d='M22 21v-2a3.5 3.5 0 0 0-2.5-3.35'/><path d='M16.5 3.9a3.2 3.2 0 0 1 0 6.2'/></svg>") !important;
}

body.x_blab .svg_avtr {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='3.4'/><path d='M5.5 19.5c1.4-3.2 3.7-4.8 6.5-4.8s5.1 1.6 6.5 4.8'/></svg>") !important;
}

body.x_blab .svg_sett {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3h0a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8v0a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/></svg>") !important;
}

body.x_blab .svg_room {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1z'/></svg>") !important;
}

body.x_blab .svg_pmms {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H8l-4 3V5a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2z'/></svg>") !important;
}

body.x_blab .svg_user {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='3.4'/><path d='M5.5 19.5c1.4-3.2 3.7-4.8 6.5-4.8s5.1 1.6 6.5 4.8'/></svg>") !important;
}

body.x_blab .svg_fmed {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='3.5' width='7' height='7' rx='1.2'/><rect x='13.5' y='3.5' width='7' height='7' rx='1.2'/><rect x='3.5' y='13.5' width='7' height='7' rx='1.2'/><path d='M13.5 16.5h7M17 13v7'/></svg>") !important;
}

body.x_blab .svg_exit {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M10 7V5a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2'/><path d='M15 12H3m0 0 3-3m-3 3 3 3'/></svg>") !important;
}

body.x_blab .svg_admn {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 4.5 6.5v4.2c0 4.7 3.2 9 7.5 10.3 4.3-1.3 7.5-5.6 7.5-10.3V6.5z'/><path d='M9.5 12.2 11.2 14l3.5-3.8'/></svg>") !important;
}

body.x_blab .svg_send {
  /* paper-plane — base64, żeby ikona zawsze się renderowała */
  background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuMDEgMjFMMjMgMTIgMi4wMSAzIDIgMTBsMTUgMi0xNSAyeiIvPjwvc3ZnPg==") !important;
}

body.x_blab .svg_down {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") !important;
}

/* Composer — pas dolny */
body.x_blab #bot_area,
body.x_blab #bot2area {
  background: transparent !important;
  border-top: none !important;
  box-shadow: none;
}

body.x_blab #bottom_smile,
body.x_blab #bottom_bmore,
body.x_blab #bottom_send,
body.x_blab #bottom_dmore {
  box-sizing: border-box;
}

/* Ukryj zepsuty przycisk mediów (audio/wideo/rysunek) — zostaw emoji + pole + wyślij */
body.x_blab #bottom_bmore,
body.x_blab #bottom_dmore {
  display: none !important;
}

body.x_blab #bottom_smile {
  width: 48px !important;
  height: 44px !important;
  background-color: #383a40 !important;
  border-radius: 12px 0 0 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  background-size: 42% !important;
  background-position: center !important;
  transition: background-color 0.18s var(--l4c-ease);
}

body.x_blab #bottom_smile:hover {
  background-color: #404249 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

body.x_blab #bottom_middle {
  background: #383a40 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

body.x_blab #bottom_middle textarea {
  background: #383a40 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #f8fafc !important;
  caret-color: #fff !important;
  padding: 0 12px !important;
  font-size: 0.95rem !important;
  line-height: 44px !important;
  height: 44px !important;
  width: 100% !important;
  display: block !important;
  box-shadow: none !important;
}

body.x_blab #bottom_middle textarea::placeholder {
  color: #6d6f78 !important;
  opacity: 1;
}

body.x_blab #bottom_middle textarea:focus {
  outline: none;
  background: #383a40 !important;
  box-shadow: none !important;
}

body.x_blab #bottom_send {
  width: 60px !important;
  height: 44px !important;
  background-color: #383a40 !important;
  background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuMDEgMjFMMjMgMTIgMi4wMSAzIDIgMTBsMTUgMi0xNSAyeiIvPjwvc3ZnPg==") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 42% !important;
  border-radius: 0 12px 12px 0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  transition: background-color 0.18s var(--l4c-ease);
}

body.x_blab #bottom_send:hover {
  background-color: #404249 !important;
  transform: none;
}

body.x_blab #bottom_smile.x_left_rounded {
  border-radius: 12px 0 0 12px !important;
}

body.x_blab #bottom_send.x_right_rounded {
  border-radius: 0 12px 12px 0 !important;
}

body.x_blab #online_all {
  display: none !important;
}

/* Mapa geo BlaB (globus) — zbędna na radiu, chowamy */
body.x_blab #online_map {
  display: none !important;
}

/*
  Composer (z-index 30) i panel online (25) wystawały PONAD przyciemnienie
  paneli — stockowe #hidescreen_* nie mają z-index. Overlay > UI, panel > overlay.
*/
body.x_blab #hidescreen_tran,
body.x_blab #hidescreen_part,
body.x_blab #hidescreen_opaq,
body.x_blab #hidescreen_blur {
  z-index: 80 !important;
}

/*
  Emotki + podgląd profilu używają #hidescreen_part.
  Zostawiamy warstwę do kliknięcia „w tło” (zamyka), ale bez szarego dimmera.
*/
body.x_blab #hidescreen_part {
  opacity: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Emotki / profil / kick-ban nad niewidocznym hit-area (80) */
body.x_blab #box_emoji_stickers,
body.x_blab #user_info,
body.x_blab #user_buttons,
body.x_blab #media_preview {
  z-index: 95 !important;
}

body.x_blab #panel_left,
body.x_blab #panel_offbot {
  z-index: 90 !important;
}

body.x_blab #usrmapp {
  z-index: 100 !important;
}

body.x_blab #autoscroll {
  left: auto !important;
  right: 18px !important;
  bottom: 84px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 9999px !important;
  background-color: #2b2d31 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dbdee1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") !important;
  background-size: 22px 22px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  z-index: 45 !important;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
body.x_blab #autoscroll:hover {
  background-color: #383a40 !important;
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
}
body.x_blab #autoscroll.x_accent_bg {
  background-color: #2b2d31 !important;
}
body.x_blab #autoscroll img {
  display: none !important;
}

body.x_blab .online_users1,
body.x_blab .online_users2 {
  top: 40px !important;
  bottom: 0 !important;
  right: 0 !important;
  left: auto !important;
  margin: 0 !important;
  min-width: 200px !important;
  width: min(240px, 26vw) !important;
  max-width: 240px !important;
  background: rgba(11, 18, 32, 0.98) !important;
  border-left: 1px solid rgba(51, 65, 85, 0.55);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 0 12px !important;
  box-sizing: border-box;
  scrollbar-width: none;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  z-index: 35;
}
body.x_blab .online_users1::-webkit-scrollbar,
body.x_blab .online_users2::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body.x_blab .l4c-online-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px 6px;
  padding: 2px 2px 7px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  font-family: var(--l4c-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

body.x_blab .l4c-online-head b {
  font-family: var(--l4c-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #c7d2fe;
  background: rgba(79, 70, 229, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 9999px;
  padding: 0.12rem 0.5rem;
}

body.x_blab .l4c-online-sec {
  margin: 0.85rem 12px 0.25rem;
  padding: 0 2px;
  font-family: var(--l4c-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #949ba4;
  user-select: none;
}

body.x_blab .l4c-ava-wrap {
  position: relative;
  display: inline-flex !important;
  flex: 0 0 38px !important;
  flex-shrink: 0 !important;
  align-items: center;
  justify-content: center;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  border-radius: 9999px !important;
  background: var(--l4c-rank, transparent);
}

/* .shorten + span{overflow:hidden} ucinały pierścień */
body.x_blab .single_online_user.shorten {
  overflow: visible !important;
}
body.x_blab .single_online_user > span.l4c-ava-wrap {
  overflow: visible !important;
}

body.x_blab .l4c-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  border: 2px solid #0b1220;
  background: #23a559;
  z-index: 2;
  pointer-events: none;
}

body.x_blab .l4c-status-dot.st2 { background: #f0b232; }
body.x_blab .l4c-status-dot.st3 { background: #f23f43; }
body.x_blab .l4c-status-dot.st4 { background: #80848e; }
body.x_blab .l4c-status-dot.st5,
body.x_blab .l4c-status-dot.st6 { background: #5865f2; }

body.x_blab .l4c-online-empty {
  margin: 14px 12px;
  padding: 1.15rem 0.9rem 1.2rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.45;
  border: 1px solid rgba(51, 65, 85, 0.65);
  border-radius: 0.9rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.12), transparent 65%),
    rgba(2, 6, 23, 0.45);
}

body.x_blab .l4c-online-empty .l4c-empty-ico {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(148, 163, 184, 0.35), transparent 55%),
    rgba(30, 41, 59, 0.9);
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.8);
  position: relative;
}

body.x_blab .l4c-online-empty .l4c-empty-ico::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border-radius: 999px;
  border: 2px dashed rgba(148, 163, 184, 0.35);
}

body.x_blab .l4c-online-empty strong {
  display: block;
  color: #e2e8f0;
  font-family: var(--l4c-display);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

body.x_blab .l4c-online-empty p {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
}

body.x_blab .single_online_user {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  margin: 2px 6px !important;
  padding: 8px 8px !important;
  min-height: 44px;
  line-height: 1.2 !important;
  border-radius: 0.7rem;
  opacity: 1 !important;
  position: relative;
  min-width: 0;
  transition: background-color 0.18s var(--l4c-ease), transform 0.16s var(--l4c-ease), box-shadow 0.18s var(--l4c-ease);
}

body.x_blab .single_online_user:hover {
  background: rgba(99, 102, 241, 0.14);
  opacity: 1 !important;
  transform: translateX(2px);
}

body.x_blab .single_online_user.is-dj:hover {
  background: rgba(16, 185, 129, 0.16);
}

body.x_blab .single_online_user img {
  float: none !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 9999px;
  box-sizing: border-box !important;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

body.x_blab .l4c-ava-wrap img {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

body.x_blab .single_online_user.g1 .l4c-ava-wrap,
body.x_blab .single_online_user:has(span.g1) .l4c-ava-wrap {
  background: #94A3B8 !important;
}
body.x_blab .single_online_user.g2 .l4c-ava-wrap,
body.x_blab .single_online_user:has(span.g2) .l4c-ava-wrap {
  background: #818CF8 !important;
}
body.x_blab .single_online_user.g3 .l4c-ava-wrap,
body.x_blab .single_online_user:has(span.g3) .l4c-ava-wrap {
  background: #F0ABFC !important;
}
body.x_blab .single_online_user.g4 .l4c-ava-wrap,
body.x_blab .single_online_user:has(span.g4) .l4c-ava-wrap {
  background: #F43F5E !important;
}

body.x_blab .single_online_user.is-dj .l4c-ava-wrap {
  background: #34d399 !important;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.45) !important;
}

body.x_blab .single_online_user > b {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.x_blab .single_online_user span:not(.l4c-ava-wrap) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
  font-family: var(--l4c-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  opacity: 1 !important;
}

/* Motto pod nickiem — jak custom status na Discordzie */
body.x_blab .l4c-online-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

body.x_blab .l4c-online-meta > span {
  flex: 0 1 auto !important;
  width: 100%;
}

body.x_blab .l4c-online-motto {
  display: block;
  margin: 0;
  padding: 0;
  color: #949ba4 !important;
  font-family: var(--l4c-font) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.95;
}

/* Kolory rang — fallback (właściwe kolory idą z ACP / $gcolors w inline <style>) */
body.x_blab .single_online_user span.g1,
body.x_blab #user_name.g1,
body.x_blab span.chat_area_user.g1,
body.x_blab .l4c-msg .chat_area_user.g1 { color: #94A3B8 !important; }

body.x_blab .single_online_user span.g2,
body.x_blab #user_name.g2,
body.x_blab span.chat_area_user.g2,
body.x_blab .l4c-msg .chat_area_user.g2 { color: #818CF8 !important; }

body.x_blab .single_online_user span.g3,
body.x_blab #user_name.g3,
body.x_blab span.chat_area_user.g3,
body.x_blab .l4c-msg .chat_area_user.g3 { color: #F0ABFC !important; }

body.x_blab .single_online_user span.g4,
body.x_blab #user_name.g4,
body.x_blab span.chat_area_user.g4,
body.x_blab .l4c-msg .chat_area_user.g4 { color: #F43F5E !important; }

body.x_blab .chat_area_user {
  font-family: var(--l4c-display);
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: -0.02em;
}

body.x_blab #panel_left,
body.x_blab #panel_bottom,
body.x_blab #panel_offbot {
  background: #0b1220 !important;
  border-right: 1px solid rgba(51, 65, 85, 0.7);
  backdrop-filter: none;
}

body.x_blab #panel_bottom {
  border-top: 1px solid rgba(51, 65, 85, 0.7);
  border-right: 0;
  text-align: center;
  padding: 0 0.35rem;
  box-sizing: border-box;
}

body.x_blab #panel_bottom > span:not(#bot_unread):not(#bot2unread) {
  width: 34px !important;
  height: 34px !important;
  margin: 8px 3px 0 !important;
  border-radius: 0.65rem !important;
  background-color: rgba(30, 41, 59, 0.9) !important;
  background-size: 54% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.75);
  transition: background-color 0.18s var(--l4c-ease), box-shadow 0.18s var(--l4c-ease), transform 0.18s var(--l4c-ease);
}

body.x_blab #panel_bottom > span:not(#bot_unread):not(#bot2unread):hover {
  background-color: rgba(99, 102, 241, 0.3) !important;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.4);
  transform: translateY(-1px);
}

body.x_blab #panel_bottom .svg_admn {
  background-color: var(--l4c-indigo) !important;
  border-radius: 0.65rem !important;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.35), 0 8px 16px rgba(79, 70, 229, 0.28) !important;
}

body.x_blab #panel_bottom .svg_admn:hover {
  background-color: var(--l4c-indigo-hover) !important;
}

body.x_blab #bot_unread,
body.x_blab #bot2unread {
  width: 8px !important;
  height: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
  background-image: none !important;
  transform: none !important;
}

body.x_blab .panel_title {
  font-family: var(--l4c-display);
  font-size: 1.05rem !important;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  border-bottom-color: rgba(99, 102, 241, 0.45) !important;
  padding-bottom: 8px;
}

body.x_blab .panel_button {
  background-color: var(--l4c-indigo) !important;
  border-radius: 0.7rem !important;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.22);
  font-weight: 600;
  transition: background-color 0.18s var(--l4c-ease), transform 0.12s var(--l4c-ease);
}

body.x_blab .panel_button:hover {
  background-color: var(--l4c-indigo-hover) !important;
  transform: translateY(-1px);
}

body.x_blab .panel_input {
  background-color: #0b1220 !important;
  border: 1px solid rgba(51, 65, 85, 0.85) !important;
  border-radius: 0.7rem !important;
  padding-left: 12px !important;
  transition: border-color 0.18s var(--l4c-ease), box-shadow 0.18s var(--l4c-ease);
}

body.x_blab .panel_input:focus {
  border-color: rgba(99, 102, 241, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
  outline: none;
}

body.x_blab .panel_room {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 18, 32, 0.96));
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 0.9rem;
  padding: 12px 14px;
  margin: 0 4% 10px !important;
  width: auto !important;
  box-sizing: border-box;
  transition: border-color 0.18s var(--l4c-ease), background-color 0.18s var(--l4c-ease), transform 0.16s var(--l4c-ease);
}

body.x_blab .panel_room:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: #152033;
  transform: translateY(-1px);
}

body.x_blab .panel_room div {
  border-top-color: var(--l4c-indigo) !important;
}

body.x_blab .panel_pmitem,
body.x_blab .panel_offpmm {
  background: rgba(11, 18, 32, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.65);
  border-radius: 0.75rem;
  margin: 0 4% 8px !important;
  padding: 10px 12px !important;
  box-sizing: border-box;
  transition: border-color 0.18s var(--l4c-ease), background-color 0.18s var(--l4c-ease);
}

body.x_blab .panel_pmitem:hover,
body.x_blab .panel_offpmm:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(30, 41, 59, 0.92);
  opacity: 1 !important;
}

body.x_blab .landing_room {
  background: #111827;
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-left: 3px solid var(--l4c-indigo) !important;
  border-radius: 0.75rem;
}

body.x_blab #tsnipdiv {
  display: none !important;
}

body.x_blab #user_info,
body.x_blab #user_buttons,
body.x_blab #flags_div,
body.x_blab #system_info,
body.x_blab #media_preview,
body.x_blab #statuses {
  background: #0f172a !important;
  border: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  border-radius: 0.9rem;
}

/* ---- Profil / PM popout (Discord-like, nie klei się do prawej) ---- */
body.x_blab #user_info {
  top: 52px !important;
  right: 14px !important;
  left: auto !important;
  width: min(300px, calc(100vw - 28px)) !important;
  max-width: 300px !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0.8rem 0.9rem !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  border-radius: 12px !important;
  background: rgba(15, 23, 42, 0.98) !important;
  border: 1px solid rgba(99, 102, 241, 0.32) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.x_blab #user_info[style*="block"] {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
}

body.x_blab #user_info > div[style*="float"] {
  float: none !important;
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem !important;
}

body.x_blab #user_avatar {
  float: none !important;
  position: relative;
  flex: 0 0 52px;
  width: 52px !important;
  height: 52px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  outline: 2px solid rgba(148, 163, 184, 0.35);
  outline-offset: 1px;
  background-size: cover !important;
  background-position: center !important;
}

body.x_blab #user_name {
  display: inline !important;
  font-family: var(--l4c-display);
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.25;
}

body.x_blab #user_iphash {
  margin-left: 0.35rem;
  opacity: 0.55;
  font-size: 0.7rem !important;
}

body.x_blab #user_motto {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin-top: 0.2rem;
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.x_blab #user_country {
  position: absolute;
  right: -2px;
  bottom: -2px;
}

body.x_blab #user_buttons.user_butt,
body.x_blab #user_buttons {
  top: 62px !important;
  right: 22px !important;
  left: auto !important;
  padding: 0.2rem !important;
  margin: 0 !important;
  border-radius: 10px !important;
  background: rgba(30, 41, 59, 0.95) !important;
  border: 1px solid rgba(51, 65, 85, 0.75) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
  display: none; /* JS ustawia block */
  gap: 0.15rem;
  align-items: center;
}

body.x_blab #user_buttons[style*="block"] {
  display: inline-flex !important;
}

body.x_blab #user_buttons span,
body.x_blab #user_buttons .x_circle {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background-color: transparent !important;
  background-size: 55% !important;
}

body.x_blab #user_buttons span:hover,
body.x_blab #user_buttons .x_circle:hover {
  background-color: rgba(99, 102, 241, 0.25) !important;
}

/* Panel historii PM (dawne „Wcześniejsze”) — wyłączony */
body.x_blab .one2chat,
body.x_blab #private_chats {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* Modal kick/ban (#media_preview) — nad blurem, pełna szerokość, wycentrowany */
body.x_blab #media_preview {
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(440px, calc(100vw - 32px)) !important;
  max-width: min(440px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: min(90vh, 560px) !important;
  padding: 1rem 1.1rem !important;
  overflow: auto !important;
  box-sizing: border-box !important;
  z-index: 95 !important;
  text-align: left !important;
  background: rgba(15, 23, 42, 0.98) !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65) !important;
  border-radius: 14px !important;
}

body.x_blab #media_preview .kickban_div {
  margin-bottom: 1rem !important;
  padding-left: 76px !important;
  min-height: 72px !important;
  height: auto !important;
  background-size: 64px 64px !important;
  color: #e2e8f0 !important;
}

body.x_blab #media_preview #kickban_num,
body.x_blab #media_preview #kickban_unt {
  float: none !important;
  width: 48% !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  margin: 0 0 0.65rem !important;
  padding: 0.55rem 0.6rem !important;
  border-radius: 8px !important;
  background: rgba(30, 41, 59, 0.95) !important;
  color: #f1f5f9 !important;
}

body.x_blab #media_preview #kickban_unt {
  float: right !important;
}

body.x_blab #media_preview .kickban_txtrea {
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0.5rem 0 0.85rem !important;
  min-height: 88px !important;
  height: auto !important;
  border-radius: 10px !important;
  background: rgba(30, 41, 59, 0.95) !important;
  color: #f1f5f9 !important;
}

body.x_blab #media_preview .kickban_button {
  width: 32% !important;
  min-width: 0 !important;
  flex: 1 1 30%;
  height: 38px !important;
  font-size: 0.75rem !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

body.x_blab #media_preview > div > div[style*="display:flex"] {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
  justify-content: space-between !important;
}

/* Emoji picker */
body.x_blab #box_emoji_stickers {
  left: 5px !important;
  right: auto !important;
  bottom: 52px !important;
  width: min(420px, calc(100vw - 12px)) !important;
  max-height: 70% !important;
  padding: 0.7rem 0.75rem 0.85rem !important;
  background: rgba(15, 23, 42, 0.98) !important;
  border: 1px solid rgba(51, 65, 85, 0.85) !important;
  border-radius: 1rem !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.x_blab #box_emoji_stickers strong,
body.x_blab #box_emoji_stickers b {
  margin: 0.2rem 0.25rem 0.2rem 0 !important;
  border-radius: 0.6rem !important;
  background-color: rgba(30, 41, 59, 0.95) !important;
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.75);
  color: #e2e8f0 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  transition: background-color 0.15s var(--l4c-ease), box-shadow 0.15s var(--l4c-ease);
}

body.x_blab #box_emoji_stickers strong:hover,
body.x_blab #box_emoji_stickers b:hover {
  background-color: rgba(79, 70, 229, 0.28) !important;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.4);
  opacity: 1 !important;
}

body.x_blab #box_emoji_stickers b:nth-of-type(n) {
  background-image: none !important;
  background-color: rgba(30, 41, 59, 0.95) !important;
  color: #e2e8f0 !important;
}

body.x_blab #list_of_emoji,
body.x_blab #listemoticons,
body.x_blab #list_of_stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-content: flex-start;
  max-height: 42vh;
  overflow: auto;
  padding: 0.35rem 0.15rem 0.5rem;
  margin-top: 0.55rem !important;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
  scrollbar-width: thin;
}

body.x_blab #box_emoji_stickers em,
body.x_blab #list_of_emoji span,
body.x_blab #listemoticons i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0.55rem;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: background-color 0.12s var(--l4c-ease), transform 0.12s var(--l4c-ease);
}

body.x_blab #box_emoji_stickers em:hover,
body.x_blab #list_of_emoji span:hover,
body.x_blab #listemoticons i:hover {
  background: rgba(99, 102, 241, 0.2);
  filter: none !important;
  transform: scale(1.08);
}

body.x_blab #statuses {
  top: 44px !important;
  right: 6px !important;
  z-index: 96 !important; /* nad #hidescreen_* (80) — lista statusów musi być klikalna */
  padding: 0.45rem 0.35rem 0.4rem;
  overflow: hidden;
  min-width: 11.5rem;
  background: rgba(15, 23, 42, 0.96) !important;
  border: 1px solid rgba(51, 65, 85, 0.85) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
}

body.x_blab #statuses > div:first-child,
body.x_blab #statuses > div:last-child {
  display: none !important; /* puste odstępniki */
}

body.x_blab #statuses div {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  border-radius: 0.55rem;
  padding: 0.45rem 0.55rem !important;
  margin: 3px 4px !important;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.18s var(--l4c-ease);
}

body.x_blab #statuses div:hover {
  background: rgba(99, 102, 241, 0.16);
}

body.x_blab #statuses i {
  margin: 0 !important;
  width: 0.7rem !important;
  height: 0.7rem !important;
  border-radius: 999px !important;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.9);
}

body.x_blab .history_button {
  display: none !important;
}

body.x_blab .m_hlight,
body.x_blab .u_hlight {
  display: inline !important;
  background: rgba(88, 101, 242, 0.28) !important;
  color: #dee0fc !important;
  border-radius: 0.25rem;
  padding: 0 0.2rem !important;
  margin: 0 !important;
  line-height: inherit !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  font-variant: normal !important;
  vertical-align: baseline;
}

/* Wiadomości — czytelne karty, nie „sklejki” */
body.x_blab #chat_area {
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
  scrollbar-width: thin !important;
  scrollbar-color: #6d6f78 transparent !important;
}
/* blabaxpro.css ustawia #chat_area::-webkit-scrollbar{width:0} — wymuszamy widoczny pasek */
html body.x_blab #chat_area::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
  display: block !important;
  background: transparent !important;
}
html body.x_blab #chat_area::-webkit-scrollbar-track {
  background: transparent !important;
  margin: 0;
}
html body.x_blab #chat_area::-webkit-scrollbar-thumb {
  background-color: #4e5058 !important;
  border-radius: 999px !important;
  border: 1px solid transparent;
  background-clip: padding-box;
  min-height: 36px;
}
html body.x_blab #chat_area::-webkit-scrollbar-thumb:hover {
  background-color: #6d6f78 !important;
}
html body.x_blab #chat_area::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
html body.x_blab #chat_area::-webkit-scrollbar-corner {
  background: transparent !important;
}

body.x_blab #chat_area.bgbwsp {
  background-position: right 2% bottom 8% !important;
  background-size: min(58%, 460px) auto !important;
  background-repeat: no-repeat !important;
}

body.x_blab .l4c-welcome {
  position: relative;
  margin: 0.5rem 0.5rem 1.15rem;
  padding: 1.15rem 1.2rem 1.1rem;
  max-width: 34rem;
  border-radius: 1rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(79, 70, 229, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(244, 63, 94, 0.1), transparent 50%),
    rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  animation: l4c-rise 0.45s var(--l4c-ease) both;
}

body.x_blab .l4c-welcome-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.x_blab .l4c-welcome-kicker::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
  animation: l4c-live-pulse 1.6s ease-in-out infinite;
}

body.x_blab .l4c-welcome strong {
  display: block;
  font-family: var(--l4c-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin-bottom: 0.4rem;
}

body.x_blab .l4c-welcome p {
  margin: 0 0 0.95rem;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.5;
}

body.x_blab .l4c-help {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.x_blab .l4c-help .help_allp {
  margin: 0;
  padding: 0.45rem 0.55rem 0.45rem 2.4rem;
  line-height: 1.35;
  border-radius: 0.55rem;
  background-color: rgba(2, 6, 23, 0.45);
  color: #cbd5e1;
  font-size: 0.86rem;
  background-size: 20px 20px !important;
  background-position: 10px center !important;
}

body.x_blab .l4c-help .help_allp b {
  color: #e2e8f0;
  font-weight: 600;
}

body.x_blab .msg,
body.x_blab .l4c-msg {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  column-gap: 0.85rem;
  align-items: start !important;
  justify-items: stretch !important;
  justify-content: start !important;
  text-align: left !important;
  clear: both;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  /* Discord-like: ciasny hover — mały padding pionowy */
  padding: 0.1rem 0.75rem 0.1rem 1rem;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: background-color 0.1s ease;
  animation: none;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
}

body.x_blab .msg:hover,
body.x_blab .l4c-msg:hover {
  background: rgba(79, 84, 92, 0.12);
  border-color: transparent;
}

body.x_blab .l4c-msg.is-grouped {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0.02rem;
  padding-bottom: 0.02rem;
  min-height: 0;
}

body.x_blab .l4c-msg > .avt,
body.x_blab .l4c-msg .avt {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
}

body.x_blab .l4c-msg.is-grouped .avt {
  visibility: hidden;
  opacity: 0;
  height: 1.1rem !important;
  width: 40px !important;
  margin: 0 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* Czas przy hoverze tylko w kolumnie awatara — tekst zostaje równo */
body.x_blab .l4c-msg.is-grouped:hover::before {
  content: attr(data-timeshort);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  text-align: center;
  font-size: 0.62rem;
  line-height: 1.1;
  color: #949ba4;
  z-index: 2;
  pointer-events: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
}

body.x_blab .l4c-msg.is-grouped .l4c-msg-head {
  display: none;
}

body.x_blab .l4c-msg.is-grouped .l4c-msg-text {
  padding-left: 0;
}

body.x_blab .l4c-msg > .l4c-msg-body,
body.x_blab .l4c-msg-body {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0;
  width: auto !important;
  max-width: 100%;
  text-align: left !important;
  padding-right: 2.5rem;
  justify-self: stretch !important;
}

body.x_blab .l4c-msg-text {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  line-height: 1.25;
  font-size: 0.95rem;
  color: #dbdee1;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0;
  padding: 0;
}

body.x_blab .l4c-msg-text br {
  content: "";
  display: block;
  margin-top: 0;
  line-height: 0;
}

@keyframes l4c-msg-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

body.x_blab .avt {
  float: none !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0.2rem 0 0 !important;
  flex-shrink: 0;
  border: 0 !important;
  /* border-radius w Chrome ustawia overflow:clip i ucina box-shadow — outline zostaje */
  outline: 3px solid var(--l4c-rank, transparent);
  outline-offset: 1px;
  box-shadow: none !important;
  object-fit: cover;
  border-radius: 9999px !important;
  box-sizing: border-box !important;
  transition: outline-color 0.18s var(--l4c-ease);
}

body.x_blab .l4c-msg[data-group="1"] .avt { outline-color: #94A3B8 !important; }
body.x_blab .l4c-msg[data-group="2"] .avt { outline-color: #818CF8 !important; }
body.x_blab .l4c-msg[data-group="3"] .avt { outline-color: #F0ABFC !important; }
body.x_blab .l4c-msg[data-group="4"] .avt { outline-color: #F43F5E !important; }

body.x_blab .l4c-msg.is-dj .avt {
  outline-color: #34d399 !important;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.45) !important;
}

body.x_blab .l4c-msg-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 0.4rem;
  margin: 0 0 0.02rem;
  line-height: 1.2;
}

body.x_blab .l4c-msg-menu {
  position: absolute !important;
  top: -0.85rem;
  right: 0.75rem;
  left: auto !important;
  width: auto !important;
  margin: 0 !important;
  display: none !important;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
  z-index: 6;
  background: #1e1f22;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  padding: 0.12rem;
  /* nigdy nie wchodzi do siatki wiadomości */
  grid-column: unset !important;
  grid-row: unset !important;
}

body.x_blab .l4c-msg-reacts {
  display: inline-flex;
  align-items: center;
  gap: 0.05rem;
}

body.x_blab .l4c-msg-react {
  appearance: none;
  border: 0;
  background: transparent;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.35rem;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.12s ease, transform 0.12s ease;
}

body.x_blab .l4c-msg-react:hover {
  background: rgba(79, 84, 92, 0.55);
  transform: scale(1.12);
}

body.x_blab .l4c-msg-menu-sep {
  display: inline-block;
  width: 1px;
  height: 1.15rem;
  margin: 0 0.15rem;
  background: rgba(255, 255, 255, 0.12);
}

body.x_blab .l4c-msg-menu-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background-color: rgba(51, 65, 85, 0.85);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e2e8f0'><circle cx='6' cy='12' r='1.8'/><circle cx='12' cy='12' r='1.8'/><circle cx='18' cy='12' r='1.8'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  color: transparent;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.45rem;
  line-height: 1;
  font-size: 0;
  cursor: pointer;
  padding: 0;
  opacity: 1;
  transition: background-color 0.15s var(--l4c-ease), transform 0.12s var(--l4c-ease);
}

body.x_blab .l4c-msg:hover .l4c-msg-menu,
body.x_blab .l4c-msg-menu:focus-within {
  display: inline-flex !important;
}

body.x_blab .l4c-msg-menu.l4c-menu-force-hide {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.x_blab .l4c-msg:hover .l4c-msg-menu-btn,
body.x_blab .l4c-msg-menu-btn:focus-visible,
body.x_blab .l4c-msg-menu:focus-within .l4c-msg-menu-btn {
  opacity: 1;
  color: transparent;
  background-color: transparent;
}

body.x_blab .l4c-msg-menu-btn:hover {
  background-color: rgba(79, 84, 92, 0.55) !important;
}

body.x_blab .l4c-msg-menu-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  min-width: 8.5rem;
  padding: 0.3rem;
  border-radius: 0.65rem;
  background: #0f172a;
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.x_blab .l4c-msg-menu-list[hidden] {
  display: none !important;
}

body.x_blab .l4c-msg-menu-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: 0.45rem;
  cursor: pointer;
  white-space: nowrap;
}

body.x_blab .l4c-msg-menu-item:hover {
  background: rgba(99, 102, 241, 0.18);
}

body.x_blab .l4c-msg-menu-danger {
  color: #fda4af;
}

body.x_blab .l4c-msg-menu-danger:hover {
  background: rgba(239, 68, 68, 0.16);
}

body.x_blab .l4c-msg-removed {
  display: none !important;
}

/* Delete message modal */
.l4c-del-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.l4c-del-overlay[hidden] {
  display: none !important;
}

.l4c-del-modal {
  position: relative;
  width: min(440px, 100%);
  padding: 1.15rem 1.2rem 1.1rem;
  border-radius: 1rem;
  background: #111827;
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: #e2e8f0;
  font-family: var(--l4c-font, Outfit, sans-serif);
}

.l4c-del-x {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #94a3b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.l4c-del-x:hover {
  background: rgba(51, 65, 85, 0.55);
  color: #f8fafc;
}

.l4c-del-modal h3 {
  margin: 0 2rem 0.45rem 0;
  font-family: var(--l4c-display, Syne, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.l4c-del-q {
  margin: 0 0 0.85rem;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.4;
}

.l4c-del-preview {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(51, 65, 85, 0.8);
}

.l4c-del-preview img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(148, 163, 184, 0.25);
}

.l4c-del-preview-body {
  min-width: 0;
  flex: 1;
}

.l4c-del-preview-head {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.l4c-del-preview-name {
  font-weight: 700;
  color: #86efac;
  font-size: 0.9rem;
}

.l4c-del-preview-time {
  color: #64748b;
  font-size: 0.72rem;
}

.l4c-del-preview-text {
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
  max-height: 4.5rem;
  overflow: hidden;
}

.l4c-del-tip {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.45;
}

.l4c-del-tip span {
  color: #6ee7b7;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.l4c-del-tip b {
  color: #e2e8f0;
}

.l4c-del-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.l4c-del-cancel,
.l4c-del-confirm {
  appearance: none;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 5.5rem;
}

.l4c-del-cancel {
  background: transparent;
  color: #e2e8f0;
}

.l4c-del-cancel:hover {
  background: rgba(51, 65, 85, 0.55);
}

.l4c-del-confirm {
  background: #ef4444;
  color: #fff;
}

.l4c-del-confirm:hover {
  background: #dc2626;
}

body.x_blab .chat_area_time {
  color: #949ba4 !important;
  font-size: 0.68rem !important;
  font-weight: 500;
  opacity: 1 !important;
  margin-left: 0.15rem;
}

body.x_blab .l4c-msg .chat_area_user {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

.l4c-acp-panel {
  display: block;
  width: 90%;
  margin: 18px auto 8px;
  height: 46px;
  border: 0;
  border-radius: 0.7rem;
  background: var(--l4c-indigo);
  color: #fff;
  font-family: var(--l4c-font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.28);
  transition: background-color 0.18s var(--l4c-ease), transform 0.18s var(--l4c-ease);
}

.l4c-acp-panel:hover {
  background: var(--l4c-indigo-hover);
  transform: translateY(-1px);
}

.status1 { background-color: #22c55e !important; } /* Dostępny */
.status2 { background-color: #eab308 !important; } /* Zaraz wracam */
.status3 { background-color: #f0abfc !important; box-shadow: 0 0 10px rgba(240, 171, 252, 0.55); } /* Zajęty — niespodzianka */
.status4 { background-color: #94a3b8 !important; } /* Niedostępny */
.status5 { background-color: #ef4444 !important; } /* Nie przeszkadzać */

.spinner .bounce1,
.spinner .bounce2,
.spinner .bounce3 {
  background-color: var(--l4c-indigo) !important;
}

@media (max-width: 640px) {
  body.l4c-auth #middps {
    padding: 1.6rem 1.25rem 1.35rem !important;
  }
  body.x_blab .msg,
  body.x_blab .l4c-msg {
    padding: 0.2rem 0.65rem;
  }
  body.x_blab .l4c-welcome {
    margin-right: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .l4c-orbs::before,
  .l4c-orbs::after,
  body.l4c-auth #middps,
  body.x_blab .msg,
  body.x_blab .l4c-msg {
    animation: none !important;
  }
}

/* Rank badges */
body.x_blab .l4c-rank-badge {
  display: inline-flex;
  align-items: center;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(15, 23, 42, 0.55);
  font-family: var(--l4c-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  opacity: 0.92;
  vertical-align: middle;
  flex-shrink: 1;
}

body.x_blab .single_online_user .l4c-rank-badge {
  margin-left: 0.1rem;
  max-width: 5.5rem;
  flex: 0 1 auto;
}

body.x_blab .l4c-dj-pill,
body.x_blab .l4c-vip-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.2rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-family: var(--l4c-font);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-style: normal;
  line-height: 1.2;
  vertical-align: middle;
}

body.x_blab .l4c-dj-pill {
  color: #042f2e;
  background: linear-gradient(180deg, #6ee7b7, #34d399);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.35);
}

body.x_blab .l4c-vip-pill {
  color: #422006;
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
}

body.x_blab .single_online_user.is-dj {
  background: rgba(16, 185, 129, 0.12);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.28);
}

body.x_blab .single_online_user.is-staff .l4c-rank-badge {
  opacity: 1;
}

/* VIP room + settings */
body.x_blab .panel_room.l4c-room-vip {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), transparent 55%);
}

body.x_blab .l4c-vip-box {
  width: 90%;
  margin: 0.75rem auto 0;
  padding: 0.85rem 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.28), rgba(15, 23, 42, 0.75));
  box-sizing: border-box;
}

body.x_blab .l4c-vip-head {
  font-family: var(--l4c-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fcd34d;
  margin-bottom: 0.35rem;
}

body.x_blab .l4c-vip-hint {
  margin: 0 0 0.65rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.4;
}

body.x_blab .l4c-vip-box textarea,
body.x_blab .l4c-vip-box #vipcodeapply {
  width: 100% !important;
  box-sizing: border-box;
}

/* Schedule modal */
.l4c-sched-modal {
  width: min(480px, 100%);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
}

.l4c-sched-sub {
  margin-bottom: 0.75rem !important;
}

.l4c-sched-list {
  overflow: auto;
  max-height: min(58vh, 480px);
  margin: 0 -0.15rem;
  padding: 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.l4c-sched-day {
  margin-top: 0.45rem;
  padding: 0.2rem 0.35rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.l4c-sched-item {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.55);
}

.l4c-sched-item.is-live {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(6, 78, 59, 0.28);
}

.l4c-sched-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c7d2fe;
  line-height: 1.3;
}

.l4c-sched-item.is-live .l4c-sched-time span {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
  background: #34d399;
  color: #042f2e;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.l4c-sched-body strong {
  display: block;
  color: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.l4c-sched-body em {
  display: block;
  margin-top: 0.15rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-style: normal;
}

.l4c-sched-empty {
  padding: 1.2rem 0.5rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ===== Visual polish pack ===== */
body.x_blab #panel_left {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(2, 6, 23, 0.96)) !important;
  border-right: 1px solid rgba(51, 65, 85, 0.7) !important;
}

body.x_blab #panel_left .panel_title {
  margin-left: 4% !important;
  margin-right: 4% !important;
  width: auto !important;
}

.l4c-chat-brand:not(.is-live):not(.is-next) .l4c-onair {
  border-style: dashed;
  opacity: 0.92;
}

.l4c-chat-brand:not(.is-live):not(.is-next) .l4c-onair-name {
  color: #94a3b8;
}

body.x_blab .l4c-del-modal,
body.x_blab .l4c-sched-modal,
body.x_blab .l4c-vip-box {
  border-color: rgba(99, 102, 241, 0.22);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 18, 32, 0.96));
}

body.x_blab #user_buttons span,
body.x_blab #user_buttons .x_circle {
  transition: transform 0.14s var(--l4c-ease), background-color 0.18s var(--l4c-ease);
}

body.x_blab #user_buttons .x_circle:hover {
  transform: scale(1.06);
}

body.x_blab .l4c-msg.is-dj {
  border-color: rgba(52, 211, 153, 0.35);
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(52, 211, 153, 0.1), transparent 55%),
    rgba(15, 23, 42, 0.82);
}

body.x_blab #curr_status_ico {
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.95);
}

@media (max-width: 720px) {
  body.x_blab .single_online_user {
    min-height: 48px;
    padding: 9px 10px !important;
    margin: 3px 6px !important;
  }
  body.x_blab .l4c-ava-wrap {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    flex-basis: 38px !important;
  }
  body.x_blab .single_online_user img,
  body.x_blab .l4c-ava-wrap img {
    width: 100% !important;
    height: 100% !important;
  }
  /* 32px + stare margin:5px wyjeżdżało poza pasek 40px — trzymaj w środku */
  body.x_blab #toprght {
    height: 40px !important;
    top: 0 !important;
    align-items: center !important;
  }
  body.x_blab #toprght div,
  body.x_blab #toprght > .l4c-open-tab {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    margin: 0 !important;
    align-self: center !important;
  }
  body.x_blab .l4c-welcome {
    margin-right: 0.35rem;
    padding: 1rem;
  }
  body.x_blab .l4c-welcome strong {
    font-size: 1.12rem;
  }
  body.x_blab #statuses {
    min-width: 10.5rem;
  }
}

@media (max-width: 480px) {
  body.x_blab #bottom_smile {
    width: 44px !important;
    height: 40px !important;
  }
  body.x_blab #bottom_send {
    width: 52px !important;
    height: 40px !important;
  }
  body.x_blab #bottom_middle,
  body.x_blab #bottom_middle textarea {
    height: 40px !important;
    line-height: 40px !important;
  }
  body.x_blab #bot_area,
  body.x_blab #bot2area {
    height: 56px !important;
  }
  body.x_blab #chat_area {
    bottom: 56px !important;
  }
  body.x_blab .l4c-rank-badge {
    max-width: 5.5rem;
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.x_blab .l4c-welcome-kicker::before,
  .l4c-onair-dot {
    animation: none !important;
  }
  body.x_blab .single_online_user:hover,
  body.x_blab .panel_room:hover,
  body.x_blab .panel_button:hover {
    transform: none;
  }
}

/* ===== Extra features UI ===== */
.l4c-reacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.45rem;
}

.l4c-react-btn {
  appearance: none;
  border: 1px solid rgba(51, 65, 85, 0.75);
  background: rgba(2, 6, 23, 0.45);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.15s var(--l4c-ease), border-color 0.15s var(--l4c-ease);
}

.l4c-react-btn span {
  margin-left: 0.2rem;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.7rem;
}

.l4c-msg-react-more {
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: #dbdee1 !important;
}

.l4c-react-btn.is-on {
  border-color: rgba(88, 101, 242, 0.65);
  background: rgba(88, 101, 242, 0.22);
}

.l4c-react-tip {
  position: fixed;
  z-index: 16000;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: min(280px, calc(100vw - 16px));
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: #dbdee1;
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none;
}

.l4c-react-tip[hidden] {
  display: none !important;
}

.l4c-react-tip-emoji {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.l4c-react-tip-txt {
  min-width: 0;
  word-break: break-word;
}

.l4c-react-tip-txt i {
  font-style: italic;
  color: #f2f3f5;
  font-weight: 600;
}

.l4c-react-picker {
  position: absolute;
  z-index: 14000;
  width: 220px;
  padding: 0.45rem;
  border-radius: 0.75rem;
  background: #1e1f22;
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.l4c-react-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.2rem;
}

.l4c-react-picker-btn {
  appearance: none;
  border: 0;
  background: transparent;
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.12s ease, transform 0.12s ease;
}

.l4c-react-picker-btn:hover {
  background: rgba(79, 84, 92, 0.55);
  transform: scale(1.15);
}


mark.l4c-mention,
body.x_blab .m_hlight,
body.x_blab .u_hlight,
body.x_blab .l4c-mention-me {
  display: inline !important;
  background: rgba(88, 101, 242, 0.3) !important;
  color: #dee0fc !important;
  border-radius: 0.25rem;
  padding: 0 0.2rem !important;
  margin: 0 !important;
  font-weight: 600 !important;
  font-size: inherit !important;
  font-variant: normal !important;
  line-height: inherit !important;
  vertical-align: baseline;
}

body.x_blab .l4c-msg:has(.l4c-mention),
body.x_blab .l4c-msg:has(.m_hlight),
body.x_blab .l4c-msg:has(.l4c-mention-me) {
  background: rgba(88, 101, 242, 0.12);
  box-shadow: inset 2px 0 0 #f0b232;
}

.l4c-reacts {
  margin-top: 0.25rem;
}

body.x_blab .l4c-msg .l4c-reacts {
  opacity: 0.92;
}

body.x_blab .l4c-msg.is-grouped + .l4c-msg:not(.is-grouped),
body.x_blab .l4c-msg:not(.is-grouped) {
  margin-top: 0.55rem !important;
  padding-top: 0.15rem;
  padding-bottom: 0.12rem;
}

.l4c-sys-welcome {
  clear: both;
  margin: 0.35rem 0.5rem 0.85rem;
  padding: 0.65rem 0.85rem;
  max-width: 28rem;
  border-radius: 0.75rem;
  background: rgba(79, 70, 229, 0.12);
  border: 1px dashed rgba(129, 140, 248, 0.35);
  color: #cbd5e1;
  font-size: 0.86rem;
  line-height: 1.4;
}

.l4c-slowmode {
  position: absolute;
  left: 48px;
  right: 68px;
  bottom: 50px;
  padding: 0.28rem 0.55rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  z-index: 40;
}

body.x_blab #bot_area {
  position: fixed;
}

body.x_blab #bottom_middle {
  background: #383a40 !important;
  border-radius: 0 !important;
}

body.x_blab #bottom_middle textarea,
body.x_blab #text_input {
  display: block !important;
  width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  background: #383a40 !important;
  color: #f8fafc !important;
  caret-color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.l4c-hover-card {
  display: none !important;
}

.l4c-hover-top {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.l4c-hover-top img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(148, 163, 184, 0.35);
  flex-shrink: 0;
}

.l4c-hover-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.l4c-hover-top strong {
  display: block;
  font-family: var(--l4c-display);
  font-size: 0.95rem;
  line-height: 1.2;
}

.l4c-hover-motto {
  color: #b5bac1;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l4c-hover-motto[hidden] {
  display: none !important;
}

.l4c-hover-role,
.l4c-hover-top em {
  display: block;
  font-style: normal;
  color: #94a3b8;
  font-size: 0.72rem;
  margin-top: 0.05rem;
}

.l4c-hover-open {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.45rem 0.6rem;
  background: var(--l4c-indigo);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.l4c-act-badge {
  display: inline-flex;
  margin-left: 0.2rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
  font-size: 0.58rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.03em;
}

.l4c-vip-box.is-active {
  border-color: rgba(52, 211, 153, 0.4);
}

.l4c-vip-status {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #a7f3d0;
  font-size: 0.8rem;
}

/* iframe embed on life4club.pl */
html.l4c-embed,
body.l4c-embed {
  background-attachment: scroll !important;
}

body.l4c-embed .l4c-chat-logo-fixed {
  display: none;
}

body.l4c-embed .l4c-welcome {
  max-width: 100%;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  padding: 0.7rem 0.75rem 0.65rem;
}

body.l4c-embed #toprght .svg_admn,
body.l4c-embed #toprght #online_map {
  display: none !important;
}

body.l4c-embed .l4c-top-left {
  right: 7.5rem;
}

/* Przycisk: otwórz pełny chat w nowej karcie */
.l4c-open-tab {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: auto !important;
  min-width: 30px;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 0.55rem !important;
  align-self: center !important;
  box-sizing: border-box !important;
  border: 0;
  border-radius: 0.55rem !important;
  background: rgba(0, 168, 252, 0.16) !important;
  color: #5ec4ff !important;
  cursor: pointer;
  font: 600 0.72rem/1 Outfit, system-ui, sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.l4c-open-tab span {
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 700;
}
.l4c-open-tab em {
  font-style: normal;
}
.l4c-open-tab:hover {
  background: rgba(0, 168, 252, 0.28) !important;
  color: #9bdfff !important;
}
body:not(.l4c-embed) .l4c-open-tab {
  display: none !important;
}

/* Kompakt / embed — ten sam pasek 40px, ikony wyśrodkowane (bez wyjeżdżania) */
body.l4c-embed .top_area,
body.l4c-embed-compact .top_area {
  height: 40px !important;
  line-height: 40px !important;
  top: 0 !important;
}
body.l4c-embed #toprght,
body.l4c-embed-compact #toprght {
  position: fixed !important;
  top: 0 !important;
  right: 4px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 2px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.2rem !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
body.l4c-embed #toprght > div,
body.l4c-embed #toprght > .l4c-open-tab,
body.l4c-embed-compact #toprght > div,
body.l4c-embed-compact #toprght > .l4c-open-tab {
  margin: 0 !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  align-self: center !important;
  box-sizing: border-box !important;
}
body.l4c-embed .l4c-open-tab,
body.l4c-embed-compact .l4c-open-tab {
  padding: 0 !important;
}
body.l4c-embed .l4c-top-left,
body.l4c-embed-compact .l4c-top-left {
  height: 40px !important;
  align-items: center !important;
}
body.l4c-embed #chat_area,
body.l4c-embed-compact #chat_area {
  top: 40px !important;
  bottom: 64px !important;
  left: 0 !important;
  padding: 0 2px 12px 4px !important;
}
body.l4c-embed #chat_area.l4c-composer-up,
body.l4c-embed-compact #chat_area.l4c-composer-up {
  bottom: 118px !important;
}
body.l4c-embed-compact #bot_area,
body.l4c-embed-compact #bot2area,
body.l4c-embed #bot_area,
body.l4c-embed #bot2area {
  height: 64px !important;
}
body.l4c-embed #l4c-composer-meta,
body.l4c-embed-compact #l4c-composer-meta {
  bottom: 64px !important;
}
body.l4c-embed .online_users1,
body.l4c-embed .online_users2,
body.l4c-embed-compact .online_users1,
body.l4c-embed-compact .online_users2 {
  top: 40px !important;
  bottom: 0 !important;
  right: 0 !important;
  z-index: 35;
}
body.l4c-embed-compact .online_users1,
body.l4c-embed-compact .online_users2 {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
  border-left: 1px solid rgba(51, 65, 85, 0.55);
}
body.l4c-embed-compact .l4c-chat-brand {
  transform: scale(0.92);
  transform-origin: left center;
  max-width: min(52vw, 220px);
}
body.l4c-embed-compact .l4c-onair-meta {
  display: none !important;
}
body.l4c-embed-compact .l4c-msg {
  padding-top: 0.08rem !important;
  padding-bottom: 0.08rem !important;
}
body.l4c-embed-compact .l4c-msg.is-grouped {
  padding-top: 0.02rem !important;
  padding-bottom: 0.02rem !important;
}
body.l4c-embed-compact .l4c-msg .avt {
  width: 32px !important;
  height: 32px !important;
}
body.l4c-embed-compact .l4c-msg-text {
  font-size: 0.92rem !important;
  line-height: 1.25 !important;
}
body.l4c-embed-compact .l4c-welcome {
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}
body.l4c-embed-compact .l4c-open-tab em {
  display: none;
}
body.l4c-embed-compact .l4c-open-tab {
  width: 30px !important;
  padding: 0 !important;
}

@media (max-height: 560px) {
  body.l4c-embed-compact .l4c-welcome {
    display: none;
  }
  body.l4c-embed-compact .l4c-sys-welcome {
    display: none;
  }
}

/* ===== Discord UX: composer / reply / typing / unread ===== */
#l4c-composer-meta {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 64px;
  z-index: 41;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  pointer-events: none;
}

body.x_blab #l4c-composer-meta > * {
  pointer-events: auto;
}

.l4c-reply-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem 0.45rem 0.75rem;
  border-radius: 0.65rem 0.65rem 0 0;
  background: #1e1f22;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: 0;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.25);
}

.l4c-reply-bar[hidden] { display: none !important; }

.l4c-reply-bar-body {
  flex: 1;
  min-width: 0;
  border-left: 3px solid #5865f2;
  padding-left: 0.55rem;
}

.l4c-reply-bar-body em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: #949ba4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.l4c-reply-bar-body strong {
  color: #c9cdfb;
  font-size: 0.82rem;
  margin-right: 0.35rem;
}

.l4c-reply-bar-body span {
  color: #b5bac1;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l4c-reply-bar-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b5bac1;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.35rem;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.l4c-reply-bar-x:hover { background: rgba(79, 84, 92, 0.45); color: #fff; }

.l4c-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.88);
  color: #b5bac1;
  font-size: 0.78rem;
  font-weight: 600;
}

.l4c-typing[hidden] { display: none !important; }

.l4c-typing-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.l4c-typing-dots b {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #b5bac1;
  animation: l4c-typing-bounce 1.2s ease-in-out infinite;
}
.l4c-typing-dots b:nth-child(2) { animation-delay: 0.15s; }
.l4c-typing-dots b:nth-child(3) { animation-delay: 0.3s; }
@keyframes l4c-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.l4c-reply-ref {
  display: block;
  margin: 0 0 0.12rem;
  padding: 0.05rem 0 0.05rem 0.55rem;
  border-left: 3px solid #5865f2;
  color: #b5bac1;
  font-size: 0.82rem;
  line-height: 1.2;
  max-width: 36rem;
}
.l4c-reply-ref strong {
  display: block;
  color: #c9cdfb;
  font-size: 0.78rem;
  margin-bottom: 0.02rem;
}
.l4c-reply-ref span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Stare wiadomości z [br] po reply — bez dziury */
body.x_blab .l4c-msg-text > .l4c-reply-ref + br {
  display: none !important;
  margin: 0 !important;
  content: none !important;
}
.l4c-reply-editing {
  margin-bottom: 0.35rem;
}

.l4c-unread-sep {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.65rem 1rem;
  color: #f23f43;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  user-select: none;
}
.l4c-unread-sep::before,
.l4c-unread-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #f23f43;
  opacity: 0.85;
}

.l4c-date-sep {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 1rem 0.55rem;
  color: #949ba4;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.l4c-date-sep::before,
.l4c-date-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(78, 80, 88, 0.85);
}
.l4c-date-sep span {
  white-space: nowrap;
  padding: 0 0.15rem;
}

.l4c-hist-more {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.75rem 1rem 0.35rem;
  cursor: pointer;
  user-select: none;
}
.l4c-hist-more span {
  color: #00a8fc;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 1rem;
  background: rgba(0, 168, 252, 0.08);
  transition: background 0.15s ease, color 0.15s ease;
}
.l4c-hist-more:hover span {
  background: rgba(0, 168, 252, 0.16);
  color: #5ec4ff;
}

/* Szerokość listy online — 0 gdy zamknięta; toggle class na body = natychmiastowy layout */
body.x_blab {
  --l4c-online-w: 0px;
}
body.x_blab.l4c-online-open {
  --l4c-online-w: min(240px, 26vw);
}
body.x_blab.l4c-embed-compact.l4c-online-open,
body.l4c-embed-compact.l4c-online-open {
  --l4c-online-w: 160px;
}
@media (max-width: 400px) {
  body.x_blab.l4c-online-open {
    --l4c-online-w: min(240px, 40vw);
  }
}

body.x_blab #chat_area {
  width: calc(100% - var(--l4c-online-w)) !important;
  max-width: calc(100% - var(--l4c-online-w)) !important;
}

body.x_blab #bot_area,
body.x_blab #bot2area {
  left: 0 !important;
  right: var(--l4c-online-w) !important;
  width: auto !important;
}

body.x_blab #bottom_smile,
body.x_blab #bottom_middle,
body.x_blab #bottom_send {
  bottom: 10px !important;
  position: fixed !important;
  z-index: 42 !important;
  /* bez transition na left/right — inaczej „opóźnienie” przy toggle listy */
  transition: background-color 0.18s var(--l4c-ease) !important;
}

body.x_blab #bottom_smile {
  left: 10px !important;
  right: auto !important;
}

body.x_blab #bottom_middle {
  left: 58px !important;
  right: calc(var(--l4c-online-w) + 70px) !important;
}

body.x_blab #bottom_send {
  right: calc(var(--l4c-online-w) + 10px) !important;
  left: auto !important;
}

body.x_blab #l4c-composer-meta {
  left: 10px !important;
  right: calc(var(--l4c-online-w) + 10px) !important;
}

body.x_blab #autoscroll {
  right: calc(var(--l4c-online-w) + 16px) !important;
  left: auto !important;
}

body.x_blab #bottom_smile {
  width: 48px !important;
  height: 44px !important;
  border-radius: 12px 0 0 12px !important;
  background-color: #383a40 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  background-size: 42% !important;
  background-position: center !important;
}

body.x_blab #bottom_middle {
  height: 44px !important;
  background: #383a40 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

body.x_blab #bottom_middle textarea {
  background: #383a40 !important;
  box-shadow: none !important;
  color: #dbdee1 !important;
  caret-color: #fff !important;
  height: 44px !important;
  line-height: 44px !important;
  border-radius: 0 !important;
}

body.x_blab #bottom_middle textarea:focus {
  background: #383a40 !important;
  box-shadow: none !important;
}

body.x_blab #bottom_middle textarea::placeholder {
  color: #6d6f78 !important;
}

body.x_blab #bottom_send {
  width: 60px !important;
  height: 44px !important;
  border-radius: 0 12px 12px 0 !important;
  background-color: #383a40 !important;
  background-size: 42% !important;
  background-position: center !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

body.x_blab #bottom_send:hover {
  background-color: #404249 !important;
}

body.x_blab #bottom_smile:hover {
  background-color: #404249 !important;
}

/* Pas dolny — przezroczysty; widoczny jest zaokrąglony composer */
body.x_blab #bot_area,
body.x_blab #bot2area {
  height: 64px !important;
  z-index: 30 !important;
  background: transparent !important;
  border-top: none !important;
  box-shadow: none !important;
}

body.x_blab #chat_area {
  bottom: 64px !important;
  left: 0 !important;
  width: calc(100% - var(--l4c-online-w, 0px)) !important;
  max-width: calc(100% - var(--l4c-online-w, 0px)) !important;
  padding-bottom: 12px !important;
  padding-left: 0 !important;
  box-sizing: border-box !important;
}

body.x_blab #chat_area.l4c-composer-up {
  bottom: 118px !important;
}

#l4c-composer-meta {
  bottom: 64px !important;
  z-index: 41 !important;
}

.l4c-edited {
  color: #949ba4 !important;
  font-size: 0.65rem !important;
  font-style: italic !important;
  font-weight: 500 !important;
  margin-left: 0.2rem;
  opacity: 0.9;
}

.l4c-edit-box {
  margin-top: 0.25rem;
  width: 100%;
  max-width: 36rem;
}

.l4c-edit-ta {
  display: block;
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(88, 101, 242, 0.45);
  background: #1e1f22;
  color: #dbdee1;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
}

.l4c-edit-ta:focus {
  outline: none;
  border-color: #5865f2;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.25);
}

.l4c-edit-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.l4c-edit-save,
.l4c-edit-cancel {
  appearance: none;
  border: 0;
  border-radius: 0.4rem;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.l4c-edit-save {
  background: #5865f2;
  color: #fff;
}
.l4c-edit-save:hover { background: #4752c4; }

.l4c-edit-cancel {
  background: transparent;
  color: #b5bac1;
}
.l4c-edit-cancel:hover { background: rgba(79, 84, 92, 0.45); color: #fff; }

.l4c-edit-actions small {
  color: #949ba4;
  font-size: 0.7rem;
}


