:root {
  --primary-color: #22c55e;
  /* --primary-text: accessible text variant of --primary-color.
     Dark  theme: #22c55e (9.8:1 on #111) — passes WCAG AA.
     Light theme: #c2410c (5.6:1 on white) — passes WCAG AA.
     Use var(--primary-text) for ANY text/icon; use var(--primary-color) for
     decorative borders, backgrounds, or large ornamental headings only. */
  --primary-text: #22c55e;
  --bg-dark: #111;
  --bg-image-dark: url("/assets/Images/AstralForge_Background_Dark.webp");
  --bg-image-light: url("/assets/Images/AstralForge_Background_Light.webp");
  --bg-blur: 2px;
  --hero-blur: 0px;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--primary-text);
  outline-offset: 2px;
}

/* Keyboard users: first tab stop jumps straight to the page content */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--primary-color);
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

#main-content:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Scroll-reveal sections must stay visible without their animation */
  .fade-in,
  .slide-up,
  .slide-left,
  .slide-right {
    opacity: 1 !important;
    transform: none !important;
  }
}

html,
body {
  height: 100%;
  background: #000;
  overflow-x: hidden;
}

body {
  font-family: "Roboto", "Segoe UI", sans-serif;
  color: #fff;
  line-height: 1.6;
  position: relative;
  isolation: isolate;
  padding-top: 100px;
}

body {
  top: 0 !important;
}

#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget-icon {
  display: none !important;
}

body.has-alert {
  padding-top: 144px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-image-dark) center center / cover no-repeat;
  filter: blur(var(--bg-blur));
  z-index: -2;
  transform: scale(1.03) translateZ(0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
  transform: translateZ(0);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

header.has-alert {
  top: 44px;
}

.site-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  background: rgba(34, 197, 94, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-alert__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.site-alert__label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.site-alert__message {
  opacity: 0.95;
}

.site-alert__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-alert--maintenance {
  background: rgba(245, 158, 11, 0.2);
}

.site-alert--hotfix {
  background: rgba(34, 197, 94, 0.2);
}

.site-alert--info {
  background: rgba(59, 130, 246, 0.2);
}

header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  height: 40px;
}

nav {
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-container {
  position: relative;
  margin-right: 10px;
}

.search-input {
  padding: 8px 16px 8px 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  width: 200px;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  width: 250px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-top: 8px;
  display: none;
  z-index: 1001;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: rgba(34, 197, 94, 0.15);
}

.search-result-item a {
  color: #fff;
  text-decoration: none;
}

.search-result-title {
  font-weight: 500;
  color: var(--primary-text);
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary-text);
}

/* ================= ACCESSIBLE FOCUS STYLES (WCAG 2.4.11) ================= */
/* 3px solid outline with offset ensures 3:1 contrast against surrounding UI */

*:focus-visible {
  outline: 3px solid var(--primary-text);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Dark-bg elements: white focus ring is more legible than green */
nav a:focus-visible,
header *:focus-visible {
  outline-color: #fff;
}

/* Light theme: --primary-text is overridden to #c2410c (orange, 5.6:1 on white) */

/* ================= ACCESSIBLE FOCUS STYLES END ========================== */

/* ================= THEME TOGGLE ================= */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--primary-text);
  outline-offset: 3px;
}

.theme-toggle-track {
  width: 36px;
  height: 18px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
}

.theme-toggle-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(0);
  transition: transform 0.2s ease, background 0.2s ease;
}

/* ================= LIGHT THEME OVERRIDES ================= */

html[data-theme="light"] {
  color-scheme: light;
  /* Override primary to orange — accessible on white (5.6:1) */
  --primary-color: #ea580c;
  --primary-text: #c2410c;
}

html[data-theme="light"] body {
  color: #1b1b1b;
  background: #f6f4f1;
}

html[data-theme="light"] body::before {
  background: var(--bg-image-light) center center / cover no-repeat;
  filter: blur(var(--bg-blur)) brightness(1.08) saturate(0.85);
}

html[data-theme="light"] body::after {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

html[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .headerlogo a {
  color: #1b1b1b;
}

html[data-theme="light"] .headerlogo a:hover {
  color: #c2410c;
}

html[data-theme="light"] nav a {
  color: #1b1b1b;
}

html[data-theme="light"] nav a:hover {
  color: #c2410c;
}

html[data-theme="light"] .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .nav-dropdown-menu a {
  color: #333;
}

html[data-theme="light"] .nav-dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1b1b1b;
}

html[data-theme="light"] .nav-dropdown > a::after {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><polygon points="5,7 1,3 9,3" fill="%23222222"/></svg>') no-repeat center;
  background-size: contain;
}

html[data-theme="light"] .nav-dropdown-label {
  color: #333;
}

html[data-theme="light"] .nav-dropdown-label::after {
  opacity: 0.6;
}

html[data-theme="light"] .nav-dropdown-item:hover .nav-dropdown-label::after {
  opacity: 1;
}

html[data-theme="light"] .nav-dropdown-label:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1b1b1b;
}

html[data-theme="light"] .nav-submenu {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .nav-submenu a {
  color: #333;
}

html[data-theme="light"] .nav-submenu a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1b1b1b;
}

html[data-theme="light"] .hero {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

html[data-theme="light"] .glass-card,
html[data-theme="light"] .about,
html[data-theme="light"] .hub-card,
html[data-theme="light"] .readme-layout,
html[data-theme="light"] .gallery-section {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .search-result-item {
  color: #333;
}

html[data-theme="light"] .carousel-dots .dot {
  background: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .carousel-dots .dot:hover {
  background: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .readme-nav a,
html[data-theme="light"] .readme-content p,
html[data-theme="light"] .requirements-list li {
  color: #333;
}

html[data-theme="light"] .readme-content .warning {
  color: #b40000;
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.75);
  color: #1b1b1b;
  border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .theme-toggle-track {
  background: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(16px);
  background: #1b1b1b;
}

html[data-theme="light"] .btn-primary {
  background-color: rgba(234, 88, 12, 0.12);
  color: #c2410c;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

html[data-theme="light"] .btn-primary:hover {
  background-color: rgba(234, 88, 12, 0.2);
  border-color: rgba(234, 88, 12, 0.5);
  color: #9a3412;
}

html[data-theme="light"] .search-input {
  background: rgba(255, 255, 255, 0.9);
  color: #1b1b1b;
  border-color: rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .search-input::placeholder {
  /* rgba(27,27,27,0.6) ≈ #767676 = 4.5:1 (borderline); use #595959 = 7:1 */
  color: #595959;
}

html[data-theme="light"] .search-input:focus {
  background: #fff;
  border-color: #c2410c;
}

html[data-theme="light"] .search-results {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .search-result-item a {
  color: #1b1b1b;
}

html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero p {
  color: #1b1b1b;
  text-shadow: none;
}

html[data-theme="light"] .about,
html[data-theme="light"] .MediaSection,
html[data-theme="light"] .gallery-section {
  background: rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .gallery-section h2 {
  color: #1b1b1b;
}

html[data-theme="light"] .gallery-text-block {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .gallery-text-block p {
  color: #333;
}

html[data-theme="light"] .feature-text h3 {
  color: #1b1b1b;
}

html[data-theme="light"] .feature-text {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .feature-text p,
html[data-theme="light"] .section-text,
html[data-theme="light"] .utility-card p,
html[data-theme="light"] .note {
  color: #3a3a3a;
}

html[data-theme="light"] .feature-text a {
  /* #9a3412 = 7.3:1 on white — passes WCAG AA */
  color: #9a3412;
}

html[data-theme="light"] .feature-text a:hover {
  color: #7c2d12;
  border-bottom-color: #9a3412;
  text-shadow: 0 0 8px rgba(154, 52, 18, 0.2);
}

html[data-theme="light"] .readme-section h3.sub-heading {
  color: #1b1b1b;
}

html[data-theme="light"] .link-list a {
  color: #0b5ed7;
}

html[data-theme="light"] .code-block {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .code-block code {
  color: #1b1b1b;
}

html[data-theme="light"] .utility-card {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] footer {
  background: #f0ede8;
  color: #555;
}

html[data-theme="light"] .contributors-list,
html[data-theme="light"] .contributors-card ul,
html[data-theme="light"] .contributors-amount,
html[data-theme="light"] .contributors-row,
html[data-theme="light"] .contributors-top {
  color: #3a3a3a;
}

html[data-theme="light"] .contributors-card,
html[data-theme="light"] .contributors-row {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .contributors-row--header {
  color: #1b1b1b;
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .contributors-note {
  color: rgba(27, 27, 27, 0.65);
}

html[data-theme="light"] .contributors-btn {
  color: #1b1b1b;
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .contributors-btn:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .project-banner {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 60%),
    var(--banner-image) center center / cover no-repeat;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .project-stat {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .project-stat__value {
  color: #c2410c;
}

html[data-theme="light"] .project-stat__label {
  color: rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] .project-banner__eyebrow {
  color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .project-banner__title {
  color: #1b1b1b;
  text-shadow: none;
}

html[data-theme="light"] .project-banner__subtitle {
  color: rgba(0, 0, 0, 0.7);
}

/* ================= NAV DROPDOWN ================= */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* Dropdown panel */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  min-width: 180px;
  padding: 10px 0;

  background: rgba(0, 0, 0, 0.589);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

  display: flex;
  flex-direction: column;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Dropdown links */
.nav-dropdown-menu a {
  padding: 12px 20px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><polygon points="5,7 1,3 9,3" fill="white"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0.8;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Show on hover */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  pointer-events: auto;
}

/* Nested dropdown styles */
.nav-dropdown-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.nav-dropdown-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: -16px;
  width: 16px;
  height: 100%;
}

.nav-dropdown-label {
  padding: 12px 20px;
  color: #ccc;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.nav-dropdown-label::after {
  content: "›";
  margin-left: 12px;
  font-size: 1.3rem;
  font-weight: normal;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown-item:hover .nav-dropdown-label::after {
  opacity: 1;
  transform: translateX(2px);
}

.nav-dropdown-label:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-submenu {
  position: absolute;
  left: calc(100% - 2px);
  top: 0;
  min-width: 200px;
  padding: 10px 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-left: 0;
  z-index: 1001;
}

.nav-dropdown-item:hover .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Keep submenu open when hovering over it */
.nav-submenu:hover {
  opacity: 1;
  pointer-events: auto;
}

.nav-submenu a {
  padding: 10px 20px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  white-space: nowrap;
}

.nav-submenu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding-left: 24px;
}

.hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(var(--hero-blur));
  -webkit-backdrop-filter: blur(var(--hero-blur));
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);

  position: relative;
  z-index: 1;
  margin-top: -100px;
}

body.has-alert .hero {
  margin-top: -144px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.hero p {
  max-width: 800px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 28px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.4);
}

.container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.glass-card {
  position: relative;
  width: 450px;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.glass-card:hover {
  transform: scale(1.03);
}

.glass-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover::before {
  opacity: 1;
}

.card-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.glass-card:hover .card-label {
  opacity: 1;
}

.about {
  background: var(--bg-dark);
  padding: 80px 20px;
  text-align: center;
}

.about img {
  margin: 0 auto 30px;
  width: min(320px, 60%);
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.about h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.2rem);
}


/* ================= CREATOR SPOTLIGHT ================= */

.creator-spotlight {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.creator-spotlight .section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 60px;
  color: #fff;
}

.creator-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 50px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.creator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(34, 197, 94, 0.15);
}

.creator-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background-color: rgba(8, 8, 8, 0.9);
  background-image: var(--creator-avatar-url);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 2px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.creator-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.08) contrast(1.06);
  transition: transform 0.4s ease;
}

.creator-card:hover .creator-avatar {
  transform: scale(1.05);
}

.creator-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.creator-name {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-color, #22c55e);
  margin: 0;
  font-weight: 700;
}

.creator-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.creator-bio {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.creator-bio p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.creator-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.creator-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.creator-link svg {
  width: 24px;
  height: 24px;
}

.creator-link.discord {
  color: #5865F2;
}

.creator-link.discord:hover {
  background: #5865F2;
  color: white;
  border-color: #5865F2;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.creator-link.kofi {
  color: #FF5E5B;
}

.creator-link.kofi:hover {
  background: #FF5E5B;
  color: white;
  border-color: #FF5E5B;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 94, 91, 0.4);
}

.creator-link.youtube {
  color: #FF0000;
}

.creator-link.youtube:hover {
  background: #FF0000;
  color: white;
  border-color: #FF0000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Light theme adjustments */
html[data-theme="light"] .creator-spotlight .section-title {
  color: #1b1b1b;
}

html[data-theme="light"] .creator-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .creator-card:hover {
  box-shadow: 0 12px 48px rgba(234, 88, 12, 0.2);
}

html[data-theme="light"] .creator-name {
  color: #c2410c;
}

html[data-theme="light"] .creator-tagline {
  color: rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] .creator-bio p {
  color: rgba(0, 0, 0, 0.8);
}

html[data-theme="light"] .creator-link {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .creator-link.discord {
  color: #5865F2;
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.3);
}

html[data-theme="light"] .creator-link.discord:hover {
  background: #5865F2;
  color: white;
  border-color: #5865F2;
}

html[data-theme="light"] .creator-link.kofi {
  color: #FF5E5B;
  background: rgba(255, 94, 91, 0.1);
  border-color: rgba(255, 94, 91, 0.3);
}

html[data-theme="light"] .creator-link.kofi:hover {
  background: #FF5E5B;
  color: white;
  border-color: #FF5E5B;
}

html[data-theme="light"] .creator-link.youtube {
  color: #FF0000;
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.3);
}

html[data-theme="light"] .creator-link.youtube:hover {
  background: #FF0000;
  color: white;
  border-color: #FF0000;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .creator-card {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 35px 25px;
    text-align: center;
  }

  .creator-image-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }

  .creator-links {
    justify-content: center;
  }
}

.MediaSection {
  background: #1C1C1C;
  padding: 60px 0;
  text-align: center;
}

.gallery-section {
  background: #1C1C1C;
  padding: 80px 20px;
  text-align: center;
}

.gallery-section h2 {
  color: #fff;
  margin-bottom: 40px;
}

/* ================= CAROUSEL ================= */

.gallery-carousel {
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 0 20px;
  position: relative;
}

.carousel-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  margin-bottom: 24px;
}

.carousel-scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome, Safari */
}

.carousel-item {
  flex: 0 0 300px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-item:hover img {
  transform: scale(1.1);
}

.carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.carousel-item:hover::before {
  opacity: 1;
}

/* Carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border: none;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-dots .dot.active {
  background: rgba(255, 255, 255, 0.75);
  width: 24px;
  border-radius: 5px;
}

.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.mediagrid {
  display: grid;
  gap: 8px;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
}

.mediagrid div:not(.gallery-text-block) {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  cursor: pointer;
}

.mediagrid div:nth-child(2) {
  grid-column: span 2;
}

.mediagrid div:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.mediagrid div:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.mediagrid div:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.mediagrid div:nth-child(9) {
  grid-column: span 2;
  grid-row: 4;
}

.mediagrid div:nth-child(10) {
  grid-column: 3;
  grid-row: 4;
}

.gallery-text-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default !important;
}

.gallery-text-block p {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  margin: 0;
}

.mediagrid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s ease;
  border-radius: 12px;
}

.mediagrid div:hover img {
  transform: scale(1.08);
  filter: brightness(1.2);
}

.mediagrid div::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(34, 197, 94, 0);
  transition: background 0.3s ease;
  z-index: 1;
  pointer-events: none;
  border-radius: 12px;
}

.mediagrid div:hover::before {
  background: rgba(34, 197, 94, 0.1);
}

/* ================= FEATURES SECTION ================= */

.features {
  padding: 100px 20px;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-text {
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 35px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.feature-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
  color: #fff;
}

.feature-text p {
  font-size: 1rem;
  color: #ccc;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.feature-text p:last-child {
  margin-bottom: 0;
}

.feature-text a {
  color: var(--primary-color, #22c55e);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.feature-text a:hover {
  color: #34d370;
  border-bottom-color: var(--primary-color, #22c55e);
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.feature-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.feature-image:hover img {
  transform: scale(1.05);
}

/* ================= COMMUNITY PULSE ================= */

.community-pulse {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.community-pulse__header {
  max-width: 760px;
  margin-bottom: 24px;
}

.community-pulse__header h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.community-pulse__header p {
  color: rgba(255, 255, 255, 0.75);
}

.community-pulse__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.community-pulse__card {
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.community-pulse__card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.community-pulse__card p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
}

.community-pulse__card a {
  color: var(--primary-color, #22c55e);
  text-decoration: none;
  font-weight: 600;
}

.community-pulse__card a:hover {
  text-decoration: underline;
}

.community-pulse__supporters {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px 20px;
}

.community-pulse__supporters h3 {
  margin-bottom: 12px;
}

.community-supporter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.community-supporter-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.community-supporter-name {
  color: #fff;
  font-weight: 600;
}

.community-supporter-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

/* ===== Readme Typography ===== */
.readme-section h3.sub-heading {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #fff;
}

.readme-section h4.mini-heading {
  margin-top: 24px;
  margin-bottom: 6px;
  font-size: 1.3rem;
  color: var(--primary-text);
}

/* ===== Link Lists ===== */
.link-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 20px;
}

.link-list li {
  margin-bottom: 8px;
}

.link-list a {
  color: #6fb6ff;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

/* ===== Code Block ===== */
.code-block {
  margin-top: 16px;
  padding: 18px 22px;
  border-radius: 14px;

  background: rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-block code {
  color: #dcdcdc;
}

/* ===== Notes ===== */
.note {
  margin-top: 14px;
  color: #aaa;
  font-size: 0.9rem;
}

.sub-heading {
  color: var(--primary-text);
  font-size: 1.3rem;
  margin-top: 15px;
  margin-bottom: 15px;
}

.warnig {
  /* #ff000088 fails contrast; use solid accessible red instead */
  color: #ef4444;
}

.preinstall-warning {
  margin: 20px 0 30px;
  padding: 14px 18px;
  border-radius: 12px;

  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 60, 60, 0.35);
  color: #ff6b6b;

  font-size: 0.95rem;
}

.section-text {
  color: #cfcfcf;
  max-width: 760px;
  margin-bottom: 20px;
}

.utility-card {
  margin-bottom: 26px;
  padding: 22px 26px;
  border-radius: 18px;

  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.utility-card h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: var(--primary-text);
}

.utility-card p {
  color: #cfcfcf;
  margin-bottom: 12px;
}

/* ================= CONTRIBUTORS ================= */
.contributors-list {
  margin: 12px 0 24px;
  padding-left: 20px;
  color: #cfcfcf;
}

.contributors-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 30px;
}

.contributors-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contributors-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.contributors-btn--patreon {
  background: rgba(255, 255, 255, 0.14);
}

.contributors-btn--kofi {
  background: rgba(255, 255, 255, 0.1);
}

.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 16px 0 32px;
}

.contributors-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 20px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.contributors-tier-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}

.contributors-card h3 {
  margin-bottom: 6px;
}

.contributors-amount {
  color: #cfcfcf;
  font-weight: 600;
  margin-bottom: 10px;
}

.contributors-card ul {
  margin: 0;
  padding-left: 18px;
  color: #cfcfcf;
}

.contributors-table {
  display: grid;
  gap: 8px;
  margin: 12px 0 32px;
}

.contributors-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfcfcf;
}

.contributors-row--header {
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.contributors-top {
  margin: 12px 0 20px;
  padding-left: 20px;
  color: #cfcfcf;
}

.contributors-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ================= FOOTER ================= */
footer {
  background: #000;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

footer .social-share {
  margin: 10px auto 0;
  padding: 0;
  gap: 10px;
  justify-content: center;
  background: transparent;
  border: none;
}

footer .social-share-label {
  display: none;
}

footer .share-btn {
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

footer .share-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* ================= PROJECT BANNER ================= */

.project-banner {
  margin: 20px 0 40px;
  padding: 28px;
  border-radius: 22px;
  background:
    linear-gradient(130deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 60%),
    var(--banner-image) center center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.project-banner__inner {
  display: grid;
  gap: 18px;
}

.project-banner__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.project-banner__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 6px;
}

.project-banner__subtitle {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.8);
}

.project-banner__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.project-stat {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-stat__value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--banner-accent, #22c55e);
}

.project-stat__label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.project-banner__stats[data-stats-state="loading"] {
  opacity: 0.92;
}

.project-banner__stats[data-stats-state="error"] .project-stat__value {
  color: #fca5a5;
}

.modlist-size[data-modlist-state="loading"] {
  opacity: 0.92;
}

.modlist-size[data-modlist-state="error"] {
  color: #fecaca;
}

/* ================= FAQ ================= */

.faq-section {
  margin: 40px 0 60px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.faq-header p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 700px;
  margin-top: 10px;
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}

.faq-filter {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.faq-filter.is-active,
.faq-filter:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.6);
}

.faq-items {
  display: grid;
  gap: 16px;
}

.faq-item {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 16px;
  color: rgba(255, 255, 255, 0.75);
}

.faq-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-feedback-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.faq-vote {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.faq-vote:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.faq-vote--active[data-faq-vote="helpful"] {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.faq-vote--active[data-faq-vote="unhelpful"] {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.faq-vote-count {
  font-weight: 600;
}

.faq-empty {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.6);
}

/* ================= KNOWN ISSUES ================= */

.issue-grid {
  display: grid;
  gap: 16px;
  margin: 18px 0 30px;
}

.issue-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 20px;
}

.issue-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.issue-card__summary {
  color: rgba(255, 255, 255, 0.75);
}

.issue-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.issue-status--in-progress {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.issue-status--resolved {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.issue-workaround {
  margin-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.issue-workaround summary {
  cursor: pointer;
  color: var(--primary-text);
  font-weight: 600;
}

/* ================= CONTRIBUTION FORM ================= */

.contribution-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0 30px;
}

.contribution-form,
.contribution-preview {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
}

.contribution-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.contribution-field label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.contribution-field input,
.contribution-field textarea,
.contribution-field select {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.contribution-field textarea {
  min-height: 120px;
  resize: vertical;
}

.contribution-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.contribution-copy {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(34, 197, 94, 0.2);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.contribution-preview__body {
  white-space: pre-wrap;
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  padding: 12px;
}

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

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-text {
    padding: 25px;
  }

  .feature-text p {
    max-width: 100%;
  }

  .community-pulse__grid {
    grid-template-columns: 1fr;
  }

  .community-supporter-list {
    grid-template-columns: 1fr;
  }
}

.gallery-lightbox-grid {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  width: 95%;
  max-width: 1400px;
  margin: 60px auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .search-input {
    width: 150px;
  }

  .search-input:focus {
    width: 200px;
  }

  nav {
    margin-top: 10px;
    flex-wrap: wrap;
    width: 100%;
  }

  /* Mobile nested dropdown adjustments */
  .nav-submenu {
    position: relative;
    left: 0;
    margin-left: 10px;
    margin-top: 5px;
    width: calc(100% - 20px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  }

  .nav-dropdown-item:hover .nav-submenu {
    transform: translateX(0);
  }

  .btn-primary {
    width: 100%;
    max-width: 300px;
  }

  .feature-text,
  .feature-image,
  .community-pulse__card,
  .community-pulse__supporters {
    border-radius: 18px;
  }

  .mediagrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mediagrid div:nth-child(2) {
    grid-column: span 1;
  }
}

.headerlogo {
  text-transform: uppercase;
  color: var(--primary-text);
  font-size: 12px;
}

.headerlogo a {
  color: #fff;
  text-decoration: none;
}

.headerlogo a:hover {
  color: var(--primary-text);
}

/* Footer Styles */
.site-footer {
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-align: center;
}

.footer-text a {
  color: var(--primary-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-text a:hover {
  color: #fff;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.footer-link svg {
  width: 20px;
  height: 20px;
}

.footer-link.discord {
  color: #5865F2;
}

.footer-link.discord:hover {
  background: #5865F2;
  color: white;
  border-color: #5865F2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.footer-link.youtube {
  color: #FF0000;
}

.footer-link.youtube:hover {
  background: #FF0000;
  color: white;
  border-color: #FF0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.footer-link.kofi {
  color: #FF5E5B;
}

.footer-link.kofi:hover {
  background: #FF5E5B;
  color: white;
  border-color: #FF5E5B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 94, 91, 0.4);
}

.footer-link.patreon {
  color: #FF424D;
}

.footer-link.patreon:hover {
  background: #FF424D;
  color: white;
  border-color: #FF424D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 66, 77, 0.4);
}

.footer-link.nexus {
  color: #DA8E35;
}

.footer-link.nexus:hover {
  background: #DA8E35;
  color: white;
  border-color: #DA8E35;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(218, 142, 53, 0.4);
}

/* Light theme footer */
html[data-theme="light"] .site-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .footer-text {
  /* rgba(0,0,0,0.7) ≈ #4D4D4D = 7.2:1 on white — WCAG AAA */
  color: rgba(0, 0, 0, 0.75);
}

html[data-theme="light"] .footer-text a:hover {
  color: #000;
}

/* ─── Light theme: fix status badge contrast ─────────────────────
   Dark-mode badge colours (#fbbf24, #86efac) fail on light bgs; 
   force high-contrast text instead.                              */
html[data-theme="light"] .issue-status--in-progress {
  /* #fbbf24 on light bg ≈ 1.9:1 → FAILS; use #92400e = 6.1:1 */
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.45);
}

html[data-theme="light"] .issue-status--resolved {
  /* #86efac on light bg ≈ 1.8:1 → FAILS; use #166534 = 5.8:1 */
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.45);
}

html[data-theme="light"] .preinstall-warning {
  /* #ff6b6b on white ≈ 2.9:1 → FAILS; use #991b1b = 6.0:1 */
  color: #991b1b;
  background: rgba(255, 60, 60, 0.08);
  border-color: rgba(180, 0, 0, 0.25);
}

html[data-theme="light"] .footer-link {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .community-pulse__header p,
html[data-theme="light"] .community-pulse__card p,
html[data-theme="light"] .community-supporter-meta {
  color: rgba(0, 0, 0, 0.72);
}

html[data-theme="light"] .community-pulse__card,
html[data-theme="light"] .community-pulse__supporters,
html[data-theme="light"] .community-supporter-item {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .community-supporter-name {
  color: #1b1b1b;
}

@media (max-width: 768px) {
  .footer-content {
    gap: 1.25rem;
  }
  
  .footer-social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== Simple Lightbox ===== */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  border-radius: 12px;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  cursor: zoom-out;
}

img[data-no-lightbox] {
  cursor: default;
}

.fade-in, .slide-up, .slide-left, .slide-right {
  /* scroll reveal disabled */
}

html {
  scroll-behavior: smooth;
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

img {
  transition: opacity 0.3s ease;
}

img[data-src]:not(.loaded) {
  opacity: 0.3;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

img[data-src].loaded {
  opacity: 1;
  animation: none;
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color, #22c55e);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: #16a34a;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

#back-to-top:active {
  transform: translateY(-2px);
}

.social-share {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-share-label {
  font-weight: 600;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color, #22c55e);
  background: rgba(34, 197, 94, 0.2);
}

.share-btn.twitter:hover { border-color: #1DA1F2; background: rgba(29, 161, 242, 0.2); }
.share-btn.facebook:hover { border-color: #4267B2; background: rgba(66, 103, 178, 0.2); }
.share-btn.reddit:hover { border-color: #FF4500; background: rgba(255, 69, 0, 0.2); }
.share-btn.discord:hover { border-color: #5865F2; background: rgba(88, 101, 242, 0.2); }

.toast-notification {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: rgba(34, 197, 94, 0.95);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  font-weight: 500;
  max-width: 300px;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.changelog-timeline {
  position: relative;
  padding: 40px 0;
  max-width: 900px;
  margin: 0 auto;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color, #22c55e), rgba(34, 197, 94, 0.2));
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeInTimeline 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInTimeline {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-color, #22c55e);
  border: 3px solid #0a0a0a;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  z-index: 2;
}

.timeline-date {
  color: var(--primary-color, #22c55e);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  display: block;
}

.timeline-version {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateX(5px);
}

.timeline-content h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: white;
  font-size: 20px;
}

.timeline-content ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.timeline-content ul li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.timeline-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color, #22c55e);
  font-weight: bold;
}

.timeline-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 8px;
  margin-bottom: 8px;
}

.timeline-badge.added { background: rgba(40, 167, 69, 0.2); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.timeline-badge.fixed { background: rgba(220, 53, 69, 0.2); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }
.timeline-badge.changed { background: rgba(255, 193, 7, 0.2); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.timeline-badge.removed { background: rgba(108, 117, 125, 0.2); color: #9ca3af; border: 1px solid rgba(156, 163, 175, 0.3); }

html[data-theme="light"] .changelog-timeline::before {
  background: linear-gradient(180deg, #16a34a, rgba(22, 163, 74, 0.2));
}

html[data-theme="light"] .timeline-marker {
  background: #16a34a;
  border-color: #f5f5f5;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
}

html[data-theme="light"] .timeline-date {
  color: #166534;
}

html[data-theme="light"] .timeline-version {
  color: rgba(22, 24, 29, 0.55);
}

html[data-theme="light"] .timeline-content {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .timeline-content:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(22, 163, 74, 0.3);
}

html[data-theme="light"] .timeline-content h3 {
  color: #111827;
}

html[data-theme="light"] .timeline-content ul li {
  color: rgba(15, 23, 42, 0.75);
}

html[data-theme="light"] .timeline-content ul li::before {
  color: #c2410c;
}

html[data-theme="light"] .timeline-badge.added { background: rgba(234, 88, 12, 0.15); color: #c2410c; border-color: rgba(234, 88, 12, 0.35); }
html[data-theme="light"] .timeline-badge.fixed { background: rgba(220, 38, 38, 0.12); color: #b91c1c; border-color: rgba(220, 38, 38, 0.3); }
html[data-theme="light"] .timeline-badge.changed { background: rgba(234, 179, 8, 0.16); color: #b45309; border-color: rgba(234, 179, 8, 0.35); }
html[data-theme="light"] .timeline-badge.removed { background: rgba(100, 116, 139, 0.12); color: #475569; border-color: rgba(100, 116, 139, 0.3); }

.vote-section {
  margin: 120px 0 40px 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  clear: both;
  display: block;
}

.vote-question {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.vote-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.vote-btn {
  padding: 12px 32px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vote-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.vote-btn[data-vote="helpful"]:hover {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.2);
}

.vote-btn[data-vote="not-helpful"]:hover {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.2);
}

.vote-section.voted .vote-btn {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.vote-btn--active {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  opacity: 1 !important;
}

.vote-btn--active[data-vote="helpful"] {
  border-color: #4ade80 !important;
  background: rgba(74, 222, 128, 0.25) !important;
  color: #4ade80;
}

.vote-btn--active[data-vote="not-helpful"] {
  border-color: #f87171 !important;
  background: rgba(248, 113, 113, 0.25) !important;
  color: #f87171;
}

.vote-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 14px;
}

.testimonials-carousel {
  position: relative;
  max-width: 1000px;
  margin: 60px auto;
  overflow: hidden;
  padding: 0 60px;
}

.testimonials-container {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-item {
  min-width: 100%;
  padding: 40px;
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.testimonial-item.active {
  opacity: 1;
}

.testimonial-content {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-quote::before {
  content: '"';
  font-size: 48px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 0;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -12px;
}

.testimonial-quote::after {
  content: '"';
  font-size: 48px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 0;
  display: inline-block;
  margin-left: 8px;
  vertical-align: -12px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.testimonial-info {
  text-align: left;
}

.testimonial-name {
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 18px;
  margin-top: 16px;
}

.testimonial-prev,
.testimonial-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%) scale(1.1);
}

.testimonial-prev {
  left: 0;
}

.testimonial-next {
  right: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .social-share {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .changelog-timeline::before {
    left: 15px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-marker {
    left: 6px;
  }
  
  .testimonials-carousel {
    padding: 0 50px;
  }
  
  .testimonial-content {
    padding: 24px;
  }
  
  .testimonial-quote {
    font-size: 16px;
  }
  
  .testimonial-prev,
  .testimonial-next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Feature Text Styling */
.feature-text {
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 35px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.feature-text h3 {
  margin-bottom: 20px;
}

.feature-text p {
  margin-bottom: 15px;
}

.feature-text p:last-child {
  margin-bottom: 0;
}

.feature-text a {
  color: var(--primary-color, #22c55e) !important;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.feature-text a:hover {
  color: #34d370 !important;
  border-bottom-color: var(--primary-color, #22c55e);
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

/* Light theme adjustments */
html[data-theme="light"] .feature-text {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .feature-text a {
  color: #1ea154 !important;
}

html[data-theme="light"] .feature-text a:hover {
  color: #16803f !important;
  border-bottom-color: #1ea154;
  text-shadow: 0 0 8px rgba(30, 161, 84, 0.2);
}

@media (max-width: 900px) {
  .feature-text {
    padding: 25px;
  }
}

/* Features CSS - Stats, Gallery, Video Tutorials, Social Share, Discord Widget */

/* Stats System */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-2px);
}

.stat-icon {
  color: var(--primary-color, #22c55e);
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* User Gallery */
.gallery-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.home-section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
}

.home-section-title--gallery {
  margin: 60px 0 16px;
}

.gallery-image-link {
  display: block;
}

.gallery-image-link:focus-visible {
  outline: 2px solid var(--primary-text, #22c55e);
  outline-offset: 2px;
}

.gallery-more {
  text-align: center;
  margin-top: 2rem;
}

.gallery-more a {
  color: var(--primary-text, #22c55e);
}

.gallery-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.gallery-page .home-section-title {
  margin-bottom: 16px;
}

.gallery-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-filter-btn {
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.gallery-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
}

.gallery-filter-btn.active {
  background: var(--primary-color, #22c55e);
  border-color: var(--primary-color, #22c55e);
  color: #000;
}

#user-gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Image-only cards: they have no intrinsic content size, so the card and
   its background-image div must be sized explicitly (16:9), overriding the
   generic .gallery-item rules from main.css. */
#user-gallery-container .gallery-item {
  width: 100%;
  aspect-ratio: 16 / 9;
}

#user-gallery-container .gallery-image-link,
#user-gallery-container .gallery-image {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gallery-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-like-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-like-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(34, 197, 94, 0.5);
}

.gallery-like-btn.liked {
  color: #ef4444;
  border-color: #ef4444;
}

.gallery-info {
  padding: 1rem;
}

.gallery-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.gallery-author {
  color: rgba(255, 255, 255, 0.6);
}

.gallery-modlist-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  color: var(--primary-color, #22c55e);
  font-size: 0.75rem;
}

/* Video Tutorials */
.video-tutorials-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  margin: 2rem 0;
}

.video-player-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
}

.video-placeholder svg {
  margin-bottom: 1rem;
}

.video-iframe {
  width: 100%;
  height: 100%;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.video-list::-webkit-scrollbar {
  width: 6px;
}

.video-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.video-list::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.5);
  border-radius: 3px;
}

.video-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-item:hover,
.video-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 197, 94, 0.5);
}

.video-thumbnail {
  width: 60px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color, #22c55e);
  flex-shrink: 0;
}

.video-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.video-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.video-details {
  flex: 1;
  min-width: 0;
}

.video-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-duration {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Social Share */
.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-2px);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(34, 197, 94, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 10000;
}

.share-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Discord Widget */
.discord-widget-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  margin: 2rem 0;
}

.feature-image .discord-widget-container {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  height: 100%;
}

.feature-image .discord-widget-container .discord-header {
  display: none;
}

.feature-image .discord-widget-container .discord-iframe {
  height: 100%;
  min-height: 400px;
}

.discord-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.discord-icon {
  width: 40px;
  height: 40px;
  color: #5865F2;
}

.discord-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.discord-iframe {
  width: 100%;
  border-radius: 8px;
  border: none;
}

/* Light theme overrides */
html[data-theme="light"] .stat-item,
html[data-theme="light"] .gallery-filter-btn,
html[data-theme="light"] .gallery-item,
html[data-theme="light"] .video-player-wrapper,
html[data-theme="light"] .video-item,
html[data-theme="light"] .share-btn,
html[data-theme="light"] .discord-widget-container {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .gallery-filter-btn {
  color: #1b1b1b;
}

html[data-theme="light"] .gallery-filter-btn:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(234, 88, 12, 0.3);
}

html[data-theme="light"] .gallery-filter-btn.active {
  background: var(--primary-color, #ea580c);
  border-color: var(--primary-color, #ea580c);
  color: #fff;
}

html[data-theme="light"] .gallery-subtitle {
  color: #555;
}

html[data-theme="light"] .stat-value,
html[data-theme="light"] .gallery-title,
html[data-theme="light"] .video-title,
html[data-theme="light"] .discord-title {
  color: #1b1b1b;
}

html[data-theme="light"] .stat-label,
html[data-theme="light"] .gallery-author,
html[data-theme="light"] .video-duration {
  color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .share-btn {
  color: #1b1b1b;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: 1fr;
  }

  .video-tutorials-wrapper {
    grid-template-columns: 1fr;
  }

  .video-list {
    max-height: 400px;
  }

  #user-gallery-container {
    grid-template-columns: 1fr;
  }

  .share-buttons {
    justify-content: center;
  }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.breadcrumb-item a:hover {
  color: var(--primary-text);
  background: rgba(255, 255, 255, 0.05);
}

.breadcrumb-item--active {
  color: #fff;
  font-weight: 500;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* ===== PROGRESS BAR ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.1);
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #16a34a);
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--primary-color);
}

body.has-alert .reading-progress {
  top: 44px;
}

header.has-alert + .reading-progress {
  top: 124px;
}

/* ===== COPY LINK BUTTONS ===== */
.heading-anchor {
  position: relative;
  scroll-margin-top: 120px;
}

.copy-link-btn {
  opacity: 0;
  position: absolute;
  left: -1.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.heading-anchor:hover .copy-link-btn {
  opacity: 1;
}

.copy-link-btn:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--primary-color);
  color: var(--primary-text);
  transform: translateY(-50%) scale(1.1);
}

.copy-link-btn.copied {
  background: var(--primary-color);
  color: #000;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 0.875rem;
  pointer-events: all;
  animation: toastSlideIn 0.3s ease;
  transform-origin: bottom right;
}

.toast.toast--success {
  border-color: var(--primary-color);
}

.toast.toast--error {
  border-color: #ef4444;
}

.toast.toast--info {
  border-color: #3b82f6;
}

.toast-icon {
  flex-shrink: 0;
}

.toast-icon svg {
  width: 20px;
  height: 20px;
}

.toast.toast--success .toast-icon {
  color: var(--primary-text);
}

.toast.toast--error .toast-icon {
  color: #ef4444;
}

.toast.toast--info .toast-icon {
  color: #3b82f6;
}

.toast-message {
  flex: 1;
}

.toast.removing {
  animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastSlideOut {
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
  }
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  position: relative;
}

.loading-spinner::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  margin: 4px;
  border-radius: 50%;
  border: 3px solid;
  border-color: var(--primary-color) transparent var(--primary-color) transparent;
  animation: spinnerRotate 1.2s linear infinite;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

@keyframes spinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== UTILITY TRANSITIONS ===== */
.transition-all {
  transition: all 0.3s ease;
}

.transition-colors {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}

.transition-opacity {
  transition: opacity 0.3s ease;
}

/* ===== ENHANCED HOVER STATES ===== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hover-scale {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-rotate {
  transition: transform 0.3s ease;
}

.hover-rotate:hover {
  transform: rotate(2deg) scale(1.02);
}

.hover-glow {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), 0 8px 32px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

/* ===== ENHANCED SHADOWS ===== */
.shadow-deep {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.1);
}

.shadow-glow {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 1px rgba(34, 197, 94, 0.2);
}

.border-glow {
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.border-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), transparent, rgba(34, 197, 94, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.border-glow:hover::before {
  opacity: 1;
}

/* ===== LIGHT THEME ===== */
html[data-theme="light"] .breadcrumb-item {
  color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .breadcrumb-item a {
  color: rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] .breadcrumb-item a:hover {
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .breadcrumb-item--active {
  color: #1b1b1b;
}

html[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.95);
  color: #1b1b1b;
  border-color: rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .copy-link-btn {
    opacity: 1;
    position: static;
    transform: none;
    margin-left: 0.5rem;
  }
  
  .toast-container {
    left: 1rem;
    right: 1rem;
  }
  
  .toast {
    min-width: auto;
  }
}

/* ===== INSTALL PROGRESS (STEPPER + PREV/NEXT) ===== */
.install-progress {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.install-progress__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.install-progress__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary-text);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.install-progress__back:hover { opacity: 1; }

.install-progress__count {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.install-progress__bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.install-progress__bar {
  height: 100%;
  background: var(--primary-color);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.install-progress__steps {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.install-progress__steps::-webkit-scrollbar { display: none; }

.install-progress__step a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem 0.3rem 0.35rem;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s, background 0.2s;
}

.install-progress__step a:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.09);
}

.install-progress__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}

/* Done step */
.install-progress__step--done a {
  color: rgba(255, 255, 255, 0.55);
}

.install-progress__step--done .install-progress__dot {
  background: var(--primary-color);
  color: #fff;
  font-size: 0;
}

.install-progress__step--done .install-progress__dot::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Current step */
.install-progress__step--current a {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--primary-color);
  font-weight: 600;
}

.install-progress__step--current .install-progress__dot {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

/* hide labels on small screens, keep dots */
@media (max-width: 600px) {
  .install-progress__label { display: none; }
  .install-progress__step a { padding: 0.3rem; }
}

/* Light theme overrides */
html[data-theme="light"] .install-progress {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .install-progress__back { color: var(--primary-text); }
html[data-theme="light"] .install-progress__count { color: rgba(0, 0, 0, 0.45); }
html[data-theme="light"] .install-progress__bar-wrap { background: rgba(0, 0, 0, 0.08); }

html[data-theme="light"] .install-progress__step a {
  color: rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .install-progress__step a:hover {
  color: rgba(0, 0, 0, 0.75);
  background: rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .install-progress__dot {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .install-progress__step--current a {
  color: #1a1a1a;
}

/* ===== PREV / NEXT NAV ===== */
.install-nav {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .install-nav {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.install-nav__prev,
.install-nav__next {
  flex: 1;
}

.install-nav__next { text-align: right; }

.install-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  max-width: 260px;
}

.install-nav__btn:hover {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.install-nav__btn--next { margin-left: auto; }

.install-nav__arrow {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.install-nav__btn:hover .install-nav__arrow { opacity: 1; }

.install-nav__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.install-nav__text small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.45;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.install-nav__text > span {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] .install-nav__btn {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] .install-nav__btn:hover {
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

html[data-theme="light"] .install-nav__text small { opacity: 0.35; }

/* ===== CHANGELOG ANCHOR BUTTON ===== */
.changelog-anchor {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  vertical-align: middle;
}

details:hover .changelog-anchor,
summary:focus-visible .changelog-anchor {
  opacity: 1;
}

.changelog-anchor:hover {
  color: var(--primary-text);
  opacity: 1;
}

html[data-theme="light"] .changelog-anchor { color: rgba(0, 0, 0, 0.3); }
html[data-theme="light"] .changelog-anchor:hover { color: var(--primary-text); }

/* ===== UTILITY CLASSES ===== */

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Flex utilities */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Text */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-small { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-large { font-size: 1.25rem; }
.text-xl { font-size: 1.5rem; }
.text-2xl { font-size: 2rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--primary-text); }
.text-white { color: #fff; }
.text-muted { color: rgba(255, 255, 255, 0.6); }

/* Backgrounds */
.bg-transparent { background: transparent; }
.bg-dark { background: rgba(0, 0, 0, 0.5); }
.bg-glass { 
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bg-glass-dark { 
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* Borders */
.border { border: 1px solid rgba(255, 255, 255, 0.1); }
.border-primary { border-color: var(--primary-color); }
.border-transparent { border-color: transparent; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.5rem; }
.rounded-lg { border-radius: 0.75rem; }
.rounded-xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.shadow-md { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.shadow-lg { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.shadow-none { box-shadow: none; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Width/Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }

.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-full { max-width: 100%; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* Transitions */
.transition { transition: all 0.3s ease; }
.transition-fast { transition: all 0.15s ease; }
.transition-slow { transition: all 0.5s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }
.transition-opacity { transition: opacity 0.3s ease; }

/* Animations - disabled */

/* Hover enhancements */
.hover\:bg-glass:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hover\:border-primary:hover {
  border-color: var(--primary-color);
}

.hover\:text-primary:hover {
  color: var(--primary-text);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  
  .md\:flex-column { flex-direction: column; }
  .md\:text-center { text-align: center; }
  
  .md\:p-2 { padding: 1rem; }
  .md\:gap-2 { gap: 1rem; }
}

@media (min-width: 769px) {
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
}

/* Light theme utilities */
html[data-theme="light"] .text-white {
  color: #1b1b1b;
}

html[data-theme="light"] .text-muted {
  color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .bg-glass {
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .bg-glass-dark {
  background: rgba(255, 255, 255, 0.5);
}

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

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.focus\:outline-primary:focus-visible {
  outline: 3px solid var(--primary-text);
  outline-offset: 3px;
}

/* Print utilities */
@media print {
  .print\:hidden {
    display: none;
  }
}

/* ================================================================
   VISUAL ENHANCEMENTS — layered on top of main.css
   Improvements: hero drama, typography, cards, carousel,
   gallery, footer icons, accessibility, hub hover, other pages.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&display=swap');

/* -------- CUSTOM PROPERTY EXTENSIONS -------- */
:root {
  --glow-green: rgba(34, 197, 94, 0.35);
  --glow-green-soft: rgba(34, 197, 94, 0.15);
  --transition-snappy: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] {
  --glow-green: rgba(194, 65, 12, 0.3);
  --glow-green-soft: rgba(194, 65, 12, 0.12);
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.hero h2 {
  color: var(--primary-color);
  letter-spacing: 0.45em;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.9;
}

.hero h1 {
  font-family: 'Cinzel', 'Roboto', sans-serif;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ffffff 0%, #86efac 40%, #22c55e 70%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.25));
}

html[data-theme="light"] .hero h1 {
  background: linear-gradient(135deg, #1b1b1b 0%, #ea580c 45%, #c2410c 70%, #1b1b1b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(194, 65, 12, 0.2));
}

html[data-theme="light"] .hero h2 {
  color: var(--primary-color);
}

.hero p {
  max-width: 640px;
  line-height: 1.75;
}

/* CTA button — green glow */
.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.22) 0%,
    rgba(34, 197, 94, 0.10) 100%
  );
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #fff !important;
  box-shadow: 0 0 18px var(--glow-green-soft), inset 0 0 12px rgba(34, 197, 94, 0.05);
  transition:
    background var(--transition-snappy),
    border-color var(--transition-snappy),
    box-shadow var(--transition-snappy),
    transform var(--transition-snappy);
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.38) 0%,
    rgba(34, 197, 94, 0.22) 100%
  ) !important;
  border-color: rgba(34, 197, 94, 0.7) !important;
  box-shadow: 0 0 32px var(--glow-green), inset 0 0 16px rgba(34, 197, 94, 0.08) !important;
  transform: translateY(-3px) !important;
  color: #fff !important;
}

html[data-theme="light"] .btn-primary {
  background: linear-gradient(
    135deg,
    rgba(194, 65, 12, 0.14) 0%,
    rgba(194, 65, 12, 0.06) 100%
  ) !important;
  border-color: rgba(194, 65, 12, 0.4) !important;
  color: #c2410c !important;
  box-shadow: 0 0 14px rgba(194, 65, 12, 0.14) !important;
}

html[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(194, 65, 12, 0.28) 0%,
    rgba(194, 65, 12, 0.14) 100%
  ) !important;
  border-color: rgba(194, 65, 12, 0.65) !important;
  box-shadow: 0 0 28px rgba(194, 65, 12, 0.28) !important;
  color: #9a3412 !important;
}

/* ================================================================
   SECTION HEADINGS — green accent bar
   ================================================================ */

.creator-spotlight .section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.creator-spotlight .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

/* Community pulse header — left aligned */
.community-pulse__header h2 {
  position: relative;
  padding-bottom: 14px;
  display: inline-block;
}

.community-pulse__header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

/* Gallery section heading — centered, so the bar is centered too */
.gallery-section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.gallery-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary-color);
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */

.about {
  background: rgba(14, 14, 14, 0.82) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .about {
  background: rgba(255, 255, 255, 0.82) !important;
  border-top-color: rgba(0, 0, 0, 0.07);
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

/* Logo — accent ring + glow */
.about img {
  border: 2px solid rgba(34, 197, 94, 0.35) !important;
  box-shadow:
    0 0 28px rgba(34, 197, 94, 0.18),
    0 20px 40px rgba(0, 0, 0, 0.55) !important;
  transition: box-shadow var(--transition-snappy), transform var(--transition-snappy);
}

.about img:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 46px rgba(34, 197, 94, 0.3),
    0 24px 48px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="light"] .about img {
  border-color: rgba(194, 65, 12, 0.35) !important;
  box-shadow:
    0 0 28px rgba(194, 65, 12, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.18) !important;
}

/* ================================================================
   CREATOR SPOTLIGHT
   ================================================================ */

.creator-card {
  background: rgba(13, 13, 13, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition:
    transform var(--transition-snappy),
    box-shadow var(--transition-snappy),
    border-color var(--transition-snappy) !important;
}

.creator-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 56px rgba(34, 197, 94, 0.18) !important;
  border-color: rgba(34, 197, 94, 0.25) !important;
}

.creator-image-wrapper {
  border: 2px solid rgba(34, 197, 94, 0.4) !important;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.15) !important;
  transition: box-shadow var(--transition-snappy) !important;
}

.creator-card:hover .creator-image-wrapper {
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.28) !important;
}

.creator-name {
  font-family: 'Cinzel', 'Roboto', sans-serif !important;
  letter-spacing: 0.04em;
}

html[data-theme="light"] .creator-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .creator-card:hover {
  box-shadow: 0 20px 56px rgba(194, 65, 12, 0.16) !important;
  border-color: rgba(194, 65, 12, 0.25) !important;
}

html[data-theme="light"] .creator-name,
html[data-theme="light"] .creator-bio,
html[data-theme="light"] .creator-quote {
  color: rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="light"] .creator-image-wrapper {
  border-color: rgba(194, 65, 12, 0.4) !important;
  box-shadow: 0 0 24px rgba(194, 65, 12, 0.12) !important;
}

/* ================================================================
   FEATURES SECTION
   ================================================================ */

.feature-text {
  background: rgba(14, 14, 14, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  transition:
    border-color var(--transition-snappy),
    box-shadow var(--transition-snappy) !important;
}

.feature-text:hover {
  border-color: rgba(34, 197, 94, 0.2) !important;
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.08) !important;
}

html[data-theme="light"] .feature-text {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .feature-text:hover {
  border-color: rgba(194, 65, 12, 0.2) !important;
  box-shadow: 0 12px 40px rgba(194, 65, 12, 0.08) !important;
}

.feature-image {
  transition: box-shadow var(--transition-snappy) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-image:hover {
  box-shadow:
    0 0 28px rgba(34, 197, 94, 0.2),
    0 24px 48px rgba(0, 0, 0, 0.5) !important;
}

/* ================================================================
   COMMUNITY PULSE CARDS
   ================================================================ */

.community-pulse__card {
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-snappy),
    border-color var(--transition-snappy),
    box-shadow var(--transition-snappy) !important;
}

.community-pulse__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 1;
}

.community-pulse__card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.3) !important;
  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.1) !important;
}

.community-pulse__card:hover::before {
  transform: scaleX(1);
}

html[data-theme="light"] .community-pulse__card:hover {
  border-color: rgba(194, 65, 12, 0.3) !important;
  box-shadow: 0 18px 42px rgba(194, 65, 12, 0.1) !important;
}

/* Supporter items */
.community-supporter-item {
  transition:
    transform var(--transition-snappy),
    border-color var(--transition-snappy) !important;
}

.community-supporter-item:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.3) !important;
}

/* ================================================================
   GALLERY CAROUSEL
   ================================================================ */

.carousel-dots .dot.active {
  background: var(--primary-color) !important;
  box-shadow: 0 0 8px var(--glow-green);
}

.carousel-dots .dot:hover {
  background: rgba(34, 197, 94, 0.5) !important;
}

.carousel-btn {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  transition:
    background var(--transition-snappy),
    box-shadow var(--transition-snappy),
    transform var(--transition-snappy) !important;
}

.carousel-btn:hover {
  background: rgba(34, 197, 94, 0.22) !important;
  box-shadow: 0 0 16px var(--glow-green) !important;
  transform: translateY(-50%) scale(1.12) !important;
}

html[data-theme="light"] .carousel-btn {
  border-color: rgba(194, 65, 12, 0.3) !important;
}

html[data-theme="light"] .carousel-btn:hover {
  background: rgba(194, 65, 12, 0.12) !important;
  box-shadow: 0 0 16px rgba(194, 65, 12, 0.25) !important;
}

/* ================================================================
   GALLERY FILTER BUTTONS
   ================================================================ */

.gallery-filter-btn {
  transition:
    background var(--transition-snappy),
    border-color var(--transition-snappy),
    box-shadow var(--transition-snappy),
    transform var(--transition-snappy) !important;
}

.gallery-filter-btn:hover {
  transform: translateY(-2px) !important;
}

.gallery-filter-btn.active {
  box-shadow: 0 0 14px var(--glow-green) !important;
}

/* ================================================================
   HUB PAGE — hover effects (was transition: none)
   ================================================================ */

.hub-card {
  transition:
    transform var(--transition-snappy),
    box-shadow var(--transition-snappy) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.3),
    0 30px 70px rgba(0, 0, 0, 0.6) !important;
}

.hub-card:hover .hub-card-game {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.12);
}

html[data-theme="light"] .hub-card:hover {
  box-shadow:
    0 0 0 1px rgba(194, 65, 12, 0.3),
    0 30px 70px rgba(0, 0, 0, 0.3) !important;
}

/* ================================================================
   README / WIKI PAGES — polish
   ================================================================ */

/* Sidebar nav active link indicator */
.readme-nav a.active,
.readme-nav a[aria-current="page"] {
  color: var(--primary-text) !important;
  padding-left: 12px;
  border-left: 2px solid var(--primary-color);
}

/* README content links underline on hover */
.readme-content a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Section headings accent */
.readme-content h2 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 10px;
}

html[data-theme="light"] .readme-content h2 {
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

/* Project banner stat value — use primary text */
.project-stat__value {
  color: var(--primary-text) !important;
}

/* ================================================================
   CONTRIBUTORS PAGE — visual polish
   ================================================================ */

.contributors-card {
  transition:
    transform var(--transition-snappy),
    border-color var(--transition-snappy),
    box-shadow var(--transition-snappy) !important;
}

.contributors-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.25) !important;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.1) !important;
}

html[data-theme="light"] .contributors-card:hover {
  border-color: rgba(194, 65, 12, 0.25) !important;
  box-shadow: 0 12px 32px rgba(194, 65, 12, 0.1) !important;
}

.contributors-row:not(.contributors-row--header) {
  transition:
    background var(--transition-snappy),
    border-color var(--transition-snappy) !important;
}

.contributors-row:not(.contributors-row--header):hover {
  background: rgba(34, 197, 94, 0.04) !important;
  border-color: rgba(34, 197, 94, 0.15) !important;
}

html[data-theme="light"] .contributors-row:not(.contributors-row--header):hover {
  background: rgba(194, 65, 12, 0.04) !important;
  border-color: rgba(194, 65, 12, 0.15) !important;
}

/* ================================================================
   FAQ PAGE — visual polish
   ================================================================ */

/* The faq-header inline color fix: #15803d fails WCAG on dark */
.faq-header h1 {
  color: var(--primary-text) !important;
}

/* FAQ search input — better contrast in dark mode */
#faq-search {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  transition:
    border-color var(--transition-snappy),
    box-shadow var(--transition-snappy);
}

#faq-search:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px var(--glow-green-soft) !important;
  outline: none !important;
}

html[data-theme="light"] #faq-search:focus {
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12) !important;
}

/* FAQ tags — fix the inline fallback color #15803d */
.faq-answer [style*="15803d"] {
  color: var(--primary-text) !important;
}

/* FAQ item hover border */
.faq-item {
  transition:
    border-color var(--transition-snappy),
    box-shadow var(--transition-snappy) !important;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.06) !important;
}

/* ================================================================
   ACCESSIBILITY FIXES
   ================================================================ */

/* Breadcrumb — light theme contrast fix */
html[data-theme="light"] .breadcrumb-item {
  color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .breadcrumb-item a {
  color: rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] .breadcrumb-item a:hover {
  color: var(--primary-text);
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .breadcrumb-item--active {
  color: #1b1b1b;
}

html[data-theme="light"] .breadcrumb-separator {
  color: rgba(0, 0, 0, 0.3);
}

/* README nav — light theme: #ccc on white fails contrast */
html[data-theme="light"] .readme-nav a {
  color: #444 !important;
}

html[data-theme="light"] .readme-nav a:hover {
  color: var(--primary-text) !important;
}

/* Community pulse header text — light theme contrast */
html[data-theme="light"] .community-pulse__header p {
  color: rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] .community-pulse__card p {
  color: rgba(0, 0, 0, 0.72);
}

/* FAQ answer text — light theme */
html[data-theme="light"] .faq-answer p {
  color: rgba(0, 0, 0, 0.72) !important;
}

/* Gallery subtitle */
.gallery-subtitle {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  font-size: 1rem;
}

html[data-theme="light"] .gallery-subtitle {
  color: rgba(0, 0, 0, 0.65);
}

/* ================================================================
   FOOTER — full redesign + monochrome icons
   ================================================================ */

.site-footer {
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 28px 40px;
}

html[data-theme="light"] .site-footer {
  background: rgba(245, 242, 238, 0.95);
  border-top-color: rgba(0, 0, 0, 0.08);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-text a {
  color: var(--primary-text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-snappy);
}

.footer-text a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-theme="light"] .footer-text {
  color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .footer-text a {
  color: var(--primary-text);
}

html[data-theme="light"] .footer-text a:hover {
  color: #1b1b1b;
}

/* Social icons wrapper */
.footer-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Individual icon links — monochrome */
.footer-social-links .footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  /* Monochrome: primary color */
  color: var(--primary-color);
  text-decoration: none;
  transition:
    background var(--transition-snappy),
    border-color var(--transition-snappy),
    color var(--transition-snappy),
    transform var(--transition-snappy),
    box-shadow var(--transition-snappy);
}

.footer-social-links .footer-link:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.25);
}

/* Light theme — monochrome orange */
html[data-theme="light"] .footer-social-links .footer-link {
  color: var(--primary-color);
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .footer-social-links .footer-link:hover {
  background: rgba(194, 65, 12, 0.08);
  border-color: rgba(194, 65, 12, 0.35);
  color: var(--primary-text);
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.18);
}

/* ================================================================
   HEADER — LOGO & GENERAL
   ================================================================ */

.logo {
  transition: filter var(--transition-snappy) !important;
}

.logo:hover {
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.5)) !important;
}

html[data-theme="light"] .logo:hover {
  filter: drop-shadow(0 0 10px rgba(194, 65, 12, 0.4)) !important;
}

/* ================================================================
   BACK TO TOP
   ================================================================ */

#back-to-top {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35) !important;
  transition:
    transform var(--transition-snappy),
    box-shadow var(--transition-snappy),
    opacity 0.3s ease,
    visibility 0.3s ease !important;
}

#back-to-top:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.5) !important;
}

html[data-theme="light"] #back-to-top {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  box-shadow: 0 4px 16px rgba(194, 65, 12, 0.35) !important;
}

html[data-theme="light"] #back-to-top:hover {
  box-shadow: 0 8px 28px rgba(194, 65, 12, 0.5) !important;
}

/* ================================================================
   MEDIAGRID (gallery pages)
   ================================================================ */

.mediagrid div:hover::before {
  background: rgba(34, 197, 94, 0.12) !important;
}

/* ================================================================
   LANGUAGE SWITCHER (i18n)
   ================================================================ */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    background var(--transition-snappy),
    border-color var(--transition-snappy);
  white-space: nowrap;
}

.lang-toggle:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
}

.lang-toggle:focus-visible {
  outline: 3px solid var(--primary-text);
  outline-offset: 3px;
}

html[data-theme="light"] .lang-toggle {
  background: rgba(255, 255, 255, 0.75);
  color: #1b1b1b;
  border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .lang-toggle:hover {
  background: rgba(194, 65, 12, 0.08);
  border-color: rgba(194, 65, 12, 0.35);
  color: #c2410c;
}

.lang-toggle__flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-toggle__code {
  font-size: 0.75rem;
  font-weight: 700;
}

/* Load Order Library embed */
.lo-embed {
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.lo-embed__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lo-embed__title { font-weight: 700; font-size: 0.9rem; }

.lo-embed__actions { display: flex; gap: 8px; }

.lo-embed__btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.lo-embed__btn:hover { background: rgba(255, 255, 255, 0.12); }

.lo-embed__frame { display: block; width: 100%; border: 0; }

/* CSS fallback when the Fullscreen API is unavailable */
.lo-embed--maximized {
  position: fixed;
  inset: 0;
  z-index: 2000;
  margin: 0;
  border-radius: 0;
}

.lo-embed--maximized .lo-embed__frame { height: calc(100vh - 41px); }

/* Install step "mark complete" control */
.install-checklist {
  margin: 2.5rem 0 0.5rem;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.install-checklist__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
}

.install-checklist__checkbox {
  width: 18px;
  height: 18px;
  accent-color: #22c55e;
  cursor: pointer;
}

.install-checklist--done {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.08);
}

/* "New version available" banner */
.version-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 1.5rem;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
  font-weight: 600;
}

.version-banner__text { flex: 1; }

.version-banner__cta {
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.version-banner__close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
}

.version-banner__close:hover { opacity: 1; }

/* Per-modlist screenshot gallery */
.modlist-gallery {
  margin: 3rem 0 1rem;
}

.modlist-gallery__title {
  margin: 0 0 0.25rem;
}

.modlist-gallery__subtitle {
  margin: 0 0 1.25rem;
  opacity: 0.7;
  font-size: 0.95rem;
}

.modlist-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.modlist-gallery__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modlist-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.modlist-gallery__item img:hover {
  transform: scale(1.04);
}

/* "Live data" badge — revealed once stats-system.js loads real snapshot data */
.project-banner__live {
  display: none;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--banner-accent, #22c55e);
}

.project-banner__live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--banner-accent, #22c55e);
  animation: taf-live-pulse 2s ease-in-out infinite;
}

.project-banner__stats[data-stats-state="success"] ~ .project-banner__live {
  display: inline-flex;
}

@keyframes taf-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

/* Language dropdown */
.lang-switch {
  position: relative;
  display: inline-flex;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  min-width: 140px;
  border-radius: 10px;
  background: var(--sg-surface, #14161c);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.lang-menu[hidden] { display: none; }

.lang-menu__item {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  color: inherit;
}

.lang-menu__item:hover,
.lang-menu__item:focus {
  background: rgba(255, 255, 255, 0.08);
}

.lang-menu__item[aria-selected="true"] {
  background: var(--banner-accent, #22c55e);
  color: #0a0a0a;
  font-weight: 700;
}

html[data-theme="light"] .lang-menu {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
}

/* ================================================================
   BILINGUAL CONTENT SWITCHING
   Hide FR content by default; show when html[lang="fr"] is set.
   ================================================================ */

html:not([lang="fr"]) [lang="fr"] { display: none !important; }
html[lang="fr"] [lang="en"] { display: none !important; }

/* ================================================================
   REDUCED MOTION
   Honour prefers-reduced-motion: neutralise parallax, fades and
   long transitions for users who opt out of animation.
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-bg-layer {
    transform: none !important;
  }

  .hero-content-wrapper {
    opacity: 1 !important;
  }
}

