/* ============================================
   REV6 — Server Detail Page Styles
   ============================================ */

/* ============================================
   1. COVER HERO
   ============================================ */
.detail-cover {
  position: relative;
  width: 100%;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  padding-top: 16px;
  overflow: hidden;
  background: var(--bg-surface);
}

/* Dramatic gradient background */
.detail-cover__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(79, 125, 245, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(212, 168, 83, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-body) 100%);
  pointer-events: none;
}


/* Floating ambient orbs */
.detail-cover__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: floatOrb 8s ease-in-out infinite;
}

.detail-cover__orb--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -80px;
  background: rgba(79, 125, 245, 0.06);
  animation-delay: 0s;
}

.detail-cover__orb--2 {
  width: 300px;
  height: 300px;
  top: -50px;
  right: -60px;
  background: rgba(212, 168, 83, 0.04);
  animation-delay: -4s;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(15px, -20px);
  }
}

.detail-cover__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
  width: 100%;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease both;
}

/* Back link */
.detail-cover__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.detail-cover__back i {
  font-size: 15px;
  transition: transform var(--transition-fast);
}

.detail-cover__back:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-cover__back:hover i {
  transform: translateX(-4px);
}

/* Server identity in cover */
.detail-cover__identity {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.detail-cover__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  box-shadow: 0 0 30px var(--gold-glow), var(--shadow-lg);
  flex-shrink: 0;
}

.detail-cover__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.detail-cover__url {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.detail-cover__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================
   3. DETAIL LAYOUT (Sidebar + Content)
   ============================================ */
.detail-main {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* ============================================
   4. STICKY SIDEBAR
   ============================================ */
.detail-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base);
}

.sidebar-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .sidebar-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

/* Server Status Card (Updated — no player count) */
.sidebar-card--status {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 168, 83, 0.03) 100%);
  text-align: center;
}

.status-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.status-live__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--online-green);
  animation: pulseGlow 2s infinite;
}

.status-live__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--online-green);
}

/* Status display — large centered badge */
.status-display {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.status-display .status-badge {
  font-size: 16px;
  padding: 10px 24px;
  gap: 10px;
}

.status-display .status-badge .status-dot {
  width: 12px;
  height: 12px;
}

.status-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
}

/* Specs Card */
.sidebar-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.sidebar-card__title i {
  color: var(--gold);
  font-size: 18px;
}

.specs-list {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.spec-row__label i {
  font-size: 15px;
  opacity: 0.5;
}

.spec-row__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.spec-row__value.highlight-gold {
  color: var(--gold);
}

/* CTA Card */
.sidebar-card--cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-lg);
  border-color: transparent;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.06) 0%, rgba(79, 125, 245, 0.04) 100%);
}

/* Ad Sidebar Card */
.sidebar-card--ad {
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.sidebar-card--ad:hover {
  border-color: transparent;
}

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn-cta i {
  font-size: 16px;
}

.btn-cta--download {
  color: #1A1530;
  background: var(--gradient-gold);
}

.btn-cta--download::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmer 3s infinite;
}

.btn-cta--download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow-strong);
  filter: brightness(1.05);
}

.btn-cta--register {
  color: #FFFFFF;
  background: var(--gradient-accent);
}

.btn-cta--register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-glow);
  filter: brightness(1.08);
}

.btn-cta--discord {
  color: #FFFFFF;
  background: #5865F2;
}

.btn-cta--discord:hover {
  transform: translateY(-2px);
  background: #4752C4;
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.3);
}

.btn-cta--website {
  color: #ffffff !important;
  background: #2a2d44 !important;
  border: 1px solid #383c5a !important;
  box-shadow: none !important;
}

[data-theme="light"] .btn-cta--website {
  color: #1a1530 !important;
  background: #e9e7df !important;
  border: 1px solid #dcdad0 !important;
}

.btn-cta--website:hover {
  background: #383c5a !important;
  color: #ffffff !important;
  border-color: #484c6e !important;
}

[data-theme="light"] .btn-cta--website:hover {
  background: #dcdad0 !important;
  color: #1a1530 !important;
  border-color: #cbc9be !important;
}

/* Social Media CTA Buttons (Discord Style) */
.btn-cta--instagram {
  color: #FFFFFF !important;
  background: #E1306C !important;
  border: none !important;
}
.btn-cta--instagram:hover {
  transform: translateY(-2px) !important;
  background: #C13584 !important;
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.3) !important;
}

.btn-cta--whatsapp {
  color: #FFFFFF !important;
  background: #25D366 !important;
  border: none !important;
}
.btn-cta--whatsapp:hover {
  transform: translateY(-2px) !important;
  background: #128C7E !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3) !important;
}

.btn-cta--facebook {
  color: #FFFFFF !important;
  background: #1877F2 !important;
  border: none !important;
}
.btn-cta--facebook:hover {
  transform: translateY(-2px) !important;
  background: #166FE5 !important;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.3) !important;
}

.btn-cta--youtube {
  color: #FFFFFF !important;
  background: #FF0000 !important;
  border: none !important;
}
.btn-cta--youtube:hover {
  transform: translateY(-2px) !important;
  background: #CC0000 !important;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.3) !important;
}

/* ============================================
   5. MAIN CONTENT
   ============================================ */
.detail-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-section {
  animation: fadeInUp 0.6s ease both;
  margin-bottom: var(--space-2xl);
}

.content-section:nth-child(1) {
  animation-delay: 0.1s;
}

.content-section:nth-child(2) {
  animation-delay: 0.2s;
}

.content-section:nth-child(3) {
  animation-delay: 0.3s;
}

.content-section:nth-child(4) {
  animation-delay: 0.4s;
}

.content-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  position: relative;
}



.content-section__title i {
  color: var(--gold);
  font-size: 16px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  padding: 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--gold-glow);
  flex-shrink: 0;
}

.content-section__body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

.content-section__body p {
  margin: 0 0 var(--space-md) 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.content-section__body p:last-child {
  margin-bottom: 0;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

/* ============================================
   6. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .detail-cover {
    min-height: 280px;
    padding: 16px var(--space-md) var(--space-md);
  }

  .detail-cover__identity {
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    gap: var(--space-md);
  }

  .detail-cover__identity>div:last-child {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .detail-cover__identity>div:last-child>div {
    justify-content: center !important;
    width: 100% !important;
  }

  .header-cta-row {
    justify-content: center !important;
  }

  .detail-cover__avatar {
    width: 110px !important;
    height: 110px !important;
    margin: 0 auto var(--space-xs) !important;
  }

  .detail-layout {
    gap: var(--space-lg);
  }

  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hub-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 4px !important;
    overflow-x: hidden !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .hub-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .hub-tabs a:nth-child(1) {
    grid-column: span 2 !important;
  }

  .hub-tab-btn {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 8px 12px !important;
    font-size: 12.5px !important;
    gap: 6px !important;
  }
}

/* ============================================
   7. SERVER HUB TABS & COMMUNITY CONTENT
   ============================================ */
.hub-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-md);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.hub-tabs::-webkit-scrollbar {
  display: none;
}

.hub-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.hub-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .hub-tab-btn:hover {
  background: rgba(0, 0, 0, 0.02);
}

.hub-tab-btn.active,
.hub-tab-btn.active:hover {
  background: var(--gold-glow) !important;
  color: var(--gold) !important;
  box-shadow: none !important;
}

/* Reviews stats summary box */
.reviews-summary-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  align-items: center;
}

@media (max-width: 576px) {
  .reviews-summary-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.reviews-summary__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-light);
  padding-right: var(--space-xl);
}

@media (max-width: 576px) {
  .reviews-summary__score {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-right: 0;
    padding-bottom: var(--space-lg);
  }
}

.reviews-summary__number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.reviews-summary__stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
  margin: var(--space-xs) 0;
  font-size: 16px;
}

.reviews-summary__count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.reviews-summary__bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rating-bar-row {
  display: grid;
  grid-template-columns: 50px 1fr 40px;
  align-items: center;
  gap: var(--space-md);
  font-size: 12px;
  color: var(--text-secondary);
}

.rating-bar__container {
  height: 8px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rating-bar__fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: var(--radius-sm);
  width: 0%;
}

/* Star selection widget */
.star-rating-select {
  display: flex;
  gap: 6px;
  font-size: 24px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.star-rating-select i {
  cursor: pointer;
  transition: color var(--transition-fast);
}

.star-rating-select i.active,
.star-rating-select i.ph-fill,
.star-rating-select i:hover {
  color: var(--gold);
}

/* Forum list styles in detail */
.forum-topic-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.forum-topic-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  transition: all var(--transition-base);
}

.forum-topic-row:hover {
  border-color: var(--border-gold-dim);
  transform: translateX(4px);
}

.forum-topic__icon {
  font-size: 20px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.forum-topic__main {
  flex: 1;
  min-width: 0;
}

.forum-topic__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 4px;
  display: block;
  transition: color var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-topic__title:hover {
  color: var(--gold);
}

.forum-topic__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

.forum-topic__tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border);
}

.forum-topic__tag--trade {
  border-color: #3b82f6;
  color: #3b82f6;
}

.forum-topic__tag--guilds {
  border-color: #a855f7;
  color: #a855f7;
}

.forum-topic__tag--support {
  border-color: #ef4444;
  color: #ef4444;
}

.forum-topic__tag--general {
  border-color: #10b981;
  color: #10b981;
}

.forum-topic__stats {
  display: flex;
  gap: var(--space-xl);
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.forum-topic__stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.forum-topic__stat-item span {
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .forum-topic-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .forum-topic__stats {
    width: 100%;
    justify-content: flex-start;
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-sm);
  }
}

/* Rich Editor Styles */
.rich-editor {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.rich-editor:focus-within {
  border-color: var(--border-gold-dim);
}

.rich-editor__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: 6px 12px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.rich-editor__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13.5px;
  transition: all var(--transition-fast);
}

.rich-editor__btn:hover {
  background: var(--border-light);
  color: var(--gold);
}

.rich-editor textarea.comment-textarea {
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  background: transparent !important;
}

/* Comment Quote and Styling Extensions */
.comment-quote {
  background: var(--bg-primary);
  border-left: 3px solid var(--gold-dim);
  padding: 10px 14px;
  margin: var(--space-sm) 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.comment-quote cite {
  display: block;
  font-weight: 700;
  font-style: normal;
  color: var(--gold);
  margin-bottom: 4px;
  font-size: 11.5px;
}

.comment-link {
  color: var(--blue-bright) !important;
  text-decoration: underline;
}

.comment-link:hover {
  color: var(--gold) !important;
}

.comment-code {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 13px;
  color: var(--text-primary);
  overflow-x: auto;
  margin: var(--space-sm) 0;
}

/* Premium Infinite Nested Comments styling (server-detail only) */
.comment-container--nested {
  position: relative;
  border-left: 2px solid var(--border-gold);
  border-radius: 0;
  transition: border-color var(--transition-fast);
}

.comment-container--nested:hover {
  border-left-color: var(--gold);
}

.comment-container--nested .comment-card--reply {
  margin-left: 0;
  border-radius: var(--radius-lg);
}

/* Quote Block for Flat Comments replying to other comments */
.comment-quote-block {
  background: var(--bg-primary);
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 12.5px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  box-shadow: inset 2px 0 8px rgba(0, 0, 0, 0.02);
}

.comment-quote-block .quote-author {
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  font-size: 11.5px;
}

.comment-quote-block .quote-author i {
  color: var(--gold);
  margin-right: 4px;
}

.comment-quote-block .quote-text {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.4;
}

.comment-container--nested .comment-card--reply::before {
  display: none;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.lightbox--active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox__content {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.lightbox__content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-gold-dim);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  object-fit: contain;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox__caption {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--text-secondary);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 10002;
}

.lightbox__close:hover {
  color: var(--gold);
}

.lightbox__prev,
.lightbox__next {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 24px;
  padding: var(--space-md);
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.lightbox__prev {
  left: 40px;
}

.lightbox__next {
  right: 40px;
}

@media (max-width: 768px) {
  .lightbox__prev {
    left: 16px;
  }

  .lightbox__next {
    right: 16px;
  }

  .lightbox__close {
    top: 16px;
    right: 20px;
  }

  /* Limit comment nesting indentation on mobile to prevent crushing while preserving hierarchy */
  .comment-container--nested {
    margin-left: 10px !important;
    padding-left: 8px !important;
    border-left-width: 1.5px !important;
  }

  /* Force replies list wrappers to have zero margin to prevent cumulative double slide */
  .review-replies-list,
  .post-replies-sub,
  .comment-replies-list {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}

/* Compact comments thread styling */
.comments-list,
.forum-topic-replies-list {
  gap: 12px !important;
}

.comment-card {
  padding: 12px 16px !important;
  gap: 12px !important;
}

.comment-card .comment-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-text-content {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}

.comment-text-content p {
  margin: 0 0 6px 0 !important;
}

.comment-text-content p:last-child {
  margin-bottom: 0 !important;
}

/* Compact Quote Block */
.comment-quote-block {
  padding: 8px 12px !important;
  margin-bottom: 8px !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  border: 1px dashed rgba(212, 175, 55, 0.2) !important;
  border-left: 3px solid var(--gold) !important;
  background: var(--bg-primary) !important;
}

.comment-quote-block .quote-author {
  font-size: 11px !important;
  margin-bottom: 2px !important;
}

.comment-quote-block .quote-text {
  line-height: 1.3 !important;
}

.comment-actions {
  margin-top: 2px !important;
  gap: var(--space-md) !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Server Identity Card & Link Chip Styles */
.server-identity-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
  width: fit-content;
  min-width: 450px;
  max-width: 100%;
  margin-top: var(--space-lg);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html[data-theme='dark'] .server-identity-card {
  background: rgba(20, 24, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.server-identity-card:hover {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.08);
  transform: translateY(-2px);
}

html[data-theme='dark'] .server-identity-card:hover {
  background: rgba(20, 24, 46, 0.68);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35);
}

.server-url-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gold) !important;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  width: fit-content;
  margin-top: var(--space-xs);
}

.server-url-chip:hover {
  background: var(--gold);
  color: #ffffff !important;
  box-shadow: 0 4px 12px var(--gold-glow-strong);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .server-identity-card {
    min-width: unset;
    width: 100%;
    padding: var(--space-lg);
  }
}

/* Card container background for Overview, Gallery & Comments on standard/silver servers */
.overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}