/* ===================================================
   ANISHIFT - COMMENTS SECTION STYLESHEET (comments.css)
   Seamlessly matches watch.html & site design aesthetic
   Full support for: Light, Dark, Midnight OLED, Midnight Navy
   =================================================== */

/* --------------------------------------------------
   1. MAIN COMMENTS CONTAINER & HEADER BAR
   -------------------------------------------------- */
.comments-section {
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comments-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.comments-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-header-left .section-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
  text-transform: uppercase;
}

.comments-header-left .section-bar-title i {
  color: var(--accent-primary);
  font-size: 15px;
}

.comments-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0;
}

/* Sort & Filter Tabs */
.comments-sort-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-sort-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.comment-sort-tab:hover {
  color: var(--text-main);
  background-color: var(--bg-card-subtle);
}

.comment-sort-tab.active {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.28);
}

.comment-sort-tab i {
  font-size: 10.5px;
}

/* --------------------------------------------------
   2. COMMENT COMPOSER CARD (INPUT)
   -------------------------------------------------- */
.comments-composer-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comments-composer-card:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px rgba(30, 144, 255, 0.08);
}

.composer-top-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.composer-user-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  background-color: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.composer-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.composer-input-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.composer-textarea {
  width: 100%;
  min-height: 72px;
  max-height: 180px;
  resize: vertical;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-family);
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.55;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.composer-textarea:focus {
  background-color: var(--bg-surface);
  border-color: var(--accent-primary);
}

.composer-textarea::placeholder {
  color: var(--text-dim);
}

/* Composer Bottom Toolbar */
.composer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 52px;
}

.composer-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.spoiler-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.spoiler-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--text-dim);
}

.spoiler-toggle-btn.active {
  background-color: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ef4444;
}

.spoiler-toggle-btn.active i {
  color: #ef4444;
}

/* Quick Emoji Reactions */
.composer-quick-emojis {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.emoji-quick-btn {
  background: transparent;
  border: none;
  font-size: 15px;
  padding: 3px 5px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s;
}

.emoji-quick-btn:hover {
  transform: scale(1.3);
  background-color: var(--bg-hover);
}

/* Post Button */
.btn-post-comment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.32);
}

.btn-post-comment:hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

.btn-post-comment:active {
  transform: translateY(0);
}

.btn-post-comment:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* --------------------------------------------------
   3. COMMENTS FEED & COMMENT CARDS
   -------------------------------------------------- */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
  position: relative;
}

.comment-card.just-added {
  animation: commentFadeIn 0.45s ease forwards;
  border-color: var(--accent-primary);
}

@keyframes commentFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.comment-card-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background-color: var(--bg-hover);
  flex-shrink: 0;
  display: block;
}

.comment-avatar-letter {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  user-select: none;
}

.comment-meta-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.comment-user-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.comment-username {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.comment-username:hover {
  color: var(--accent-primary);
}

/* Role Badges */
.comment-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.comment-role-tag.role-vip {
  background-color: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

.comment-role-tag.role-admin {
  background-color: rgba(30, 144, 255, 0.15);
  border: 1px solid rgba(30, 144, 255, 0.35);
  color: var(--accent-primary);
}

.comment-role-tag.role-veteran {
  background-color: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #a855f7;
}

.comment-role-tag.role-member {
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
}

.comment-ep-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1.5px 6px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.comment-date-text {
  font-size: 11px;
  color: var(--text-dim);
}

/* Card Right Options Dropdown/Button */
.comment-card-actions-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.comment-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.comment-owner-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.comment-owner-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.comment-owner-btn.btn-delete-comment:hover {
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.comment-owner-btn.btn-edit-comment:hover {
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
}

.reply-owner-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
}

.reply-owner-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.reply-owner-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.reply-owner-btn.btn-delete-reply:hover {
  color: #ef4444;
}

.reply-owner-btn.btn-edit-reply:hover {
  color: var(--accent-primary);
}

/* Inline Edit Box for Comment or Reply */
.comment-edit-box {
  margin: 6px 0 6px 48px;
  padding: 8px 10px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reply-edit-box {
  margin: 4px 0;
  padding: 6px 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-edit-textarea {
  width: 100%;
  min-height: 48px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 6px 8px;
  font-family: var(--font-family);
  font-size: 12.5px;
  color: var(--text-main);
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

.comment-edit-textarea:focus {
  border-color: var(--accent-primary);
}

.comment-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* Comment Body Text */
.comment-text-content {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  word-break: break-word;
  padding-left: 48px;
}

/* Spoiler Wrapper & Blur Effect */
.spoiler-container {
  position: relative;
  background-color: var(--bg-card-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 4px 0;
  overflow: hidden;
}

.spoiler-container.is-hidden .spoiler-hidden-text {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
  transition: filter 0.3s ease;
}

.spoiler-container:not(.is-hidden) .spoiler-hidden-text {
  filter: none;
}

.spoiler-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.spoiler-container:not(.is-hidden) .spoiler-banner-overlay {
  display: none;
}

.spoiler-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  transition: transform 0.15s ease, background 0.15s;
}

.spoiler-banner-btn:hover {
  background-color: #dc2626;
  transform: scale(1.04);
}

/* --------------------------------------------------
   4. COMMENT REPLIES LIST (ADMIN RP & USER REPLIES)
   -------------------------------------------------- */
.comment-replies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 2px 48px;
  padding-left: 14px;
  border-left: 2px solid var(--border-color);
}

.comment-reply-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.comment-reply-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Admin RP Signature Style */
.comment-reply-card.is-admin-reply {
  background-color: var(--accent-primary-light);
  border-color: rgba(30, 144, 255, 0.35);
  border-left: 3px solid var(--accent-primary);
}

.reply-avatar-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reply-avatar-img,
.reply-avatar-wrap .comment-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: block;
}

.comment-reply-card.is-admin-reply .reply-avatar-img,
.comment-reply-card.is-admin-reply .comment-avatar-img {
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(30, 144, 255, 0.35);
}

.reply-avatar-wrap .comment-avatar-letter {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  font-size: 11px;
}

.reply-body-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reply-username {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.1px;
}

.reply-time {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-left: auto;
}

.reply-text-content {
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

/* Legacy Admin Reply Support */
.admin-reply-box {
  margin: 4px 0 0 48px;
  padding: 12px 14px;
  background-color: var(--accent-primary-light);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-badge-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-badge-title i {
  font-size: 11px;
}

.admin-reply-time {
  font-size: 10.5px;
  color: var(--text-dim);
}

.admin-reply-content {
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------
   5. COMMENT ACTION BUTTONS (LIKE, DISLIKE, REPLY, SHARE)
   -------------------------------------------------- */
.comment-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 48px;
  margin-top: 2px;
}

.comment-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.comment-action-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.comment-action-btn.active {
  color: var(--accent-primary);
  background-color: var(--accent-primary-light);
}

.comment-action-btn.active.like-btn i {
  color: var(--accent-primary);
}

.comment-action-btn.active.dislike-btn {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.12);
}

.comment-action-btn i {
  font-size: 12px;
}

/* Inline Reply Drawer */
.inline-reply-box {
  margin: 8px 0 0 48px;
  padding: 10px 12px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-reply-composer-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.inline-reply-user-avatar {
  flex-shrink: 0;
  padding-top: 2px;
}

.inline-reply-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-reply-textarea {
  width: 100%;
  min-height: 52px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--font-family);
  font-size: 12.5px;
  color: var(--text-main);
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

.inline-reply-textarea:focus {
  border-color: var(--accent-primary);
}

.inline-reply-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-inline-cancel {
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 4px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
}

.btn-inline-cancel:hover {
  color: var(--text-main);
}

.btn-inline-submit {
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 4px;
  background-color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  color: #fff;
  cursor: pointer;
}

/* --------------------------------------------------
   6. LOAD MORE COMMENTS & EMPTY STATE
   -------------------------------------------------- */
.comments-footer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.btn-load-more-comments {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 24px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.btn-load-more-comments i {
  color: var(--text-muted);
  font-size: 11px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-load-more-comments:hover {
  background-color: #0b0c0f;
  color: #ffffff;
  border-color: #0b0c0f;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-load-more-comments:hover i {
  color: #ffffff;
}

.btn-load-more-comments:active {
  transform: translateY(0);
}

.comments-empty-state {
  text-align: center;
  padding: 36px 20px;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.comments-empty-state i {
  font-size: 32px;
  color: var(--text-dim);
}

/* --------------------------------------------------
   7. RESPONSIVE DESIGN FOR COMMENTS
   -------------------------------------------------- */
@media (max-width: 1024px) {
  .watch-main-grid .comments-section {
    order: 6;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .composer-bottom-bar {
    padding-left: 0;
  }

  .comment-text-content,
  .comment-replies-list,
  .admin-reply-box,
  .comment-card-footer,
  .inline-reply-box {
    padding-left: 0;
    margin-left: 0;
  }

  .comment-replies-list {
    padding-left: 10px;
    margin-top: 8px;
  }

  .comments-sort-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

/* --------------------------------------------------
   8. DYNAMIC THEME-AWARE ADMIN RP AVATAR & NOTIFICATIONS
   -------------------------------------------------- */
.admin-rp-avatar-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: none;
}

.admin-rp-avatar-wrap .admin-rp-theme-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

/* Light theme: show 48x48_dark_icon (admin-logo-light-theme), hide 48x48_light_icon (admin-logo-dark-theme) */
[data-theme="light"] .admin-rp-avatar-wrap .admin-logo-dark-theme,
html[data-theme="light"] .admin-rp-avatar-wrap .admin-logo-dark-theme,
body.light-theme .admin-rp-avatar-wrap .admin-logo-dark-theme,
html:not([data-theme="dark"]):not([data-theme="oled"]):not([data-theme="navy"]) .admin-rp-avatar-wrap .admin-logo-dark-theme {
  display: none !important;
}

[data-theme="light"] .admin-rp-avatar-wrap .admin-logo-light-theme,
html[data-theme="light"] .admin-rp-avatar-wrap .admin-logo-light-theme,
body.light-theme .admin-rp-avatar-wrap .admin-logo-light-theme,
html:not([data-theme="dark"]):not([data-theme="oled"]):not([data-theme="navy"]) .admin-rp-avatar-wrap .admin-logo-light-theme {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Dark, OLED, Navy themes (show 48x48_light_icon, hide 48x48_dark_icon) */
[data-theme="dark"] .admin-rp-avatar-wrap .admin-logo-light-theme,
[data-theme="oled"] .admin-rp-avatar-wrap .admin-logo-light-theme,
[data-theme="navy"] .admin-rp-avatar-wrap .admin-logo-light-theme {
  display: none !important;
}

[data-theme="dark"] .admin-rp-avatar-wrap .admin-logo-dark-theme,
[data-theme="oled"] .admin-rp-avatar-wrap .admin-logo-dark-theme,
[data-theme="navy"] .admin-rp-avatar-wrap .admin-logo-dark-theme {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Admin Badge: Outlined glowing neon pill badge matching image 2 (MOD badge style) */
.reply-badge-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5px 7px;
  border-radius: 4px;
  background-color: transparent;
  border: 1.5px solid #0099ff;
  color: #0099ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Dark/OLED/Navy adjustments for vivid electric blue glow */
[data-theme="dark"] .reply-badge-admin,
[data-theme="oled"] .reply-badge-admin,
[data-theme="navy"] .reply-badge-admin {
  border-color: #0099ff;
  color: #0099ff;
}

/* Notification Button Active Dot */
.nav-notification-btn {
  position: relative;
}

.nav-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  font-family: inherit;
  line-height: 15px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-surface, #0f172a);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.6), 0 0 10px rgba(239, 68, 68, 0.4);
  pointer-events: none;
  z-index: 10;
  animation: notifPulse 2s infinite ease-in-out;
}

.nav-notif-badge.is-dot {
  min-width: 8px;
  width: 8px;
  height: 8px;
  padding: 0;
  top: 4px;
  right: 4px;
}

/* Notification Drawer Reply Item Card */
.notif-card.is-reply-notif {
  border-left: 3px solid var(--accent-primary);
  background: var(--bg-card);
}

.notif-card.is-reply-notif.is-admin-notif {
  background: rgba(30, 144, 255, 0.05);
  border-color: rgba(30, 144, 255, 0.35);
}

.notif-card.is-reply-notif .notif-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

/* Comment Target Highlight when navigated from Notification */
.comment-card.comment-highlight-target,
.comment-reply-card.comment-highlight-target {
  animation: notifHighlightPulse 3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  outline: 2px solid #1E90FF;
  outline-offset: 2px;
}

@keyframes notifHighlightPulse {
  0% {
    background-color: rgba(30, 144, 255, 0.28);
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.45);
  }
  70% {
    background-color: rgba(30, 144, 255, 0.12);
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.2);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
    outline-color: transparent;
  }
}

/* Custom Confirmation Modal (Replaces default browser window.confirm popup) */
.custom-confirm-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-confirm-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.custom-confirm-box {
  width: 100%;
  max-width: 400px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-confirm-overlay.active .custom-confirm-box {
  transform: scale(1) translateY(0);
}

.custom-confirm-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-confirm-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.custom-confirm-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.custom-confirm-message {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.custom-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.btn-confirm-cancel {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-confirm-cancel:hover {
  background-color: var(--border-color);
}

.btn-confirm-danger {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background-color: #ef4444;
  border: 1px solid #ef4444;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  transition: all 0.15s ease;
}

.btn-confirm-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.btn-confirm-primary {
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-primary, #1E90FF);
  border: 1px solid var(--accent-primary, #1E90FF);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
  transition: all 0.15s ease;
}

.btn-confirm-primary:hover {
  background-color: #1a7fd9;
  border-color: #1a7fd9;
  transform: translateY(-1px);
}

.custom-confirm-icon-wrap.type-warning {
  background-color: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

.custom-confirm-icon-wrap.type-info {
  background-color: rgba(30, 144, 255, 0.14);
  color: var(--accent-primary, #1E90FF);
}

.custom-confirm-icon-wrap.type-success {
  background-color: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.custom-confirm-icon-wrap.type-error {
  background-color: rgba(239, 68, 68, 0.14);
  color: #ef4444;
}
