/* css custom dont remove*/
.king-body-in{padding-top:0px!important;}
.king-main.one-page .king-inner{background-color: #ffffff00;padding: 0px 0px!important;}
.king-main.one-page {margin: 0px auto 0px!important;}
.king-template-plugin king-category- king-ltr king-body-js-on{background-color: #000000!important;}
.king-headerf{display:none;}
/* Chat Container */
.chat-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  margin: 0;
  display: flex;
  z-index: 9999;
  flex-direction: row;
  /* Previne interacțiunea cu elementele din spate */
  pointer-events: auto;
   opacity: 0;
  transform: scale(0.98);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-container.active {
  opacity: 1;
  transform: scale(1);
}
/* Overlay întunecat pentru chat fullscreen */
.chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85); /* Fundal întunecat */
  z-index: 9998; /* Sub chat, dar peste tot restul site-ului */
  backdrop-filter: blur(3px); /* Efect blur elegant (opțional) */
  -webkit-backdrop-filter: blur(3px);
  display: none; /* Ascuns inițial */
}

.chat-overlay.active {
  display: block;
}
.message {
	display: block !important;
	opacity: 1 !important;
}
/* Sidebar Utilizatori */
/* Nume + badge pe aceeași linie în sidebar */
.user-name-with-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
/* Badge de rank sub nume în mesaje */
.qa-chat-item-rank {
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.qa-chat-item-rank .rank-badge {
    font-size: 10px;
    padding:0px 8px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.qa-chat-item-rank .rank-badge i {
    font-size: 9px !important;
}

.qa-chat-item-rank .rank-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.user-name-with-badge h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.user-name-with-badge .rank-badge {
    flex-shrink: 0;
    margin: 0;
}

/* Badge de rank în sidebar */
.user-item .rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 0px 8px;
    height:15px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 4px;
    transition: all 0.2s ease;
}

.user-item .rank-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.user-item .rank-badge i {
    font-size: 9px !important;
}
/* ✅ Emoji din imagini */
.chat-emoji {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 2px;
    image-rendering: -webkit-optimize-contrast;
}
/* Sidebar Utilizatori */
.sidebar-users {
  width: 300px;
  background: linear-gradient(135deg, #2c2f33 0%, #1a1c1f 100%);
  color: white;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  z-index: 10;
}

.sidebar-users.active {
  transform: translateX(0);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #3a3f44;
}

.sidebar-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 12px;
  color: #aaa;
  font-size: 14px;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 15px 10px 35px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  outline: none;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #aaa;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 15px 0;
  scrollbar-width: thin;
  scrollbar-color: #7289da rgba(255,255,255,0.1);
}

.sidebar-content::-webkit-scrollbar {
  width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: #7289da;
  border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: #5865f2;
}

.users-section {
  margin-bottom: 20px;
}
/* Mesaj de tip "notificare sistem" */
.message.system-notice {
    background: linear-gradient(135deg, #2c2f33, #1a1c1f);
    color: #7289da;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(114, 137, 218, 0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 16px auto;
    max-width: 80%;
    font-size: 14px;
    animation: pulse 1.5s ease-in-out, highlight 3s ease-in-out;
}

@keyframes highlight {
    0% { background-color: rgba(114, 137, 218, 0.2); }
    100% { background-color: transparent; }
}
/* ===== Overlay login pentru non-logați ===== */
.chat-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: pointer;
 
}

.login-prompt {
    background: #2c2f33;
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 400px;
    animation: fadeInUp 0.5s ease;
}

.login-prompt h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-prompt p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.login-btn {
    background: linear-gradient(135deg, #7289da, #5865f2);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
    background: linear-gradient(135deg, #6a77ff, #4d5bd9);
}

.login-btn:active {
    transform: translateY(0);
}

/* Blur pentru restul chatului */
.blurred {
    filter: blur(4px) saturate(0.8);
    pointer-events: none;
    user-select: none;
    opacity: 0.7;
}

/* Animație mică */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px 10px 15px;
  border-bottom: 1px solid #3a3f44;
  margin-bottom: 10px;
}

.section-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7289da;
}

.section-count {
  background: #7289da;
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.users-list {
  padding: 0 10px;
}

.user-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.05);
  transition: all 0.2s ease;
  position: relative;
}

.user-item:hover {
  background: rgba(114, 137, 218, 0.1);
  transform: translateX(4px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left-color: #7289da;
}

.user-item.admin {
  border-left: 3px solid #ff9800;
}

.user-item.online {
  border-left: 3px solid #4caf50;
}

.user-item.away {
  border-left: 3px solid #ff9800;
}

.user-item.offline {
  border-left: 3px solid #f44336;
  opacity: 0.7;
}

.user-avatar {
  position: relative;
  margin-right: 12px;
  flex-shrink: 0;
}

.user-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #7289da;
  object-fit: cover;
}

.user-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #2c2f33;
}

.user-avatar.online::after {
  background: #4caf50;
}

.user-avatar.away::after {
  background: #ff9800;
}

.user-avatar.offline::after {
  background: #f44336;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status {
  font-size: 11px;
  color: #aaa;
  margin: 0 0 2px 0;
}

.user-rank {
  font-size: 10px;
  color: #7289da;
  font-weight: 600;
  margin: 0;
}

.points-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  margin-left: auto;
}

.points-badge.gold {
  background: linear-gradient(45deg, #FFD700, #FFA500);
  color: #000;
}

.points-badge.silver {
  background: linear-gradient(45deg, #C0C0C0, #A9A9A9);
  color: #000;
}

.points-badge.bronze {
  background: linear-gradient(45deg, #CD7F32, #A0522D);
  color: #fff;
}

.points-badge.basic {
  background: linear-gradient(45deg, #4A90E2, #357ABD);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 10px;
  min-width: 40px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.points-badge.basic i {
  margin-right: 3px;
}

.points-badge.basic span {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.points-badge i {
  font-size: 8px;
}

.points-badge span {
  font-size: 10px;
  font-weight: 600;
}
/* Badge de puncte în mesaje */
.qa-chat-item-who .points-badge {
    font-size: 10px !important;
    padding: 2px 6px !important;
    margin-left: 6px;
    vertical-align: middle;
    height: auto;
    line-height: 1;
}

.qa-chat-item-who .points-badge i {
    font-size: 8px !important;
    margin-right: 3px;
}

.qa-chat-item-who .points-badge span {
    font-size: 10px !important;
    font-weight: 600;
}
.qa-chat-kick {
  background: #f44336;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s;
  white-space: nowrap;
}

.qa-chat-kick:hover {
  background: #d32f2f;
}
/* === Badge de rank lângă nume în mesaje === */
.rank-badge {
    margin-left: 8px;
    font-size: 10px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.rank-badge i {
    font-size: 9px !important;
}

.rank-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
/* Chat Area */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f0f2f5;
  position: relative;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, #40444b 0%, #2c2f33 100%);
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.chat-header-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.chat-header-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  background: #7289da;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #5865f2;
  transform: translateY(-2px);
}

.action-btn#fullscreenBtn {
  background: #5865f2;
}

.action-btn#fullscreenBtn:hover {
  background: #4752c4;
}

/* Mesaje */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.chat-messages-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.message {
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 18px;
  max-width: 70%;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.received {
  background-color: #ffffff;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.message.sent {
  background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.message.qa-chat-service {
    background: #673AB7;
    color: #ffffff;
  text-align: center;
  align-self: center;
  max-width: 80%;
  font-size: 14px;
  font-weight: 500;
}

.qa-chat-item-meta {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.qa-chat-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid #7289da;
  object-fit: cover;
}

.qa-chat-item-who {
  font-weight: 600;
  font-size: 14px;
}

.qa-chat-item-who a {
  color: inherit;
  text-decoration: none;
}

.qa-chat-item-who a:hover {
  text-decoration: underline;
}

.qa-chat-item-data {
  font-size: 15px;
  line-height: 1.4;
}

.message-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 5px;
  text-align: right;
}

/* Search Info */
.search-info {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.clear-search-btn {
  background: #ffc107;
  border: none;
  color: #333;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.clear-search-btn:hover {
  background: #e0a800;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

/* Emoji Picker */
.emoji-picker {
  position: absolute;
  bottom: 70px;
  left: 65px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  padding: 15px;
  display: none;
  z-index: 1000;
  width: 300px;
  max-height: 250px;
  overflow-y: auto;
}

.emoji-picker.active {
  display: block;
}

.emoji-category {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.emoji-item {
  font-size: 20px;
  cursor: pointer;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
  transition: background 0.2s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-item:hover {
  background: #e3e5e8;
  transform: scale(1.15);
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Input Area */
.chat-input-wrapper {
  padding: 15px;
  background: white;
  border-top: 1px solid #e0e0e0;
}

.chat-input {
  display: flex;
  align-items: center;
  background: #f0f2f5;
  border-radius: 25px;
  padding: 5px 15px;
}

.input-action {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #7289da;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.input-action:hover {
  background: #e0e0e0;
}

.qa-chat-post {
  flex: 1;
  padding: 12px 15px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  resize: none;
  max-height: 120px;
  min-height: 20px;
}

.send-btn {
  background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.send-btn:hover {
  background: linear-gradient(135deg, #6a77ff 0%, #4d5bd9 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}

.send-btn:active {
  transform: translateY(0) scale(0.98);
}

.send-btn i {
  font-size: 16px;
}

/* Fullscreen Mode */
.chat-area.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  margin: 0;
  border-radius: 0;
}

.chat-area.fullscreen .chat-container {
  height: 100vh;
  margin: 0;
  border-radius: 0;
}
#toggleBtn:hover {
  background: #6a77ff;
  transform: translateY(-2px) rotate(15deg);
}

#toggleBtn:active {
  transform: translateY(0) rotate(0);
}

/* ===== LOGO ZERG HACKER STYLE ===== */
.zerg-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px auto;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border: 2px solid #00ff41;
    border-radius: 12px;
    box-shadow: 
        0 0 10px #00ff41,
        inset 0 0 15px rgba(0, 255, 65, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zerg-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(0, 255, 65, 0.1), transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.zerg-logo .logo-inner {
    font-size: 28px;
    font-weight: 800;
    color: #00ff41;
    text-shadow: 
        0 0 5px #00ff41,
        0 0 10px #00ff41;
    letter-spacing: -1px;
    background: linear-gradient(45deg, #00ff41, #00cc33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

.zerg-logo:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 
        0 0 20px #00ff41,
        inset 0 0 25px rgba(0, 255, 65, 0.5);
}

/* ===== BUTOANE LOGIN + REGISTER ===== */
.login-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.login-btn {
    background: linear-gradient(135deg, #7289da, #5865f2);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
    background: linear-gradient(135deg, #6a77ff, #4d5bd9);
}

.register-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, #27e77a, #239b56);
}

.login-btn:active,
.register-btn:active {
    transform: translateY(0);
}
/* ===== MATRIX RAIN BACKGROUND ===== */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -100px;
    font-family: 'Courier New', monospace;
    text-align: center;
    animation: fall linear infinite;
    user-select: none;
}

@keyframes fall {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(calc(100vh + 100px)); }
}

/* ===== ZERG LOGO 100x100 ===== */
.zerg-logo {
    width: 100px;
    height: 100px;
    background: rgba(13, 13, 13, 0.95);
    border: 2px solid #00ff41;
    border-radius: 12px;
    box-shadow: 
        0 0 15px rgba(0, 255, 65, 0.5),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 25px auto;
}

.zerg-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(0, 255, 65, 0.1), transparent);
    animation: scan 2.5s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.logo-inner {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(45deg, #00ff41, #00cc33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glitch 3s infinite;
    font-family: 'Courier New', monospace;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

.zerg-logo:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 25px rgba(0, 255, 65, 0.8),
        inset 0 0 30px rgba(0, 255, 65, 0.3);
}

/* Corner brackets */
.zerg-logo .corner-tl,
.zerg-logo .corner-tr,
.zerg-logo .corner-bl,
.zerg-logo .corner-br {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #00ff41;
    border-style: solid;
    z-index: 2;
}

.zerg-logo .corner-tl { top: 3px; left: 3px; border-width: 2px 0 0 2px; }
.zerg-logo .corner-tr { top: 3px; right: 3px; border-width: 2px 2px 0 0; }
.zerg-logo .corner-bl { bottom: 3px; left: 3px; border-width: 0 0 2px 2px; }
.zerg-logo .corner-br { bottom: 3px; right: 3px; border-width: 0 2px 2px 0; }
/* Responsive */
@media (max-width: 768px) {
  .chat-container {
    margin: 0px;
    height: calc(90vh - 5px);
    border-radius: 8px;
  }
  
  .sidebar-users {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    transform: translateX(-100vw); /* ✅ FIX: Acum dispare complet pe mobil */
    transition: transform 0.3s ease;
    z-index: 100;
  }
  
  .sidebar-users.active {
    transform: translateX(0);
  }
  
  .emoji-picker {
    left: 15px;
    width: 280px;
    max-height: 200px;
    bottom: 75px;
  }
  
  .message {
    max-width: 85%;
  }
  
  .chat-header {
    padding: 12px 15px;
  }
  
  .chat-messages {
    padding: 15px;
  }
}

/* Scrollbar styling */
.sidebar-content::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.emoji-picker::-webkit-scrollbar {
  width: 6px;
}

.sidebar-content::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track,
.emoji-picker::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
}

.sidebar-content::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.emoji-picker::-webkit-scrollbar-thumb {
  background: #7289da;
  border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover,
.emoji-picker::-webkit-scrollbar-thumb:hover {
  background: #5865f2;
}

/* Firefox scrollbar */
.sidebar-content,
.chat-messages,
.emoji-picker {
  scrollbar-width: thin;
  scrollbar-color: #7289da rgba(255,255,255,0.1);
}

/* Search highlight */
.search-highlight {
  background: #ffeb3b;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}