﻿/* ==========================================================================
  Site Custom Overrides
  ========================================================================== */

/* Contain stacking contexts so they don't compete with fixed overlays */
.hero-trending,
.home-parallax-stats {
  isolation: isolate;
}

/* ==========================================================================
   1) Base / Layout
   ========================================================================== */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
  padding-top: var(--navbar-fixed-height, 62px); /* Navbar-Höhe */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Add top spacing for fixed navbar (except on home page) */
body:not(.home-page):not(.mods-page) {
  padding-top: calc(var(--navbar-fixed-height, 62px) + 24px);
}

body.home-page {
  padding-top: 0 !important;
}

body.mods-page {
  padding-top: calc(var(--navbar-fixed-height, 62px) + 10px);
}

body.has-info-bar:not(.home-page):not(.mods-page) {
  padding-top: calc(var(--navbar-fixed-height, 62px) + var(--info-bar-fixed-height, 44px));
}

body.has-info-bar:not(.home-page):not(.mods-page) {
  padding-top: calc(var(--navbar-fixed-height, 62px) + var(--info-bar-fixed-height, 44px) + 24px);
}

main.container {
  flex: 1 0 auto;
  padding-bottom: 1.25rem;
}

.home-parallax-stats,
footer {
  flex-shrink: 0;
}

/* Mods page: let hero background start directly at the top without a visible gap */
body.mods-page .hero-trending {
  margin-top: calc((var(--navbar-fixed-height, 62px) + 10px) * -1);
  padding-top: calc(var(--navbar-fixed-height, 62px) + 10px);
}

body.has-info-bar.mods-page .hero-trending {
  margin-top: calc((var(--navbar-fixed-height, 62px) + 10px) * -1);
  padding-top: calc(var(--navbar-fixed-height, 62px) + 10px);
}

.navbar-user-dropdown {
  font-weight: 600;
}

.site-info-bar {
  background: var(--info-bar-bg, var(--theme-accent));
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  position: fixed;
  top: var(--navbar-fixed-height, 62px);
  left: 0;
  right: 0;
  z-index: 1025;
}

.site-info-bar.is-hidden {
  display: none;
}

.site-info-bar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  position: relative;
  padding-right: 2rem;
}

.site-info-bar-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.site-info-bar-btn {
  white-space: nowrap;
  font-weight: 600;
  color: #111827 !important;
  --bs-btn-color: #111827;
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: rgba(17, 24, 39, 0.18);
  --bs-btn-hover-color: #111827;
  --bs-btn-hover-bg: #f3f4f6;
  --bs-btn-hover-border-color: rgba(17, 24, 39, 0.28);
  --bs-btn-active-color: #111827;
  --bs-btn-active-bg: #e5e7eb;
  --bs-btn-active-border-color: rgba(17, 24, 39, 0.34);
  --bs-btn-focus-shadow-rgb: 17, 24, 39;
}

[data-bs-theme="dark"] .site-info-bar-btn {
  color: #111827 !important;
  --bs-btn-color: #111827;
  --bs-btn-bg: #f8fafc;
  --bs-btn-border-color: rgba(248, 250, 252, 0.88);
  --bs-btn-hover-color: #111827;
  --bs-btn-hover-bg: #e5e7eb;
  --bs-btn-hover-border-color: #e5e7eb;
  --bs-btn-active-color: #111827;
  --bs-btn-active-bg: #d1d5db;
  --bs-btn-active-border-color: #d1d5db;
}

.site-info-bar-btn:hover,
.site-info-bar-btn:focus,
.site-info-bar-btn:focus-visible,
.site-info-bar-btn:active,
.site-info-bar-btn.active,
.site-info-bar-btn:visited,
[data-bs-theme="dark"] .site-info-bar-btn:hover,
[data-bs-theme="dark"] .site-info-bar-btn:focus,
[data-bs-theme="dark"] .site-info-bar-btn:focus-visible,
[data-bs-theme="dark"] .site-info-bar-btn:active,
[data-bs-theme="dark"] .site-info-bar-btn.active,
[data-bs-theme="dark"] .site-info-bar-btn:visited {
  color: #111827 !important;
}

.site-info-bar-dismiss {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1rem;
  font-weight: 700;
  padding: 0;
}

.site-info-bar-dismiss:hover,
.site-info-bar-dismiss:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

@media (max-width: 576px) {
  .site-info-bar-inner {
    gap: 0.5rem;
    padding-right: 1.85rem;
  }
}

.navbar-chat-unread {
  font-size: 0.66rem;
  line-height: 1;
  padding: 0.28rem 0.42rem;
  transform: translateY(-1px);
}

.navbar-user-dropdown-menu {
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 0.4rem;
}

.navbar-user-dropdown-menu .dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-weight: 500;
}

.navbar-user-dropdown-menu .dropdown-item .bi {
  color: #d66514;
  font-size: 1rem;
}

.navbar-user-dropdown-menu .dropdown-item:hover,
.navbar-user-dropdown-menu .dropdown-item:focus {
  background: rgba(214, 101, 20, 0.12);
  color: #1f2328;
}

.user-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--bs-border-color-translucent);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.user-social-link:visited {
  color: var(--bs-body-color);
}

.user-social-link:hover,
.user-social-link:focus {
  color: var(--bs-body-color);
  border-color: rgba(214, 101, 20, 0.45);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

[data-bs-theme="dark"] .user-social-link {
  background: var(--bs-tertiary-bg);
  border-color: var(--bs-border-color);
  box-shadow: none;
}

[data-bs-theme="dark"] .user-social-link:hover,
[data-bs-theme="dark"] .user-social-link:focus {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* ── Profile Banner ── */
.profile-banner {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
}
.profile-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-preview {
  width: 100% !important;
  height: 80px !important;
  max-height: 80px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 8px;
}

.user-mod-row {
  border-radius: 14px;
}

.user-mod-thumb-wrap {
  width: 210px;
  max-width: 100%;
}

.user-mod-thumb,
.user-mod-thumb-placeholder {
  width: 100%;
  height: 118px;
  border-radius: 12px;
}

.user-mod-thumb {
  object-fit: cover;
  display: block;
}

.user-mod-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #6c757d;
  background: #f1f3f5;
  border: 1px dashed #d0d7de;
}

.user-mod-status-badge {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.user-mod-desc {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.user-mod-actions .btn,
.user-mod-actions .btn.disabled,
.user-mod-actions span.btn {
  min-width: 120px;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .user-mod-thumb-wrap {
    width: 100%;
  }

  .user-mod-thumb,
  .user-mod-thumb-placeholder {
    height: 170px;
  }
}

/* Utility: accent color + glow */
.ngm-accent {
  color: #ff7a18;
  text-shadow: 0 0 20px rgba(255, 122, 24, 0.35);
}

/* Utility: remove some top padding (matches approx. py-5) */
.no-top-padding-fix {
  margin-top: -3rem;
}


/* ==========================================================================
   2) Hero (Home)
   ========================================================================== */

/* Bigger, more premium hero */
.hero-section {
  min-height: 100vh;
  background-color: #111;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
}

/* Parallax effect on desktop only */
@supports (background-attachment: fixed) {
  @media (min-width: 992px) {
    .hero-section {
      background-attachment: fixed;
    }
  }
}

/* Dark overlay for readability */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.45)
  );
  z-index: 1;
}

/* Ensure content is above overlay */
.hero-section .container,
.hero-section .container-fluid {
  position: relative;
  z-index: 2;
}

/* Hero primary button style override */
.hero-section .btn-primary {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background-color: #d66514;
  border-color: #d66514;
}



/* ==========================================================================
   3) Cards / Tiles / Hover Effects
   ========================================================================== */

/* Stats cards hover effect */
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 1rem;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  font-size: 2.2rem;
  line-height: 1;
}

/* Mod tile hover */
.mod-tile {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mod-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

/* CTA background */
.cta-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 1));
}

.mod-card-lg {
  border-radius: 16px;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}

.mod-card-lg:hover {
  transform: translateY(-2px);
}

.mods-toolbar .card {
  border-radius: 16px;
}

.mods-toolbar .input-group-text {
  border-radius: 12px 0 0 12px;
}

.mods-toolbar input.form-control {
  border-radius: 0 12px 12px 0;
}

.title-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.mod-card-xl {
  border-radius: 18px;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}

.mod-card-xl:hover {
  transform: translateY(-2px);
}

.mod-card-xl .badge {
  border-radius: 999px;
  font-weight: 600;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 700;
  color: #111;
}

/* Filter badges (mod list cards) */
.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  text-decoration: none !important;
  color: inherit;
}

.filter-badge .filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(214, 101, 20, 0.10);
  color: #d66514;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.filter-avatar,
.news-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
}

.news-author-avatar {
  vertical-align: text-bottom;
}

.filter-badge:hover .filter-icon,
.filter-badge:focus .filter-icon {
  background: #d66514;
  color: #fff;
  transform: translateY(-1px);
}


/* ==========================================================================
  4) Buttons (Theme Accent)
  ========================================================================== */
.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

/* Filled button */
.btn-theme-accent {
  color: #fff;
  --bs-btn-color: #fff;
  --bs-btn-bg: #d66514;
  --bs-btn-border-color: #d66514;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #b15411;
  --bs-btn-hover-border-color: #b15411;
  --bs-btn-focus-shadow-rgb: 214, 101, 20;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #9a490f;
  --bs-btn-active-border-color: #9a490f;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #d66514;
  --bs-btn-disabled-border-color: #d66514;
}

/* Hover */
.btn-theme-accent:hover {
  color: #fff;
}

/* Active (onclick / pressed) */
.btn-theme-accent:active,
.btn-theme-accent.active {
  color: #fff;
}

/* Focus (keyboard + click) */
.btn-theme-accent:focus,
.btn-theme-accent:focus-visible {
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(214, 101, 20, 0.35);
}

[data-bs-theme="dark"] .btn-theme-accent,
[data-bs-theme="dark"] .btn.btn-theme-accent,
[data-bs-theme="dark"] a.btn-theme-accent,
[data-bs-theme="dark"] .btn-theme-accent:hover,
[data-bs-theme="dark"] .btn-theme-accent:focus,
[data-bs-theme="dark"] .btn-theme-accent:focus-visible,
[data-bs-theme="dark"] .btn-theme-accent:active,
[data-bs-theme="dark"] .btn-theme-accent.active,
[data-bs-theme="dark"] .btn-theme-accent:visited,
[data-bs-theme="dark"] .btn.btn-theme-accent:hover,
[data-bs-theme="dark"] .btn.btn-theme-accent:focus,
[data-bs-theme="dark"] .btn.btn-theme-accent:active,
[data-bs-theme="dark"] a.btn-theme-accent:hover,
[data-bs-theme="dark"] a.btn-theme-accent:focus,
[data-bs-theme="dark"] a.btn-theme-accent:active {
  color: #fff !important;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}

/* Prevent Bootstrap outline after click */
.btn-theme-accent:not(:disabled):not(.disabled):active:focus {
  box-shadow: 0 0 0 0.2rem rgba(214, 101, 20, 0.35);
}

.btn-theme-accent.upload-in-progress:disabled,
[data-bs-theme="dark"] .btn-theme-accent.upload-in-progress:disabled {
  opacity: 1;
  filter: brightness(0.82);
  cursor: wait;
}

.hosted-upload-highlight {
  background: #0a2a57;
  border: 1px solid #11407e;
  color: #fff;
}

[data-bs-theme="dark"] .hosted-upload-highlight {
  background: #082246;
  border-color: #0f3568;
  color: #fff;
}

.hosted-upload-highlight .form-text,
.hosted-upload-highlight .small,
.hosted-upload-highlight .form-label,
.hosted-upload-highlight .text-muted {
  color: rgba(255, 255, 255, 0.92) !important;
}

.hosted-upload-highlight .progress {
  background-color: rgba(255, 255, 255, 0.25);
}


/* Outline button (smooth fill on hover) */
.btn-theme-accent-outline {
  background-color: transparent;
  border: 1px solid #d66514;
  color: #d66514;
  transition:
    background-color 0.2s ease-in-out,
    border-color 0.2s ease-in-out,
    color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

/* Hover -> fill */
.btn-theme-accent-outline:hover {
  background-color: #d66514;
  border-color: #d66514;
  color: #fff;
}

/* Active (pressed) */
.btn-theme-accent-outline:active,
.btn-theme-accent-outline.active {
  background-color: #b15411 !important;
  border-color: #b15411 !important;
  color: #fff;
}

/* Focus (keyboard + click) */
.btn-theme-accent-outline:focus,
.btn-theme-accent-outline:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(214, 101, 20, 0.35);
}

/* Prevent Bootstrap outline after click */
.btn-theme-accent-outline:not(:disabled):not(.disabled):active:focus {
  box-shadow: 0 0 0 0.2rem rgba(214, 101, 20, 0.35);
}

/* Disabled */
.btn-theme-accent-outline.disabled,
.btn-theme-accent-outline:disabled {
  color: #d66514;
  background-color: transparent;
  opacity: 0.5;
}


/* ==========================================================================
   Vote Buttons (Mod Detail)
   ========================================================================== */

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background-color: rgba(214, 101, 20, 0.12);
  border: 1.5px solid rgba(214, 101, 20, 0.35);
  color: #d66514;
  font-weight: 600;
  transition: all 0.2s ease;
}

.vote-btn:hover {
  background-color: rgba(214, 101, 20, 0.22);
  border-color: rgba(214, 101, 20, 0.55);
  color: #b15411;
  transform: translateY(-2px);
}

.vote-btn.is-active {
  background-color: #d66514;
  border-color: #d66514;
  color: #fff;
  box-shadow: 0 4px 12px rgba(214, 101, 20, 0.4);
}

.vote-btn.is-active:hover {
  background-color: #b15411;
  border-color: #b15411;
  box-shadow: 0 6px 16px rgba(214, 101, 20, 0.5);
}

.vote-count {
  font-weight: 700;
  min-width: 18px;
  display: inline-block;
  text-align: center;
}



/* ==========================================================================
   5) Gallery / Thumbnails
   ========================================================================== */

/* Thumbs scrollbar */
.gallery-thumbs::-webkit-scrollbar {
  height: 8px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 99px;
}

/* Thumbnail image */
.thumb-img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

/* Thumbnail hover */
.thumb-btn:hover .thumb-img {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.25);
}

/* Navbar search */
.navbar-search-form {
  width: min(300px, 38vw);
}

.navbar-search-form .input-group {
  flex-wrap: nowrap;
}

.navbar-search-input {
  width: 100%;
  max-width: 100%;
}

.navbar-search-btn {
  min-width: 2.25rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

@media (max-width: 991.98px) {
  .navbar-search-form {
    width: 250px;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .navbar-search-form {
    width: 220px;
  }
}

@media (max-width: 575.98px) {
  .navbar-search-form {
    width: 100%;
    max-width: 100%;
  }
}

/* Search users list (compact, small) */
.search-users-list li a { font-weight: 600; }
.search-users-list li i { margin-left: 6px; }
.search-users-list { padding-left: 0; }

/* Mods list: horizontal user cards for search results */
.mods-user-card { min-width: 76px; }
.mods-user-card img { border-radius: 999px; }
.mods-user-avatar-shell {
  width: 40px; height: 40px;
  border-radius: 999px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #f1f3f5;
  flex-shrink: 0;
}
.mods-user-avatar-shell--sm { width: 40px; height: 40px; }
.mods-user-avatar-shell img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.mods-user-avatar-icon { color: #9aa0a6; font-size: 30px; }
.mods-user-avatar-shell--sm .mods-user-avatar-icon { font-size: 28px; }

/* Search user cards (list.php) */
.search-user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 88px;
  padding: 10px 6px 8px;
  border-radius: 12px;
  background: var(--bs-tertiary-bg, #f8f9fa);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
  color: inherit;
}
.search-user-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  text-decoration: none;
  color: inherit;
}
.search-user-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.search-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #e9ecef;
}
.search-user-avatar-default {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  color: #9aa0a6;
  font-size: 24px;
}
.search-user-badge-overlay {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 14px;
  line-height: 1;
  background: #fff;
  border-radius: 50%;
  padding: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-user-name {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .search-user-card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}
[data-bs-theme="dark"] .search-user-badge-overlay {
  background: #212529;
}
[data-bs-theme="dark"] .search-user-avatar-default {
  background: #343a40;
  color: #6c757d;
}

.home-news-strip {
  width: 100%;
}

.home-news-main,
.home-news-side-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bs-secondary-bg);
  min-height: 240px;
}

.home-news-main-image,
.home-news-side-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-news-main {
  min-height: 420px;
}

.home-news-main-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--bs-secondary-color);
}

.home-news-overlay,
.home-news-side-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  color: #fff;
}

.home-news-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.home-news-main-title {
  font-size: 1.45rem;
  font-weight: 700;
}

.home-news-main-excerpt {
  font-size: 0.96rem;
  opacity: 0.92;
}

.home-news-side-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  height: 100%;
}

.home-news-side-item {
  min-height: 204px;
}

.home-news-side-title {
  font-size: 1rem;
  font-weight: 700;
}

.home-news-side-empty {
  border: 1px dashed var(--bs-border-color);
}

.news-editor-toolbar {
  gap: 0.25rem;
}

.news-editor-surface {
  min-height: 240px;
  overflow: auto;
}

.news-editor-surface:empty::before {
  content: attr(data-placeholder);
  color: var(--bs-secondary-color);
}

.news-editor-surface img,
.news-detail-content img,
.mod-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.news-detail-hero {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.news-detail-gallery {
  background: var(--bs-secondary-bg);
}

.news-thumbs {
  scrollbar-width: thin;
}

.news-thumbs .thumb-btn.is-active .thumb-img {
  border-color: var(--theme-accent, #d66514);
  box-shadow: 0 0 0 2px rgba(214, 101, 20, 0.2);
}

.news-thumbs-strip {
  background: var(--bs-secondary-bg);
}

.news-detail-shell {
  background: transparent;
}

.news-detail-shell .similar-mods-bar {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}

.news-detail-card {
  background: var(--bs-body-bg);
}

[data-bs-theme="dark"] .news-detail-card {
  background: var(--bs-secondary-bg);
}

.news-detail-card {
  border-radius: 18px;
}

.news-back-btn {
  border-radius: 999px;
}

.news-detail-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d66514;
  font-weight: 700;
}

.news-detail-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 750;
  line-height: 1.2;
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: var(--bs-tertiary-bg);
}

.news-detail-content {
  line-height: 1.78;
  font-size: 1.03rem;
  color: var(--bs-body-color);
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
  margin-top: 1.4rem;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.news-detail-content p {
  margin-bottom: 1rem;
}

.news-detail-content ul,
.news-detail-content ol {
  margin-bottom: 1rem;
  padding-left: 1.3rem;
}

.news-detail-content blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid rgba(214, 101, 20, 0.5);
  background: rgba(214, 101, 20, 0.07);
  border-radius: 8px;
}

.news-detail-content a {
  text-decoration-thickness: 2px;
}

.news-detail-content pre {
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  overflow: auto;
}

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

@media (max-width: 767.98px) {
  .news-detail-card {
    border-radius: 14px;
  }

  .news-detail-hero {
    height: 300px;
  }

  .news-detail-content {
    font-size: 0.98rem;
    line-height: 1.7;
  }
}

@media (max-width: 991.98px) {
  .home-news-main {
    min-height: 320px;
  }

  .home-news-side-stack {
    grid-template-rows: none;
    grid-template-columns: 1fr;
  }

  .home-news-side-item {
    min-height: 180px;
  }
}


/* ==========================================================================
   6) Upload / Drag & Drop / Sortable
   ========================================================================== */

/* Dropzone */
#dropZone {
  cursor: pointer;
}

#dropZone.drop-hover {
  outline: 2px dashed rgba(255, 122, 24, 0.8);
  background: rgba(255, 122, 24, 0.06);
}

/* Sortable card container */
.sortable-card {
  position: relative;
  user-select: none;
  transition: transform 120ms ease, box-shadow 120ms ease, outline-color 120ms ease;
}

.sortable-card.dragging {
  opacity: 0.75;
  transform: scale(0.98);
}

.sortable-card.drag-target {
  outline: 2px dashed rgba(255, 122, 24, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.14);
}

/* Drag handle */
.sortable-handle {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  cursor: grab;
  opacity: 0.9;
  touch-action: none;
}

.sortable-card.dragging .sortable-handle {
  cursor: grabbing;
}

/* Verified user badge (orange) */
.verified-badge {
  color: #fd7e14; /* bootstrap orange */
  margin-left: 6px;
  font-size: 0.9em;
  vertical-align: text-bottom;
}

/* Creator verified badge (blue check) */
.creator-verified-badge {
  color: #0d6efd; /* bootstrap primary blue */
  margin-left: 6px;
  font-size: 0.9em;
  vertical-align: text-bottom;
}

/* Admin badge (red) */
.admin-badge {
  color: #dc3545; /* bootstrap danger red */
  margin-left: 6px;
  font-size: 0.9em;
  vertical-align: text-bottom;
}

/* Moderator badge (purple) */
.moderator-badge {
  color: #9c27b0; /* matches edit-user moderator color */
  margin-left: 6px;
  font-size: 0.9em;
  vertical-align: text-bottom;
}

/* Admin user flags modal */
.admin-user-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-user-modal.is-open {
  display: flex;
}

.admin-user-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.admin-user-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
}

.admin-role-option {
  background: #fff;
}

[data-bs-theme="dark"] .card-footer {
  background: #161b23 !important;
  border: 1px solid #e9ecef;
}

.admin-role-option .form-check-label {
  cursor: pointer;
}

.admin-role-option-moderator {
  border-left: 4px solid #9c27b0;
}

@media (max-width: 576px) {
  .admin-user-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .admin-user-modal-card {
    width: 100%;
    max-height: calc(100vh - 1rem);
    border-radius: 14px 14px 0 0;
    padding: 1rem;
  }

  .admin-role-option {
    padding: 0.75rem !important;
  }
}

.sortable-card:hover .sortable-handle {
  opacity: 1;
}

/* Image remove button */
.img-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 20px;
  line-height: 28px;
  cursor: pointer;
}

.sortable-card:hover .img-remove {
  background: rgba(0, 0, 0, 0.75);
}


/* ==========================================================================
   7) Home Parallax Stats (Glass)
   ========================================================================== */

.home-parallax-stats {
  background-image: url("/assets/img/hero2.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  width: 100%;
}

/* Dark overlay for readability */
.home-parallax-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Keep content above overlay */
.home-parallax-stats > .container {
  position: relative;
  z-index: 1;
}

/* Glass look cards */
.home-parallax-stats .stat-card {
  background: rgba(16, 20, 28, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
}

/* Muted text in glass cards */
.home-parallax-stats .stat-card .text-muted {
  color: rgba(255, 255, 255, 0.74) !important;
}

.home-parallax-stats .stat-icon {
  font-size: 28px;
  opacity: 0.95;
}

@media (max-width: 991.98px) {
  .home-parallax-stats {
    background-attachment: scroll;
  }
}
/* ======================================================================
  Pagination - Theme Accent
  ====================================================================== */

.pagination .page-link {
  color: #d66514;
  border-color: rgba(214, 101, 20, 0.25);
  background: #fff;
  /* border-radius: 12px; optional: passt zu deinem UI */
}

.pagination .page-link:hover {
  color: #fff;
  background: #d66514;
  border-color: #d66514;
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(214, 101, 20, 0.25);
}

/* Active page */
.pagination .page-item.active .page-link {
  color: #fff;
  background: #d66514;
  border-color: #d66514;
}

/* Disabled */
.pagination .page-item.disabled .page-link {
  color: rgba(214, 101, 20, 0.45);
  border-color: rgba(214, 101, 20, 0.15);
  background: #fff;
}

/* ======================================================================
   SEO Intro Card (Mods list)
   ====================================================================== */
.seo-intro-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  overflow: hidden;
}

.seo-intro-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
}

.seo-intro-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  background: rgba(214, 101, 20, 0.10);
  color: #d66514;
}

.seo-intro-icon i {
  font-size: 20px;
}

.seo-intro-lead {
  font-size: 15px;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
}

.seo-intro-sub {
  font-size: 13px;
  color: rgba(17, 17, 17, 0.70);
  line-height: 1.35;
}

/* mobile: tighter */
@media (max-width: 576px) {
  .seo-intro-inner {
    padding: 14px 14px;
  }
  .seo-intro-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}













/* ==========================================================================
   8) Trending Mods Strip
   ========================================================================== */

/* =========================================================
   TRENDING BAR
   ========================================================= */

.trending-bar {
  background: #f6f7f9;
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 18px 0 22px;
  background-image: url("/assets/img/hero2.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  width: 100%;
}


.trending-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.75)
  );
  z-index: 0;
  pointer-events: none;
}
.trending-bar {
  border-top: 1px solid rgb(34, 34, 34);
  border-bottom: 1px solid rgb(34, 34, 34);
  box-shadow: 0px 0px 18px 10px rgb(34, 34, 34);
}
.trending-bar > .container-fluid {
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .trending-bar {
    background-attachment: scroll;
  }
}

.trending-bar-home {
  position: relative;
  padding: 22px 0 20px; /* Platz für weichen Übergang */
  background: linear-gradient(
    180deg,
    #0d0d0d 0%,
    #1b1b1b 15%,
    #2e2e2e 40%,
    #5a5a5a 75%,
    #ffffff 100%
  );
}

[data-bs-theme="dark"] .trending-bar-home {
  background: linear-gradient(
    180deg,
    #05070a 0%,
    #0b0f14 30%,
    #10151c 65%,
    #0f1115 100%
  ) !important;
}

.trending-bar-home > * {
  position: relative;
  z-index: 1;
}



/* Title (Ã¼ber der Bar) */
.trending-bar .trending-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: #111827;
}

@media (min-width: 992px) {
  .trending-bar .trending-title {
    font-size: 1.55rem;
  }
}


/* =========================================================
   VIEWPORT
   ========================================================= */

.trend-row {
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.trend-row.is-dragging {
  cursor: grabbing;
}

/* Scrollbar komplett weg */
.trend-row::-webkit-scrollbar {
  display: none;
}
.trend-row {
  scrollbar-width: none;
}

/* WICHTIG: nichts soll â€žbrowser-dragâ€œ machen */
.trend-row a,
.trend-row img {
  -webkit-user-drag: none;
  user-select: none;
}


/* =========================================================
   TRACK (bewegter Streifen)
   ========================================================= */

.trend-track {
  display: flex;
  gap: 10px;                 /* etwas luftiger */
  padding: 10px 10px 14px;
  will-change: transform;
}


/* =========================================================
   CARDS
   ========================================================= */

.trend-card {
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

/* CARD SIZE */
.trend-img {
  position: relative;
  width: 360px;              /* deutlich grÃ¶ÃŸer */
  height: 210px;
  border-radius: 18px;
  overflow: hidden;
  background: #6c6c6c;
  border: 1px solid rgba(0,0,0,.06);
  transform: translateZ(0);
}

/* Desktop noch fetter */
@media (min-width: 1200px) {
  .trend-img {
    width: 420px;
    height: 240px;
  }
}

.trend-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .25s ease;
}

.trend-card:hover .trend-img img {
  transform: scale(1.08);
}

/* Fallback */
.trend-img-fallback {
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(0,0,0,.55);
  font-size: 12px;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.trend-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 16, 0.06) 0%,
    rgba(6, 10, 16, 0.16) 38%,
    rgba(6, 10, 16, 0.88) 100%
  );
}

.trend-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #f5f7fb;
  background: rgba(9, 13, 20, 0.7);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.trend-chip-main .bi-download {
  opacity: .9;
}

.trend-chip-sep {
  opacity: .65;
}

.trend-chip-author {
  max-width: 155px;
}

.trend-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-bottom {
  display: grid;
  gap: 8px;
}

.trend-bottom-alt {
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.22), rgba(8, 12, 18, 0.68));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 10px 11px;
  backdrop-filter: blur(7px);
}


/* TITLE */
.trend-title {
  display: block;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.trend-headline {
  align-self: flex-start;
  max-width: 100%;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.15;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  text-overflow: ellipsis;
  margin-left: 10px;
}

.trend-author-avatar {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.3);
}

.trend-author-fallback {
  font-size: 15px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {
  .trend-img {
    width: 240px;
    height: 145px;
    border-radius: 15px;
  }

  .trend-title {
    font-size: 12px;
  }

  .trend-chip-author {
    max-width: 120px;
  }
}











































/* HERO + TRENDING COMBINED */
.hero-trending {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #0d0d0d;
  box-shadow: 0 0 18px 10px #0d0d0d;
}

/* Background image layer (set your own image URL) */
.hero-trending .hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("/assets/img/hero.jpg") center/cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05);
}

/* Dark overlay for readability */
.hero-trending .hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 500px at 15% 20%, rgba(0,0,0,.35), rgba(0,0,0,.75)),
              linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.80));
}

.hero-trending .hero-inner {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: stretch; /* WICHTIG */
}

.hero-side {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-side-card {
  margin-top: auto;
}
/* Mobile: hide the big SEO card */
@media (max-width: 991px) {
  .hero-seo-card {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.hero-lead {
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 60ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .9rem;
}

.hero-seo-card {
  background: rgba(20,20,20,.55);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  color: rgba(255,255,255,.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.hero-seo-card .btn-outline-light {
  border-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
}
.hero-seo-card .btn-outline-light:hover {
  border-color: rgba(255,255,255,.35);
}

/* Right column card */
.hero-side-card {
  background: rgba(20,20,20,.55);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  color: rgba(255,255,255,.9);
}

.hero-side-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.hero-side-sub {
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}
.hero-side-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Home: Latest mods large cards */
.home-latest-wrap {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home-center-col {
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1200px) {
  .home-center-col {
    padding-left: 48px;
    padding-right: 48px;
  }
}

.home-mod-card {
  border-radius: 18px;
  overflow: hidden;
}

.home-mod-thumb {
  background: #f8f9fa;
  overflow: hidden;
  width: 100%;
  /* mobile: fixed preview height so stacked cards remain reasonable */
  height: 200px;
}

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

@media (min-width: 768px) {
  /* desktop/tablet: enforce 16:9 box when image is shown left of card */
  .home-mod-thumb {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }
}

/* Ensure filter badges on home page have the same pill/radius as list view */
.home-mod-card .badge,
.home-side-card .badge,
.home-side-list .badge {
  border-radius: 999px;
  font-weight: 600;
}

/* Home side lists */
.home-side-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 12px 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

/* Home side cards: flush outer edges */
.home-side-left {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.home-side-right {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.home-side-stack {
  position: sticky;
  top: 84px;
  align-self: flex-start;
}

.home-side-stack .home-side-card {
  margin-bottom: 0 !important;
}

.home-side-stack > .home-side-card + .home-side-card {
  margin-top: 20px;
}

.home-sticky-card {
  position: static;
}

.home-side-title {
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 8px;
  color: #111;
}

.home-side-list .list-group-item {
  border: 0;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #111;
  background: transparent;
}

.home-side-list .list-group-item:hover,
.home-side-list .list-group-item:focus {
  color: #d66514;
  background: transparent;
}

/* Separator between items in the small home side lists (categories / brands) */
.home-side-list .list-group-item + .list-group-item {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 8px;
  padding-bottom: 8px;
}

.home-recent-list .home-recent-item {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

.home-recent-media {
  flex: 0 0 auto;
}

.home-recent-thumb {
  width: 52px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.home-recent-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bs-border-color, rgba(0,0,0,.15));
}

.home-recent-content {
  min-width: 0;
  flex: 1 1 auto;
}

.home-recent-title {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-recent-meta {
  margin-top: 2px;
  font-size: .74rem;
  color: var(--bs-secondary-color, #6c757d);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Trending panel inside hero */
.trending-panel {
  background: rgba(10,10,10,.45);
  border: none;
  border-top: 1px solid rgba(255,255,255,.10);
  border-radius: 0;
  padding: 14px 24px 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
  width: 100%;
}

.trending-panel-list {
  padding-left: 0;
  padding-right: 0;
}

.trending-panel-list > .d-flex {
  padding-left: 10px;
  padding-right: 10px;
}

.trending-panel-list .trend-row-list .trend-track {
  padding-left: 0;
  padding-right: 0;
}

/* If you want the trend headline lighter */
.trend-headline {
  color: rgba(255,255,255,.95);
}

/* Optional: ensure your existing trend cards pop a bit */
.trend-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}

.trend-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.0));
}

/* Keep old background bar from fighting with this section */
.trending-bar {
  background: transparent !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


/* Comments layout */
.comments-list {
  max-width: 820px;
}

.comment-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 12px;
}

.comment-avatar img,
.reply-avatar img {
  object-fit: cover;
  border-radius: 50%;
}

.comment-avatar img,
.reply-avatar img,
.chat-avatar-sm,
.chat-avatar-md,
.profile-user-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-user-avatar {
  border-radius: 50%;
}

.reply-card {
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  padding: 8px;
  margin-left: 52px;
}

.comment-replies {
  margin-left: 52px;
}

.comment-content {
  white-space: pre-wrap;
}

.mod-comments-wrap {
  max-width: 920px;
  margin-right: auto;
}

.reply-form textarea {
  resize: vertical;
}

.chat-conversation-list {
  max-height: 65vh;
  overflow: auto;
}

.chat-main-card {
  min-height: 65vh;
}

.chat-conversation-item {
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.chat-conversation-item.active {
  background: #eef3ff !important;
  border: 1px solid #cfdcff !important;
  color: #1f2937 !important;
}

.chat-conversation-item.active .text-muted {
  color: #5f6b7a !important;
}

.chat-messages {
  overflow: auto;
  max-height: 52vh;
  padding-right: 0.25rem;
}

.chat-msg-row {
  display: flex;
  margin-bottom: 0.5rem;
}

.chat-msg-row.is-mine {
  justify-content: flex-end;
}

.chat-msg-bubble {
  max-width: min(82%, 560px);
  background: #f8f9fb;
  border: 1px solid rgba(13, 18, 28, 0.12);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
}

.chat-msg-row.is-mine .chat-msg-bubble {
  background: color-mix(in srgb, var(--theme-accent) 14%, #f8f9fb);
  border-color: color-mix(in srgb, var(--theme-accent) 24%, #d9dee6);
}

.chat-msg-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.chat-msg-text a:hover,
.chat-msg-text a:focus {
  opacity: 0.9;
}

.chat-msg-time {
  font-size: 0.72rem;
  color: #6c757d;
  margin-top: 0.3rem;
}

.chat-msg-read-status {
  font-weight: 600;
  font-size: 0.7rem;
  opacity: 0.9;
}

.chat-profile-link,
.chat-profile-link:visited,
.chat-profile-link:hover,
.chat-profile-link:focus {
  color: inherit !important;
  text-decoration: none;
}

.chat-profile-link:hover,
.chat-profile-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-name-truncate {
  display: inline-block;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



/* ==========================================================================
   Author link underline on hover (card + direct hover)
   ========================================================================== */

/* Default: no underline */
a[href^="/u/"] {
  text-decoration: none !important;
}

/* Equal-height cards: make clickable wrapper fill its column */
.row > [class*="col"] > .card-clickable {
  height: 100%;
}

/* User links without hover underline (except .info-link) */
a[href^="/u/"]:not(.info-link):hover,
a[href^="/u/"]:not(.info-link):focus {
  text-decoration: none !important;
}

.card-clickable:hover a[href^="/u/"]:not(.info-link),
.card-clickable:focus a[href^="/u/"]:not(.info-link) {
  text-decoration: none !important;
}

/* Category and Brand filter links - no underline on hover (except .info-link) */
a[href*="category="]:not(.info-link),
a[href*="brand="]:not(.info-link) {
  text-decoration: none !important;
}

a[href*="category="]:not(.info-link):hover,
a[href*="category="]:not(.info-link):focus,
a[href*="brand="]:not(.info-link):hover,
a[href*="brand="]:not(.info-link):focus {
  text-decoration: none !important;
}

/* Info box links (detail page) - underline on hover */
.info-link {
  text-decoration: none !important;
  transition: text-decoration 0.2s ease;
}

.info-link:hover,
.info-link:focus {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* Creator link hover underline (mod list) */
.creator-link:hover,
.creator-link:focus {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.similar-mods-bar {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  background: #f8f9fb;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 0 1.25rem;
}

[data-bs-theme="dark"] .similar-mods-bar {
  background: #181d26 !important;
  border-top: 1px solid #2b3340 !important;
  border-bottom: 1px solid #2b3340 !important;
}
[data-bs-theme="dark"] .similar-mods-row {
  background: transparent !important;
}


.similar-mods-head a {
  color: var(--theme-accent);
  font-weight: 600;
}

.similar-mods-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.similar-mod-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

[data-bs-theme="dark"] .similar-mod-card {
  background: #181d26 !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.similar-mod-card:hover,
.similar-mod-card:focus {
  color: inherit;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--theme-accent) 35%, transparent);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.08);
}

.similar-mod-thumb-wrap {
  width: 100%;
  height: 140px;
  background: #f1f3f5;
}

[data-bs-theme="dark"] .similar-mod-thumb-wrap {
  background: #232a36 !important;
}

.similar-mod-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.similar-mod-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #6c757d;
}

.similar-mod-body {
  padding: 0.75rem 0.8rem 0.85rem;
}

.similar-mod-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
  min-height: 2.35em;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.similar-mod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  color: #6c757d;
  font-size: 0.77rem;
}

@media (max-width: 1199.98px) {
  .similar-mods-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .similar-mods-row {
    display: flex;
    overflow-x: auto;
    gap: 0.7rem;
    padding-bottom: 0.2rem;
    scroll-snap-type: x proximity;
  }

  .similar-mod-card {
    flex: 0 0 82vw;
    max-width: 360px;
    scroll-snap-align: start;
  }
}

/* ======================================================================
   Accent Theme Variable (single source)
   Change --theme-accent to recolor all orange elements globally.
   ====================================================================== */
:root {
  --theme-accent: #d66514;
}

.theme-accent {
  color: var(--theme-accent) !important;
}

.theme-accent-italic {
  color: var(--theme-accent) !important;
  font-style: italic;
}

.home-hero-suffix-glow {
  text-shadow:
    0 0 8px color-mix(in srgb, var(--theme-accent) 55%, transparent),
    0 0 18px color-mix(in srgb, var(--theme-accent) 38%, transparent);
}

/* Global Bootstrap primary button theming */
.btn-primary {
  --bs-btn-bg: var(--theme-accent);
  --bs-btn-border-color: var(--theme-accent);
  --bs-btn-hover-bg: color-mix(in srgb, var(--theme-accent) 72%, #000);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--theme-accent) 72%, #000);
  --bs-btn-active-bg: color-mix(in srgb, var(--theme-accent) 68%, #000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--theme-accent) 68%, #000);
  --bs-btn-focus-shadow-rgb: 0, 0, 0;
}

.btn-outline-primary {
  --bs-btn-color: var(--theme-accent);
  --bs-btn-border-color: var(--theme-accent);
  --bs-btn-hover-bg: var(--theme-accent);
  --bs-btn-hover-border-color: var(--theme-accent);
  --bs-btn-active-bg: color-mix(in srgb, var(--theme-accent) 72%, #000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--theme-accent) 72%, #000);
  --bs-btn-focus-shadow-rgb: 0, 0, 0;
}

.navbar-user-dropdown-menu .dropdown-item .bi {
  color: var(--theme-accent);
}

.navbar-user-dropdown-menu .dropdown-item:hover,
.navbar-user-dropdown-menu .dropdown-item:focus {
  background: color-mix(in srgb, var(--theme-accent) 12%, transparent);
}

.user-social-link:hover,
.user-social-link:focus {
  border-color: color-mix(in srgb, var(--theme-accent) 45%, transparent);
}

.ngm-accent {
  color: var(--theme-accent);
  text-shadow: 0 0 20px color-mix(in srgb, var(--theme-accent) 35%, transparent);
}

.hero-section .btn-primary,
.btn-theme-accent {
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
}

.btn-theme-accent:hover,
.btn-theme-accent:active,
.btn-theme-accent.active,
.btn-theme-accent:focus,
.btn-theme-accent:focus-visible {
  background-color: color-mix(in srgb, var(--theme-accent) 72%, #000) !important;
  border-color: color-mix(in srgb, var(--theme-accent) 72%, #000) !important;
}

.btn-theme-accent:focus,
.btn-theme-accent:focus-visible,
.btn-theme-accent:not(:disabled):not(.disabled):active:focus {
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--theme-accent) 35%, transparent);
}

.btn-theme-accent-outline {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
}

.btn-theme-accent-outline:hover {
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
}

.btn-theme-accent-outline:active,
.btn-theme-accent-outline.active {
  background-color: color-mix(in srgb, var(--theme-accent) 72%, #000) !important;
  border-color: color-mix(in srgb, var(--theme-accent) 72%, #000) !important;
}

.btn-theme-accent-outline:focus,
.btn-theme-accent-outline:focus-visible,
.btn-theme-accent-outline:not(:disabled):not(.disabled):active:focus {
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--theme-accent) 35%, transparent);
}

.btn-theme-accent-outline.disabled,
.btn-theme-accent-outline:disabled {
  color: var(--theme-accent);
}

.filter-badge .filter-icon {
  background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
  color: var(--theme-accent);
}

.filter-badge:hover .filter-icon,
.filter-badge:focus .filter-icon {
  background: var(--theme-accent);
}

.vote-btn {
  background-color: color-mix(in srgb, var(--theme-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--theme-accent) 35%, transparent);
  color: color-mix(in srgb, var(--theme-accent) 85%, #000);
}

.vote-btn:hover {
  background-color: color-mix(in srgb, var(--theme-accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--theme-accent) 55%, transparent);
  color: color-mix(in srgb, var(--theme-accent) 72%, #000);
}

.vote-btn.is-active {
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-accent) 40%, transparent);
}

.vote-btn.is-active:hover {
  background-color: color-mix(in srgb, var(--theme-accent) 72%, #000);
  border-color: color-mix(in srgb, var(--theme-accent) 72%, #000);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-accent) 50%, transparent);
}

#dropZone.drop-hover {
  outline: 2px dashed color-mix(in srgb, var(--theme-accent) 80%, transparent);
  background: color-mix(in srgb, var(--theme-accent) 6%, transparent);
}

.admin-user-verified-icon {
  color: var(--theme-accent);
}

.pagination .page-link {
  color: var(--theme-accent);
  border-color: color-mix(in srgb, var(--theme-accent) 25%, transparent);
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--theme-accent) 25%, transparent);
}

.pagination .page-item.disabled .page-link {
  color: color-mix(in srgb, var(--theme-accent) 45%, transparent);
  border-color: color-mix(in srgb, var(--theme-accent) 15%, transparent);
}

.seo-intro-icon {
  background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
  color: var(--theme-accent);
}

.news-detail-kicker {
  color: var(--theme-accent);
}

.news-detail-content blockquote {
  border-left: 4px solid color-mix(in srgb, var(--theme-accent) 50%, transparent);
  background: color-mix(in srgb, var(--theme-accent) 7%, transparent);
}

.news-thumbs .thumb-btn.is-active .thumb-img {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-accent) 20%, transparent);
}

.verified-badge {
  color: var(--theme-accent);
}

.sortable-card.drag-target {
  outline: 2px dashed color-mix(in srgb, var(--theme-accent) 80%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent) 14%, transparent);
}

.home-side-list .list-group-item:hover,
.home-side-list .list-group-item:focus {
  color: var(--theme-accent);
}

/* ==========================================================================
   Dark Theme Hardening (light theme untouched)
   ========================================================================== */
[data-bs-theme="dark"] {
  color-scheme: dark;
}

[data-bs-theme="dark"] body {
  background: #0f1115;
  color: #e9edf3;
}

[data-bs-theme="dark"] .navbar {
  border-color: #2a2f38 !important;
  background: #161a22 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .navbar .nav-link,
[data-bs-theme="dark"] .navbar .navbar-brand,
[data-bs-theme="dark"] .navbar .navbar-toggler {
  color: #e6ebf2 !important;
}

[data-bs-theme="dark"] .navbar .nav-link:hover,
[data-bs-theme="dark"] .navbar .nav-link:focus,
[data-bs-theme="dark"] .navbar .dropdown-toggle:hover,
[data-bs-theme="dark"] .navbar .dropdown-toggle:focus {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .navbar .navbar-search-input,
[data-bs-theme="dark"] .navbar .btn-outline-secondary {
  background-color: #1a1f28;
  border-color: #343c49;
  color: #e8edf4;
}

[data-bs-theme="dark"] .navbar .btn-outline-secondary:hover,
[data-bs-theme="dark"] .navbar .btn-outline-secondary:focus {
  background-color: #242c38;
  border-color: #495467;
  color: #fff;
}

[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .navbar-user-dropdown-menu {
  background: #171c24;
  border-color: #2f3744;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .dropdown-item {
  color: #e8edf4;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus,
[data-bs-theme="dark"] .dropdown-item.active {
  color: #fff;
  background: #253042;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .offcanvas,
[data-bs-theme="dark"] .seo-intro-card,
[data-bs-theme="dark"] .home-side-card,
[data-bs-theme="dark"] .home-mod-card,
[data-bs-theme="dark"] .comment-card,
[data-bs-theme="dark"] .reply-card,
[data-bs-theme="dark"] .similar-mod-card,
[data-bs-theme="dark"] .chat-main-card,
[data-bs-theme="dark"] .trend-card,
[data-bs-theme="dark"] .admin-user-modal-card,
[data-bs-theme="dark"] .hero-seo-card,
[data-bs-theme="dark"] .hero-side-card {
  background: #161b23 !important;
  border-color: #2b3340 !important;
  color: #e8edf4 !important;
}

[data-bs-theme="dark"] .card-footer,
[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .table,
[data-bs-theme="dark"] .table thead,
[data-bs-theme="dark"] .table tbody,
[data-bs-theme="dark"] .table td,
[data-bs-theme="dark"] .table th {
  border-color: #2d3644 !important;
}

[data-bs-theme="dark"] .card-footer,
[data-bs-theme="dark"] .card-header {
  background: #181d26 !important;
  color: #e8edf4 !important;
}

[data-bs-theme="dark"] .chat-conversation-item.active {
  background: #253042 !important;
  border: 1px solid #3d4d64 !important;
  color: #e8edf4 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

[data-bs-theme="dark"] .chat-conversation-item.active .text-muted {
  color: #b5c0cf !important;
}

[data-bs-theme="dark"] .chat-msg-bubble {
  background: #181d26;
  border-color: #2b3340;
}

[data-bs-theme="dark"] .chat-msg-row.is-mine .chat-msg-bubble {
  background: color-mix(in srgb, var(--theme-accent) 11%, #181d26);
  border-color: color-mix(in srgb, var(--theme-accent) 28%, #2b3340);
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: #1a2029;
  color: #e8edf4;
}

[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: #253041;
  color: #fff;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text,
[data-bs-theme="dark"] textarea,
[data-bs-theme="dark"] select {
  background: #141923 !important;
  border-color: #36404f !important;
  color: #e9edf3 !important;
}

[data-bs-theme="dark"] .form-control::placeholder,
[data-bs-theme="dark"] textarea::placeholder {
  color: #aeb8c7;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  border-color: color-mix(in srgb, var(--theme-accent) 55%, #36404f) !important;
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--theme-accent) 28%, transparent) !important;
}

[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .text-bg-light {
  background-color: #161b23 !important;
  color: #e8edf4 !important;
}

[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .fw-semibold,
[data-bs-theme="dark"] .fw-bold {
  color: #eef2f8 !important;
}

[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .small.text-muted {
  color: #aeb8c7 !important;
}

[data-bs-theme="dark"] .filter-badge,
[data-bs-theme="dark"] .badge.text-bg-light,
[data-bs-theme="dark"] .badge.border {
  background: #1c2430 !important;
  border-color: #3a4556 !important;
  color: #dce4ef !important;
}

[data-bs-theme="dark"] .pagination .page-link {
  background: #1a2029 !important;
  border-color: #3a4556 !important;
  color: #dce4ef !important;
}

[data-bs-theme="dark"] .pagination .page-link:hover,
[data-bs-theme="dark"] .pagination .page-link:focus,
[data-bs-theme="dark"] .pagination .page-item.active .page-link {
  background: var(--theme-accent) !important;
  border-color: var(--theme-accent) !important;
  color: #fff !important;
}

[data-bs-theme="dark"] .pagination .page-item.disabled .page-link {
  background: #151a22 !important;
  border-color: #2b3340 !important;
  color: #7f8b9d !important;
}

[data-bs-theme="dark"] .stat-pill {
  background: #1f2833 !important;
  border-color: #3a4556 !important;
  color: #dce4ef !important;
}

[data-bs-theme="dark"] .stat-pill i {
  color: var(--theme-accent) !important;
}

[data-bs-theme="dark"] .btn-outline-light {
  color: #e7edf6;
  border-color: #d4dbe5;
}

[data-bs-theme="dark"] .btn-outline-light:hover,
[data-bs-theme="dark"] .btn-outline-light:focus {
  color: #0f1115;
  background: #e7edf6;
  border-color: #e7edf6;
}

[data-bs-theme="dark"] .alert-light {
  background: #1a2029;
  border-color: #344154;
  color: #dbe3ef;
}

[data-bs-theme="dark"] a {
  color: #9fc5ff;
}

[data-bs-theme="dark"] a:hover,
[data-bs-theme="dark"] a:focus {
  color: #c3dbff;
}

[data-bs-theme="dark"] .mods-user-card .bi-person-circle {
  color: #c0cada !important;
}

[data-bs-theme="dark"] .mods-user-avatar-shell {
  background: #222a35;
}

[data-bs-theme="dark"] .mods-user-avatar-icon {
  color: #c0cada;
}

[data-bs-theme="dark"] .user-mod-thumb-placeholder,
[data-bs-theme="dark"] .ratio.bg-light {
  background: #1b222d !important;
  border-color: #3a4454 !important;
}

[data-bs-theme="dark"] footer {
  background: #131820 !important;
  border-color: #2a313e !important;
}

[data-bs-theme="dark"] .home-parallax-stats .stat-card {
  background: rgba(16, 20, 28, 0.42) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
}

[data-bs-theme="dark"] .home-parallax-stats .stat-card .text-muted {
  color: rgba(255, 255, 255, 0.78) !important;
}

[data-bs-theme="dark"] .home-parallax-stats .stat-card .counter {
  color: #fff !important;
}

[data-bs-theme="dark"] .bg-body,
[data-bs-theme="dark"] .bg-body-tertiary {
  background-color: #141923 !important;
}

[data-bs-theme="dark"] .text-body,
[data-bs-theme="dark"] .text-body-secondary,
[data-bs-theme="dark"] .text-reset,
[data-bs-theme="dark"] .link-dark {
  color: #e8edf4 !important;
}

[data-bs-theme="dark"] .admin-role-option,
[data-bs-theme="dark"] .download-link-box,
[data-bs-theme="dark"] .mods-toolbar .card,
[data-bs-theme="dark"] .cta-block,
[data-bs-theme="dark"] .home-side-left,
[data-bs-theme="dark"] .home-side-right,
[data-bs-theme="dark"] .mod-card-xl,
[data-bs-theme="dark"] .mod-card-lg {
  background: #161b23 !important;
  border-color: #2b3340 !important;
  color: #e8edf4 !important;
}

[data-bs-theme="dark"] .home-side-title,
[data-bs-theme="dark"] .home-side-list .list-group-item,
[data-bs-theme="dark"] .home-recent-title,
[data-bs-theme="dark"] .seo-intro-lead,
[data-bs-theme="dark"] .seo-intro-sub {
  color: #e8edf4 !important;
}

[data-bs-theme="dark"] .home-side-list .list-group-item + .list-group-item {
  border-top-color: #2f3744 !important;
}

[data-bs-theme="dark"] .trending-bar-home {
  background: linear-gradient(
    180deg,
    #05070a 0%,
    #0b0f14 30%,
    #10151c 65%,
    #0f1115 100%
  ) !important;
}

/* Catch remaining inline light backgrounds */
[data-bs-theme="dark"] [style*="background:#fff"],
[data-bs-theme="dark"] [style*="background: #fff"],
[data-bs-theme="dark"] [style*="background:#ffffff"],
[data-bs-theme="dark"] [style*="background: #ffffff"],
[data-bs-theme="dark"] [style*="background:#f8f9fa"],
[data-bs-theme="dark"] [style*="background: #f8f9fa"],
[data-bs-theme="dark"] [style*="background:#f1f3f5"],
[data-bs-theme="dark"] [style*="background: #f1f3f5"],
[data-bs-theme="dark"] [style*="background:#f0f0f0"],
[data-bs-theme="dark"] [style*="background: #f0f0f0"],
[data-bs-theme="dark"] [style*="background:#e7f1ff"],
[data-bs-theme="dark"] [style*="background: #e7f1ff"] {
  background: #1a2029 !important;
  color: #e8edf4 !important;
  border-color: #334051 !important;
}

/* Catch remaining inline dark text colors */
[data-bs-theme="dark"] [style*="color:#000"],
[data-bs-theme="dark"] [style*="color: #000"],
[data-bs-theme="dark"] [style*="color:#111"],
[data-bs-theme="dark"] [style*="color: #111"],
[data-bs-theme="dark"] [style*="color:#1f2328"],
[data-bs-theme="dark"] [style*="color: #1f2328"],
[data-bs-theme="dark"] [style*="color:black"],
[data-bs-theme="dark"] [style*="color: black"] {
  color: #e8edf4 !important;
}

[data-bs-theme="dark"] .navbar .theme-accent,
[data-bs-theme="dark"] .theme-accent,
[data-bs-theme="dark"] .theme-accent-italic {
  color: var(--theme-accent) !important;
}

[data-bs-theme="dark"] .site-info-bar {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

[data-bs-theme="dark"] .site-info-bar-btn {
  border-color: rgba(0, 0, 0, 0.24);
}

/* Reduce harsh color animations in dark mode */
[data-bs-theme="dark"] a,
[data-bs-theme="dark"] .btn,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .nav-link,
[data-bs-theme="dark"] .dropdown-item,
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .badge {
  transition: none !important;
}

[data-bs-theme="dark"] .admin-hub .alert-warning,
[data-bs-theme="dark"] .admin-hub .text-bg-warning,
[data-bs-theme="dark"] .admin-hub .badge.bg-warning {
  color: #111 !important;
}

[data-bs-theme="dark"] .badge.text-bg-warning.text-dark,
[data-bs-theme="dark"] .text-bg-warning.text-dark {
  color: #111 !important;
}

[data-bs-theme="dark"] .admin-hub .btn-theme-accent,
[data-bs-theme="dark"] .admin-hub .btn-theme-accent:hover,
[data-bs-theme="dark"] .admin-hub .btn-theme-accent:focus,
[data-bs-theme="dark"] .admin-hub .btn-theme-accent:focus-visible,
[data-bs-theme="dark"] .admin-hub .btn-theme-accent:active,
[data-bs-theme="dark"] .admin-hub .btn-theme-accent.active {
  color: #fff !important;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}

[data-bs-theme="dark"] .admin-hub .btn-primary,
[data-bs-theme="dark"] .admin-hub .btn-primary:hover,
[data-bs-theme="dark"] .admin-hub .btn-primary:focus,
[data-bs-theme="dark"] .admin-hub .btn-primary:focus-visible,
[data-bs-theme="dark"] .admin-hub .btn-primary:active,
[data-bs-theme="dark"] .admin-hub .btn-primary.active,
[data-bs-theme="dark"] .admin-hub a.btn-primary,
[data-bs-theme="dark"] .admin-hub a.btn-primary:visited {
  color: #fff !important;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}

.admin-hub-tabs {
  border: 1px solid var(--bs-border-color);
}

.admin-hub-tablist {
  gap: 0.4rem;
  scrollbar-width: thin;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.1rem;
}

.admin-hub-tablist .nav-item {
  flex: 0 0 auto;
}

.admin-hub-tablist .nav-link {
  border-radius: 999px;
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.admin-hub-tablist .nav-link:hover {
  border-color: var(--theme-accent);
  color: var(--bs-body-color);
}

.admin-hub-tablist .nav-link.active {
  border-color: var(--theme-accent);
  background: color-mix(in srgb, var(--theme-accent) 16%, transparent);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .admin-hub-tablist .nav-link.active {
  background: color-mix(in srgb, var(--theme-accent) 22%, transparent);
}

@media (min-width: 768px) {
  .admin-hub-tablist {
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 0;
  }
}

/* ── Long-username truncation protection ──────────────────────────────── */

/* Navbar dropdown toggle — limit width so long names don't push layout */
.navbar-user-dropdown {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mod/home card author badges — prevent oversized filter-badge pills */
.filter-badge.creator-link {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

/* Chat active conversation header name */
.chat-profile-link > span:first-child {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

/* Mod detail sidebar — creator name in info area */
.info-link {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

/* ── Mod card image crop fix ─────────────────────── */
.mod-card-xl .ratio img {
  object-fit: cover !important;
}

/* ── Detail carousel 16:9 crop (prevent stretch) ─── */
#modGallery .ratio img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

/* ── Upload preview thumbnails ───────────────────── */
.upload-preview-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}
.upload-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Image Lightbox ──────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
  transform: scale(.92);
  transition: transform .25s ease;
  cursor: default;
}
.lightbox-overlay.active img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background .15s ease;
  z-index: 1;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, .3);
}

/* ── Admin thumbnail 16:9 ────────────────────────── */
.admin-thumb-16x9 {
  width: 80px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bs-light);
}
.admin-thumb-placeholder {
  width: 80px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
}

