/* ========================================
   Giveaway Detail Modal - Epic Edition
   ======================================== */

:root {
  --gdm-bg: rgba(15, 17, 30, 0.98);
  --gdm-border: rgba(255, 255, 255, 0.08);
  --gdm-text: #e2e8f0;
  --gdm-text-muted: #94a3b8;
  --gdm-accent: #fbbf24;
  --gdm-overlay: rgba(0, 0, 0, 0.85);
}

/* Modal wrapper */
.giveaway-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.giveaway-detail-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Glass-morphism overlay */
.gdm-overlay {
  position: absolute;
  inset: 0;
  background: var(--gdm-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Dialog box */
.gdm-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--gdm-bg);
  border: 1px solid var(--gdm-border);
  border-radius: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  color: var(--gdm-text);
  transform: scale(1) translateY(0);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.giveaway-detail-modal:not(.hidden) .gdm-dialog {
  animation: gdm-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes gdm-enter {
  from {
    transform: scale(0.95) translateY(-30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Platform-specific glow */
.gdm-dialog[style*="--gdm-glow-color"] {
  box-shadow: 0 0 40px -10px var(--gdm-glow-color, transparent),
              0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Custom scrollbar */
.gdm-dialog::-webkit-scrollbar {
  width: 8px;
}

.gdm-dialog::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.gdm-dialog::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.gdm-dialog::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Close button */
.gdm-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gdm-border);
  color: var(--gdm-text);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gdm-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Header */
.gdm-header {
  padding: 2rem 4rem 1.5rem 2rem;
  border-bottom: 1px solid var(--gdm-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gdm-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: var(--gdm-text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gdm-platform-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Countdown timer */
.gdm-countdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Courier New', monospace;
}

.gdm-countdown .cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.gdm-countdown .cd-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gdm-accent);
  line-height: 1;
}

.gdm-countdown .cd-lbl {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--gdm-text-muted);
  letter-spacing: 0.5px;
}

.gdm-countdown .cd-sep {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gdm-text-muted);
  margin: 0 0.25rem;
}

/* Join button in header */
.gdm-join-btn {
  align-self: flex-start;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.gdm-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
  animation: gdm-pulse 1.5s infinite;
}

@keyframes gdm-pulse {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.6);
  }
}

/* Star rating */
.gdm-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.gdm-star {
  font-size: 1.25rem;
  color: #4b5563;
}

.gdm-star.filled {
  color: #fbbf24;
}

/* Body layout */
.gdm-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

/* Left column */
.gdm-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Right column */
.gdm-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Carousel */
.gdm-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.gdm-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.gdm-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gdm-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Carousel arrows */
.gdm-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}

.gdm-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gdm-arrow.prev {
  left: 1rem;
}

.gdm-arrow.next {
  right: 1rem;
}

/* Carousel dots */
.gdm-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.gdm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gdm-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.gdm-dot.active {
  background: white;
  transform: scale(1.25);
}

/* Thumbnail strip */
.gdm-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.gdm-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gdm-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.gdm-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.gdm-thumb {
  width: 80px;
  height: 45px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
  opacity: 0.6;
}

.gdm-thumb:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.gdm-thumb.active {
  border-color: var(--gdm-accent);
  opacity: 1;
}

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

/* Short description */
.gdm-short-desc {
  color: var(--gdm-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Expandable sections */
.gdm-section {
  border: 1px solid var(--gdm-border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.gdm-section-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
  font-weight: 600;
}

.gdm-section-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.gdm-section-header .toggle-icon {
  transition: transform 0.3s ease;
  font-size: 1.25rem;
  line-height: 1;
}

.gdm-section.expanded .toggle-icon {
  transform: rotate(45deg);
}

.gdm-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gdm-section.expanded .gdm-section-body {
  max-height: 2000px;
}

/* Comments */
.gdm-comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.gdm-comment {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.gdm-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.gdm-comment-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.gdm-comment-meta strong {
  color: var(--gdm-text);
  font-size: 0.875rem;
}

.gdm-comment-meta time {
  color: var(--gdm-text-muted);
  font-size: 0.75rem;
}

.gdm-comment-text {
  color: var(--gdm-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.gdm-comment-delete {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gdm-comment-delete:hover {
  background: rgba(239, 68, 68, 0.1);
}

.gdm-comment-input {
  padding: 1rem;
  border-top: 1px solid var(--gdm-border);
  display: flex;
  gap: 0.75rem;
}

.gdm-comment-input textarea {
  flex: 1;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gdm-border);
  border-radius: 6px;
  color: var(--gdm-text);
  font-size: 0.875rem;
  font-family: inherit;
  resize: none;
  min-height: 60px;
}

.gdm-comment-input textarea::placeholder {
  color: var(--gdm-text-muted);
}

.gdm-comment-input textarea:focus {
  outline: none;
  border-color: var(--gdm-accent);
}

.gdm-comment-input button {
  padding: 0.75rem 1.5rem;
  background: var(--gdm-accent);
  color: #1f2937;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  align-self: flex-end;
}

.gdm-comment-input button:hover {
  transform: translateY(-2px);
}

/* Participants */
.gdm-participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.gdm-participant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.gdm-participant img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gdm-border);
}

.gdm-participant span {
  font-size: 0.75rem;
  color: var(--gdm-text-muted);
  word-break: break-word;
}

/* Full description */
.gdm-description {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--gdm-border);
  border-radius: 8px;
  line-height: 1.7;
  color: var(--gdm-text-muted);
  font-size: 0.95rem;
}

/* Multiplayer badge */
.gdm-multiplayer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 500;
}

.gdm-multiplayer-badge[data-type="coop"] {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.gdm-multiplayer-badge[data-type="pvp"] {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Game info grid */
.gdm-game-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--gdm-border);
  border-radius: 8px;
}

.gdm-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gdm-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gdm-text-muted);
}

.gdm-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gdm-text);
}

/* Tasks list in modal */
.gdm-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--gdm-border);
  border-radius: 8px;
}

.gdm-task {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gdm-border);
  border-radius: 6px;
  transition: background 0.2s ease;
}

.gdm-task:hover {
  background: rgba(255, 255, 255, 0.05);
}

.gdm-task i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.gdm-task .task-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--gdm-text);
}

.gdm-task .task-points {
  font-weight: 700;
  color: var(--gdm-accent);
  font-size: 0.875rem;
}

/* Campaign / Sponsor section */
.gdm-campaign {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--gdm-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gdm-sponsor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gdm-accent);
  flex-shrink: 0;
}

.gdm-campaign-info {
  flex: 1;
}

.gdm-campaign-info small {
  display: block;
  font-size: 0.75rem;
  color: var(--gdm-text-muted);
  margin-bottom: 0.25rem;
}

.gdm-sponsor-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gdm-text);
}

/* Platform-specific accent colors */
[data-platform="steam"] {
  --platform-color: #1b9fff;
}

[data-platform="epic"] {
  --platform-color: #fff;
}

[data-platform="gog"] {
  --platform-color: #a855f7;
}

.gdm-dialog[data-platform] .gdm-join-btn {
  background: linear-gradient(135deg, var(--platform-color, #fbbf24) 0%, var(--platform-color, #f59e0b) 100%);
}

.gdm-dialog[data-platform="steam"] .gdm-join-btn {
  background: linear-gradient(135deg, #1b9fff 0%, #1589e8 100%);
  color: white;
}

.gdm-dialog[data-platform="epic"] .gdm-join-btn {
  background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
  color: #1f2937;
}

.gdm-dialog[data-platform="gog"] .gdm-join-btn {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: white;
}

/* Responsive design */
@media (max-width: 768px) {
  .gdm-dialog {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .gdm-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .gdm-header {
    padding: 1.5rem 3rem 1rem 1.5rem;
  }

  .gdm-title {
    font-size: 1.5rem;
  }

  .gdm-countdown .cd-val {
    font-size: 1.25rem;
  }

  .gdm-game-info {
    grid-template-columns: 1fr;
  }

  .gdm-participants-grid {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  }

  .gdm-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gdm-dialog,
  .gdm-close,
  .gdm-arrow,
  .gdm-dot,
  .gdm-thumb,
  .gdm-join-btn,
  .gdm-section-header .toggle-icon,
  .gdm-section-body,
  .gdm-carousel-track,
  .gdm-comment-input button {
    transition: none;
    animation: none;
  }

  .giveaway-detail-modal:not(.hidden) .gdm-dialog {
    animation: none;
  }
}

/* Utility states */
.gdm-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--gdm-text-muted);
}

.gdm-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gdm-border);
  border-top-color: var(--gdm-accent);
  border-radius: 50%;
  animation: gdm-spin 0.8s linear infinite;
}

@keyframes gdm-spin {
  to { transform: rotate(360deg); }
}

.gdm-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 200px;
  padding: 2rem;
  color: var(--gdm-text-muted);
  text-align: center;
}

.gdm-empty {
  color: var(--gdm-text-muted);
  font-size: 0.85rem;
  font-style: italic;
  padding: 0.75rem 0;
  text-align: center;
}

/* Header layout refinements */
.gdm-header-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gdm-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* Meta footer in right column */
.gdm-meta-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--gdm-border);
  font-size: 0.85rem;
  color: var(--gdm-text-muted);
}

.gdm-meta-footer i {
  margin-right: 0.25rem;
}

/* Tasks section in modal */
.gdm-tasks-section h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--gdm-text);
}

/* Video link fallback */
.gdm-video-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gdm-accent);
  font-size: 1.5rem;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.6);
}

.gdm-video-link:hover {
  color: #fff;
}

/* Comment form */
.gdm-comment-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.gdm-comment-input-field {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gdm-border);
  border-radius: 8px;
  color: var(--gdm-text);
  font-size: 0.85rem;
  resize: vertical;
  min-height: 36px;
}

.gdm-comment-input-field:focus {
  outline: none;
  border-color: var(--gdm-accent);
}

.gdm-comment-send {
  padding: 0.5rem 1rem;
  background: var(--gdm-accent);
  color: #0d0f18;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.gdm-comment-send:hover {
  opacity: 0.9;
}

/* Comment body layout */
.gdm-comment-body {
  flex: 1;
  min-width: 0;
}

.gdm-comment-name {
  font-weight: 600;
  color: var(--gdm-text);
}

.gdm-comment-time {
  font-size: 0.75rem;
  color: var(--gdm-text-muted);
}

/* Rating value next to stars */
.gdm-rating-value {
  margin-left: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gdm-accent);
}

/* Task check icon */
.gdm-task-check {
  color: #22c55e;
  margin-left: auto;
  font-size: 0.8rem;
}

/* Read More button style */
.btn-read-more {
  font-size: 0.85rem;
}

/* Campaign Rules PDF link */
.gdm-campaign-rules-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: #ef4444;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}

.gdm-campaign-rules-link:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ===== COMMENT MODERATION (v2.5.0) ===== */

/* Moderation action buttons row */
.gdm-comment-actions {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.35rem;
  position: relative;
}

.gdm-mod-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  transition: background 0.15s, transform 0.1s;
  background: rgba(255,255,255,0.05);
  color: #94a3b8;
}
.gdm-mod-btn:hover { transform: scale(1.15); }

.gdm-mod-approve { color: #22c55e; }
.gdm-mod-approve:hover { background: rgba(34,197,94,0.15); }
.gdm-mod-hide { color: #f59e0b; }
.gdm-mod-hide:hover { background: rgba(245,158,11,0.15); }
.gdm-mod-edit { color: #3b82f6; }
.gdm-mod-edit:hover { background: rgba(59,130,246,0.15); }
.gdm-mod-delete { color: #ef4444; }
.gdm-mod-delete:hover { background: rgba(239,68,68,0.15); }
.gdm-mod-ban { color: #a855f7; }
.gdm-mod-ban:hover { background: rgba(168,85,247,0.15); }

/* Hidden/pending comment muted style */
.gdm-comment--muted {
  opacity: 0.5;
  border-left: 2px solid #f59e0b;
  padding-left: 0.5rem;
}

/* Comment badges */
.gdm-comment-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.gdm-badge-hidden {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
}
.gdm-badge-pending {
  background: rgba(59,130,246,0.15);
  color: #3b82f6;
}

/* Edited indicator */
.gdm-comment-edited {
  font-size: 0.7rem;
  color: #64748b;
  font-style: italic;
}

/* Ban duration picker popup */
.gdm-ban-picker {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--bg-secondary, #1e293b);
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 8px;
  padding: 0.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.gdm-ban-picker-title {
  font-size: 0.75rem;
  color: #94a3b8;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 0.15rem;
}
.gdm-ban-picker button {
  background: rgba(255,255,255,0.05);
  border: none;
  color: #e2e8f0;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  text-align: left;
  transition: background 0.15s;
}
.gdm-ban-picker button:hover {
  background: rgba(168,85,247,0.2);
}

/* Inline edit */
.gdm-comment-edit-area {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.gdm-edit-textarea {
  width: 100%;
  min-height: 50px;
  background: var(--bg-secondary, #0f172a);
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 6px;
  color: var(--text-primary, #e2e8f0);
  padding: 0.4rem;
  font-size: 0.85rem;
  resize: vertical;
}
.gdm-comment-edit-btns {
  display: flex;
  gap: 0.35rem;
}
.gdm-comment-edit-btns button {
  padding: 0.25rem 0.6rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.15s;
}
.gdm-edit-save {
  background: rgba(34,197,94,0.2);
  color: #22c55e;
}
.gdm-edit-save:hover { background: rgba(34,197,94,0.35); }
.gdm-edit-cancel {
  background: rgba(239,68,68,0.2);
  color: #ef4444;
}
.gdm-edit-cancel:hover { background: rgba(239,68,68,0.35); }

/* ===== EMOJI & MEME PICKERS ===== */

.gdm-comment-toolbar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  position: relative;
}
.gdm-emoji-btn, .gdm-meme-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.15s;
}
.gdm-emoji-btn:hover, .gdm-meme-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* Emoji picker panel */
.gdm-emoji-picker {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--bg-secondary, #1e293b);
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 10px;
  padding: 0.6rem;
  z-index: 200;
  width: 280px;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.gdm-emoji-category {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0 0.15rem;
}
.gdm-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}
.gdm-emoji-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.1s;
}
.gdm-emoji-item:hover {
  background: rgba(255,255,255,0.1);
}

/* Meme picker panel */
.gdm-meme-picker {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--bg-secondary, #1e293b);
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 10px;
  padding: 0.6rem;
  z-index: 200;
  width: 300px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.gdm-meme-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.gdm-meme-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: none;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s, transform 0.1s;
  padding: 4px;
}
.gdm-meme-item:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.1);
}
.gdm-meme-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Inline meme in comment text */
.gdm-comment-meme {
  display: inline-block;
  width: 48px;
  height: 48px;
  vertical-align: middle;
  object-fit: contain;
  margin: 0 2px;
}

/* Comments disabled / banned notices */
.gdm-comments-disabled, .gdm-banned-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.gdm-comments-disabled {
  background: rgba(100,116,139,0.1);
  color: #94a3b8;
  border: 1px solid rgba(100,116,139,0.2);
}
.gdm-banned-notice {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.2);
}
