:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.95);
  --text-muted: rgba(255, 255, 255, 0.60);
  --text-dim: rgba(255, 255, 255, 0.40);
  --line: rgba(255, 255, 255, 0.06);
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-dark: #7c3aed;
  --accent-glow: rgba(139, 92, 246, 0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeIn 0.5s ease-out;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-light);
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  z-index: 100;
}

.skip:focus {
  left: 12px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(10, 10, 15, 0.85);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  transition: all 0.3s var(--ease);
}

.brand img {
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
  transition: all 0.3s var(--ease);
}

.brand:hover {
  transform: translateY(-2px);
  color: var(--text);
}

.brand:hover img {
  filter: drop-shadow(0 4px 16px rgba(139, 92, 246, 0.8));
  transform: rotate(5deg) scale(1.1);
}

.brand__icon {
  font-size: 24px;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav__link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
  background: var(--panel);
}

.nav__link--cta {
  background: var(--accent);
  color: white;
}

.nav__link--cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__copy {
  animation: fadeInUp 0.8s ease-out;
}

.hero__art {
  animation: slideInRight 0.8s ease-out 0.2s both;
}

.hero__title {
  margin: 20px 0 16px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(167, 139, 250, 0.1));
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.8);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s var(--ease);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--panel-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: translateY(-3px);
}

.btn--ghost {
  background: transparent;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn--full {
  width: 100%;
}

.heroStats {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.heroStat {
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  min-width: 140px;
  transition: all 0.3s var(--ease);
  animation: scaleIn 0.5s ease-out both;
}

.heroStat:nth-child(1) {
  animation-delay: 0.3s;
}

.heroStat:nth-child(2) {
  animation-delay: 0.4s;
}

.heroStat:nth-child(3) {
  animation-delay: 0.5s;
}

.heroStat:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.heroStat__k {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.heroStat__v {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.heroFrame {
  padding: 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.heroFrame::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(139, 92, 246, 0.1) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
}

.heroFrame:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 24px 70px rgba(139, 92, 246, 0.4);
  transform: translateY(-4px);
  transition: all 0.4s var(--ease);
}

.heroFrame__content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.heroFrame__badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.heroFrame__title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}

.heroFrame__desc {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.heroFrame__tags {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Card */
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.4s var(--ease);
  position: relative;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 24px 70px rgba(139, 92, 246, 0.25), var(--shadow-xl);
  background: rgba(255, 255, 255, 0.06);
}

/* Section */
.section {
  padding: 80px 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  margin-bottom: 48px;
  text-align: center;
}

.section__head h2 {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section__sub {
  margin: 0;
  font-size: 18px;
  color: var(--text-muted);
}

.section__cta {
  margin-top: 48px;
  text-align: center;
}

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category {
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out both;
}

.category:nth-child(1) { animation-delay: 0.1s; }
.category:nth-child(2) { animation-delay: 0.15s; }
.category:nth-child(3) { animation-delay: 0.2s; }
.category:nth-child(4) { animation-delay: 0.25s; }
.category:nth-child(5) { animation-delay: 0.3s; }
.category:nth-child(6) { animation-delay: 0.35s; }
.category:nth-child(7) { animation-delay: 0.4s; }
.category:nth-child(8) { animation-delay: 0.45s; }

.category__icon {
  font-size: 48px;
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease);
  display: inline-block;
}

.category:hover .category__icon {
  transform: scale(1.2) rotate(5deg);
}

.category__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.category__count {
  font-size: 14px;
  color: var(--text-muted);
}

/* Mods Grid */
.mods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.mods--grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.mod {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInUp 0.5s ease-out both;
}

.mod:nth-child(1) { animation-delay: 0.05s; }
.mod:nth-child(2) { animation-delay: 0.1s; }
.mod:nth-child(3) { animation-delay: 0.15s; }
.mod:nth-child(4) { animation-delay: 0.2s; }
.mod:nth-child(5) { animation-delay: 0.25s; }
.mod:nth-child(6) { animation-delay: 0.3s; }
.mod:nth-child(7) { animation-delay: 0.35s; }
.mod:nth-child(8) { animation-delay: 0.4s; }
.mod:nth-child(9) { animation-delay: 0.45s; }

.mod__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mod__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.mod:hover .mod__icon {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.mod__meta {
  flex: 1;
  min-width: 0;
}

.mod__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mod__author {
  font-size: 13px;
  color: var(--text-dim);
}

.mod__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.mod__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(10px);
}

.tag:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.25));
  border-color: rgba(139, 92, 246, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.mod__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mod__version {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature {
  padding: 32px 24px;
  text-align: center;
  animation: scaleIn 0.6s ease-out both;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }

.feature__icon {
  font-size: 48px;
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease);
  display: inline-block;
}

.feature:hover .feature__icon {
  transform: scale(1.2) rotate(-5deg);
}

.feature__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.feature__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Browse Page */
.browse-hero {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.browse-hero__title {
  margin: 0 0 12px;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.browse-hero__desc {
  margin: 0;
  font-size: 18px;
  color: var(--text-muted);
}

.browse-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.browse-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group {
  padding: 20px;
}

.filter-group__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.filter-option:hover {
  color: var(--text);
}

.filter-option input {
  cursor: pointer;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 20px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 4px 12px rgba(139, 92, 246, 0.2);
  background-color: rgba(139, 92, 246, 0.05);
}

.search-input::placeholder {
  color: var(--text-dim);
}

.browse-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.browse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.browse-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.sort-select {
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-select:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.pagination__pages {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Mod Detail Page */
.mod-detail {
  padding: 40px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-light);
}

.mod-detail__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  margin-bottom: 60px;
}

.mod-detail__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mod-detail__header {
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.mod-detail__icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
  overflow: hidden;
}

.mod-detail__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mod-detail__title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.mod-detail__author {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.mod-detail__section {
  padding: 32px;
}

.mod-detail__section-title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
}

.mod-detail__description {
  color: var(--text-muted);
  line-height: 1.8;
}

.mod-detail__description h3 {
  margin: 32px 0 16px;
  font-size: 20px;
  color: var(--text);
}

.mod-detail__description ul {
  padding-left: 24px;
}

.mod-detail__description li {
  margin: 8px 0;
}

.mod-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
}

.mod-detail__install ol {
  padding-left: 24px;
  color: var(--text-muted);
  line-height: 1.8;
}

.mod-detail__install li {
  margin: 12px 0;
}

.mod-detail__sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mod-detail__info-card {
  padding: 24px;
}

.mod-detail__info-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
}

.mod-detail__info-grid {
  display: grid;
  gap: 16px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.info-item__label {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 600;
}

.info-item__value {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.mod-detail__download-card {
  padding: 24px;
}

.download-note {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dependencies {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dependency {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dependency__name {
  font-size: 14px;
  font-weight: 600;
}

.dependency__type {
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 6px;
  color: var(--accent-light);
  font-weight: 600;
}

.compatible-mods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compatible-mod {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.compatible-mod:hover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.05);
}

.mod-detail__related {
  margin-top: 60px;
}

.section__title {
  margin: 0 0 32px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__title {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer__sub {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 40ch;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 1024px) {
  .browse-layout {
    grid-template-columns: 1fr;
  }

  .browse-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .mod-detail__layout {
    grid-template-columns: 1fr;
  }

  .mod-detail__sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .nav {
    gap: 4px;
  }

  .nav__link {
    padding: 6px 12px;
    font-size: 13px;
  }

  .categories {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .mods {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .browse-sidebar {
    grid-template-columns: 1fr;
  }

  .mod-detail__sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }

  .heroStats {
    flex-direction: column;
    width: 100%;
  }

  .heroStat {
    width: 100%;
  }

  .cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}


/* Enhanced Footer Sections */
.footer__section {
  flex: 1;
  min-width: 200px;
}

.footer__heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: var(--text);
}

.footer__section .footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__section .footer__links a {
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer__section {
    width: 100%;
  }
}
