:root {
  --dark-bg: #0f0f15;
  --darker-bg: #09090e;
}

.comment-section {
  width: 100%;
  padding: 25px;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 70%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.comment-section h2 {
  color: #e0e0ff;
  margin-bottom: 25px;
  font-size: 24px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.comment-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.comment-input {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  padding-bottom: 50px;
  border: 2px solid rgb(79, 5, 159);
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  transition: all 0.3s ease;
  background: rgb(0, 0, 0);
  color: #e0e0ff;
  font-family: inherit;
}

.comment-input:focus {
  outline: none;
  border-color: #7c4dff;
  box-shadow: 0 0 15px rgba(124, 77, 255, 0.3);
}

.edit-comment-input {
  width: 100%;
  min-height: 150px !important;
  padding: 15px;
  padding-bottom: 50px;
  border: 2px solid rgb(79, 5, 159);
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  transition: all 0.3s ease;
  background: rgb(0, 0, 0);
  color: #e0e0ff;
  font-family: inherit;
}

.edit-comment-input:focus {
  outline: none;
  border-color: #7c4dff;
  box-shadow: 0 0 15px rgba(124, 77, 255, 0.3);
}

.comment-input::placeholder {
  color: #8e8eb5;
}

.comment-submit-container {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.comment-submit {
  background: linear-gradient(145deg, #8a2be2, #6a1fc0);
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

.comment-submit:hover {
  background: linear-gradient(145deg, #6a1fc0, #8a2be2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
}

.reply-form {
  position: relative;
  margin-top: 10px;
}

.comment-submit:disabled {
  background: #4a4a7a;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.comment-count {
  color: #8e8eb5;
  font-size: 20px;
  margin-top: 5px;
  margin-bottom: 15px;
  text-align: left;
}

.comment-item {
  display: flex;
  padding: 20px 0;
}

.comment-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.comment-author-time {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: bold;
  color: #c7c7f0;
  font-size: 16px;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  flex-shrink: 0;
  border: 2px solid #313131ff;
}

.comment-content-wrapper {
  flex: 1;
}

.comment-time {
  color: rgb(97, 97, 109);
  font-size: 12px;
}

.comment-content {
  margin-bottom: 0px;
  margin-top: 0px;
  padding: 0;
  line-height: 1.6;
  color: rgb(255, 255, 255);
  font-size: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.comment-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
  margin-top: 0px;
  padding-top: 0px;
}

.like-btn,
.reply-btn,
.show-replies-btn,
.edit-btn,
.delete-btn {
  cursor: pointer;
  font-size: 14px;
  color: rgb(255, 255, 255);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  background: none;
}

.like-btn:hover,
.reply-btn:hover,
.show-replies-btn:hover {
  transform: translateY(-1px);
  color: #7c4dff;
}

.like-btn.liked {
  color: #7c4dff;
}

.show-replies-btn {
  color: #7c4dff;
  font-weight: 500;
}

.edit-btn:hover {
  color: #7c4dff;
}

.delete-btn:hover {
  color: #ff6b6b;
}

.like-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.2s ease;
}

.like-btn.liked .like-icon {
  fill: #7c4dff;
  stroke: #7c4dff;
}

.replies {
  margin-left: 63px;
  padding-left: 15px;
  border-left: 3px solid rgba(124, 77, 255, 0.3);
  border-radius: 0 8px 8px 0;
  display: none;
}

.replies.show {
  display: block;
}

.reply-input-wrapper {
  position: relative;
}

.reply-input {
  width: 100%;
  min-height: 150px;
  padding: 10px;
  padding-bottom: 45px;
  border: 2px solid rgb(79, 5, 159);
  border-radius: 6px;
  font-size: 13px;
  resize: vertical;
  background: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  font-family: inherit;
}

.reply-input:focus {
  outline: none;
  border-color: #7c4dff;
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.3);
}

.reply-input::placeholder {
  color: #8e8eb5;
}

.reply-submit-container {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reply-submit {
  background: linear-gradient(145deg, #8a2be2, #6a1fc0);
  color: white;
  padding: 6px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.reply-submit:hover {
  background: linear-gradient(145deg, #6a1fc0, #8a2be2);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.login-message {
  text-align: center;
  padding: 25px;
  background: #000000;
  border-radius: 12px;
  border: 2px solid rgb(79, 5, 159);
  color: #c7c7f0;
}

.login-message a {
  color: #7c4dff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.login-message a:hover {
  color: #651fff;
  text-decoration: underline;
}

.loading {
  text-align: center;
  padding: 25px;
  color: #8e8eb5;
  font-style: italic;
}

.error {
  color: #ff6b6b;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(220, 53, 69, 0.1) 100%);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.success {
  color: #51cf66;
  background: linear-gradient(135deg, rgba(81, 207, 102, 0.1) 0%, rgba(40, 167, 69, 0.1) 100%);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(81, 207, 102, 0.3);
}

.reply-count {
  color: #8e8eb5;
  font-size: 12px;
  margin-left: 5px;
}

.-input {
  width: 100%;
  min-height: 200px !important;
  padding: 10px;
  background: rgb(0, 0, 0);
  color: white;
  border: 1px solid #4f059f;
  border-radius: 5px;
  resize: vertical;
  margin-bottom: 10px;
}

.rank-badge {
  display: inline-block;
  vertical-align: middle;
  padding: 4px 8px;
  border-radius: 11px;
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  margin-left: 6px;
  user-select: none;
}

.rank-badge.emperor {
  background: linear-gradient(135deg, #aa8000 0%, #8a5c00 50%, #6a4000 100%);
  color: white;
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 6px 12px rgba(255, 165, 0, 0.3);
}

.rank-badge.king {
  background: linear-gradient(135deg, #003366 0%, #002244 50%, #001122 100%);
  color: white;
  border-color: #0066cc;
  box-shadow: 0 0 15px rgba(0, 102, 204, 0.4), 0 6px 12px rgba(0, 68, 153, 0.3);
}

.rank-badge.duke {
  background: linear-gradient(135deg, #770000 0%, #550000 50%, #330000 100%);
  color: white;
  border-color: #cc0000;
  box-shadow: 0 0 15px rgba(204, 0, 0, 0.4), 0 6px 12px rgba(153, 0, 0, 0.3);
}

.rank-badge.marquess {
  background: linear-gradient(135deg, #005500 0%, #003300 50%, #001100 100%);
  color: white;
  border-color: #00aa00;
  box-shadow: 0 0 15px rgba(0, 170, 0, 0.4), 0 6px 12px rgba(0, 119, 0, 0.3);
}

.rank-badge.count {
  background: linear-gradient(135deg, #543618 0%, #432810 50%, #321a08 100%);
  color: white;
  border-color: #8b4513;
  box-shadow: 0 0 15px rgba(139, 69, 19, 0.4), 0 6px 12px rgba(101, 67, 33, 0.3);
}

.rank-badge.viscount {
  background: linear-gradient(135deg, #142424 0%, #0c1818 50%, #040c0c 100%);
  color: white;
  border-color: #2f4f4f;
  box-shadow: 0 0 15px rgba(47, 79, 79, 0.4), 0 6px 12px rgba(28, 48, 48, 0.3);
}

.rank-badge.baron {
  background: linear-gradient(135deg, #2a2255 0%, #1e1940 50%, #12102b 100%);
  color: white;
  border-color: #483d8b;
  box-shadow: 0 0 15px rgba(72, 61, 139, 0.4), 0 6px 12px rgba(54, 43, 102, 0.3);
}

.rank-badge.knight {
  background: linear-gradient(135deg, #32461c 0%, #273d16 50%, #1c3410 100%);
  color: white;
  border-color: #556b2f;
  box-shadow: 0 0 15px rgba(85, 107, 47, 0.4), 0 6px 12px rgba(61, 79, 34, 0.3);
}

.rank-badge.lord {
  background: linear-gradient(135deg, #2a004d 0%, #1e003a 50%, #120027 100%);
  color: white;
  border-color: #4b0082;
  box-shadow: 0 0 15px rgba(75, 0, 130, 0.4), 0 6px 12px rgba(54, 0, 96, 0.3);
}

.rank-badge.soldier {
  background: linear-gradient(135deg, #3a3a3a 0%, #282828 50%, #161616 100%);
  color: white;
  border-color: #696969;
  box-shadow: 0 0 15px rgba(105, 105, 105, 0.4), 0 6px 12px rgba(77, 77, 77, 0.3);
}

.rank-badge.rakyatjelata {
  background: linear-gradient(135deg, #1e1e1e 0%, #121212 50%, #060606 100%);
  color: #ffffff;
  border-color: #444444;
  box-shadow: 0 0 10px rgba(68, 68, 68, 0.3), 0 4px 8px rgba(42, 42, 42, 0.2);
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 11px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 8px rgba(255, 215, 0, 0.3);
  border: 2px solid #dab900;
  background: linear-gradient(135deg, rgba(182, 154, 0, 0.9) 0%, rgba(159, 119, 0, 0.9) 100%);
}

.vip-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.vip-badge:hover::before {
  left: 100%;
}

.vip-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 6px 12px rgba(255, 215, 0, 0.4);
  animation: vip-glow 2s ease-in-out infinite alternate;
}

@keyframes vip-glow {
  from {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 8px rgba(255, 215, 0, 0.3);
  }
  to {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.9), 0 8px 16px rgba(255, 215, 0, 0.5);
  }
}

.vip-icon {
  width: 13px;
  height: 13px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
  .comment-section {
    padding: 12px;
  }

  .comment-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .comment-input {
    min-height: 200px;
    padding: 10px;
    padding-bottom: 40px;
    font-size: 13px;
  }

  .comment-avatar {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }

  .comment-author {
    font-size: 14px;
  }

  .comment-content {
    font-size: 13px;
  }

  .comment-count {
    font-size: 16px;
  }

  .comment-actions {
    gap: 6px;
  }

  .like-btn,
  .reply-btn,
  .show-replies-btn,
  .edit-btn,
  .delete-btn {
    font-size: 12px;
    padding: 4px 8px;
  }

  .replies {
    margin-left: 46px;
  }

  .comment-item.reply .comment-avatar {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .comment-section {
    padding: 10px;
  }

  .comment-input {
    min-height: 200px;
    font-size: 12px;
  }

  .comment-submit {
    padding: 6px 12px;
    font-size: 12px;
  }

  .comment-avatar {
    width: 32px;
    height: 32px;
  }

  .comment-author {
    font-size: 13px;
  }

  .comment-time {
    font-size: 10px;
  }

  .comment-content {
    font-size: 12px;
  }

  .replies {
    margin-left: 42px;
    padding-left: 8px;
  }

  .comment-item.reply .comment-avatar {
    width: 24px;
    height: 24px;
  }

  .rank-badge {
    font-size: 0.55rem;
    padding: 3px 6px;
  }
}

.load-more-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background: linear-gradient(145deg, #8a2be2, #6a1fc0);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.load-more-btn:hover {
  background: linear-gradient(145deg, #6a1fc0, #8a2be2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 77, 255, 0.4);
}

.comment-author.emperor {
  color: #ffd700;
}
.comment-author.king {
  color: #0066cc;
}
.comment-author.duke {
  color: #cc0000;
}
.comment-author.marquess {
  color: #00aa00;
}
.comment-author.count {
  color: #8b4513;
}
.comment-author.viscount {
  color: #2f4f4f;
}
.comment-author.baron {
  color: #483d8b;
}
.comment-author.knight {
  color: #556b2f;
}
.comment-author.lord {
  color: #4b0082;
}
.comment-author.soldier {
  color: #696969;
}
.comment-author.rakyatjelata {
  color: #8e8eb5;
}
.rank-badge.gm {
  background: linear-gradient(135deg, rgb(32, 4, 61) 0%, #330066 100%);
  color: white;
  border-color: #9933ff;
  box-shadow: 0 0 15px rgba(153, 51, 255, 0.6);
}

.comment-author.gm {
  color: #9933ff;
}
.comment-actions-bottom {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-upload-btn {
  background: transparent !important;
  color: #7c4dff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  padding: 0;
}

.image-upload-btn svg,
.reply-upload-image-btn svg {
  filter: none !important;
  backdrop-filter: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.image-upload-btn svg rect,
.image-upload-btn svg circle,
.image-upload-btn svg polyline {
  background: none !important;
}

#image-preview {
  margin-top: 10px;
  display: none;
}

#preview-img {
  max-width: 200px;
  max-height: 200px;
}

#remove-image {
  margin-left: 0px;
  margin-top: 10px;
  color: #ffffffff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8em;
  background-color: #6532b7ff;
}

.comment-content img {
  max-width: 100%;
  max-height: 350px;
  display: block;
  margin-bottom: 10px !important;
}
.comment-content div {
  margin: 0px !important;
  padding: 0px !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

@media (max-width: 768px) {
  .comment-content img {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .comment-content img {
    max-height: 200px;
  }
}
.gif-upload-btn {
  background: transparent !important;
  color: #7c4dff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  padding: 0;
}

.gif-upload-btn svg {
  filter: none !important;
  backdrop-filter: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Modal GIF Search */
.gif-modal {
  display: none;
  position: absolute;
  z-index: 1000;
  background: var(--darker-bg);
  border: 1px solid #4f059f;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  color: #e0e0ff;
  max-height: 40vh;
  overflow-y: auto;
}

.gif-modal h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #e0e0ff;
}

.gif-search-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #4f059f;
  border-radius: 6px;
  background: rgb(0, 0, 0);
  color: #e0e0ff;
  font-size: 14px;
  box-sizing: border-box;
}

.gif-search-input:focus {
  outline: none;
  border-color: #7c4dff;
}

.gif-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.gif-item {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.gif-item:hover {
  border-color: #7c4dff;
}

.gif-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gif-close {
  position: absolute;
  top: 5px;
  right: 10px;
  color: #e0e0ff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.gif-close:hover {
  color: #7c4dff;
}

.no-gifs {
  text-align: center;
  color: #8e8eb5;
  font-style: italic;
  padding: 10px;
}

.reply-gif-upload-btn {
  background: transparent !important;
  color: #7c4dff;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  padding: 0;
}

@media (max-width: 1024px) {
  .gif-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .gif-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

.emoji-upload-btn,
.reply-emoji-upload-btn {
  background: transparent !important;
  color: #7c4dff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  padding: 0;
}

.emoji-upload-btn svg,
.reply-emoji-upload-btn svg {
  filter: none !important;
  backdrop-filter: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.emoji-modal {
  display: none;
  position: absolute;
  z-index: 1000;
  background: #2f2f2f !important;
  border: 2px solid #0e0015;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
  color: #e0e0ff;
  max-height: 450px;
  width: 100%;
  max-width: 450px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.emoji-categories {
  display: flex;
  gap: 0;
  margin: 0;
  border-bottom: 1px solid #06000b;
  padding: 8px 12px;
  background: #312738;
  flex-shrink: 0;
}

.emoji-category-btn {
  background: transparent;
  border: none;
  color: #b5bac1;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  min-width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-category-btn img {
  width: 35px;
  height: 35px;
}

.emoji-category-btn.active {
  background: #190023;
  color: white;
}

.emoji-category-btn:hover {
  background: #190023;
  color: white;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  padding: 12px;
  background: #312738;
  overflow-y: auto;
  max-height: 350px;
  position: relative;
}

.dark-emoji-grid .emoji-item {
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.emoji-item:hover {
  border-color: #7c4dff;
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(124, 77, 255, 0.5);
}

.emoji-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.no-emojis {
  text-align: center;
  color: #8e8eb5;
  font-style: italic;
  padding: 10px;
}

.emoji-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: white;
}

.lock-icon svg {
  width: 48px;
  height: 48px;
}

.custom-emoji {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin: 0 2px;
  display: inline-block;
}

.custom-emoji.solo-emoji {
  width: 128px !important;
  height: 128px !important;
}

.comment-content .custom-emoji:not(.solo-emoji) {
  display: inline-block;
  vertical-align: middle;
}

.custom-emoji[src$=".gif"] {
  image-rendering: optimizeQuality;
}

@media (max-width: 480px) {
  .emoji-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
  }

  .emoji-categories {
    gap: 5px;
  }

  .emoji-category-btn {
    padding: 6px 8px;
  }

  .emoji-category-btn img {
    width: 25px;
    height: 25px;
  }

  .dark-emoji-grid .emoji-item {
    width: 28px;
    height: 28px;
  }

  .custom-emoji.solo-emoji {
    width: 96px !important;
    height: 96px !important;
  }
}

@media (max-width: 360px) {
  .emoji-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
  }
}
