/* Modpacks catalog — template-pages/modpacks.php. Styled after the seeds catalog. */

.mpc-page {
  --mpc-card: var(--gl-surface-2);
  --mpc-card-2: var(--gl-surface);
  --mpc-line: var(--gl-line);
  --mpc-line-2: var(--gl-line-2);
  --mpc-text: var(--gl-text);
  --mpc-muted: var(--gl-muted);
  --mpc-accent: var(--gl-accent-mid);
  --mpc-accent-2: var(--gl-accent);
  --mpc-blue: var(--gl-blue);
  --mpc-grad: linear-gradient(267.71deg, var(--gl-blue) -37.36%, var(--gl-accent) 98.08%);
  color: var(--mpc-text);
  font-family: 'Gilroy', sans-serif;
}

.mpc-page *,
.mpc-page *::before,
.mpc-page *::after {
  box-sizing: border-box;
}

.mpc-page .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.mpc-hero {
  padding: 24px 0 0;
}

.mpc-hero__card {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: 32px 20px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--gl-accent-mid) 45%, transparent);
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--gl-accent) 28%, transparent) 0%, transparent 60%),
    var(--mpc-hero-bg, none) center / cover no-repeat,
    color-mix(in srgb, var(--gl-surface) 92%, transparent);
  overflow: hidden;
}

@media (min-width: 768px) {
  .mpc-hero {
    padding-top: 40px;
  }

  .mpc-hero__card {
    padding: 40px 48px;
  }
}

.mpc-hero__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 18px;
  color: var(--mpc-muted);
}

.mpc-hero__breadcrumbs li:not(:last-child)::after {
  content: '›';
  margin-left: 6px;
}

.mpc-hero__breadcrumbs li:last-child {
  color: var(--mpc-text);
}

.mpc-hero__breadcrumbs a {
  color: var(--mpc-muted);
  text-decoration: none;
}

.mpc-hero__breadcrumbs a:hover {
  color: var(--mpc-text);
}

.mpc-hero__title {
  margin: 0;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: #fff;
}

@media (min-width: 768px) {
  .mpc-hero__title {
    font-size: 44px;
  }
}

.mpc-hero__accent {
  background: linear-gradient(90deg, var(--gl-accent-light) 0%, var(--gl-accent-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mpc-hero__caption {
  max-width: 720px;
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gl-text-soft);
}

/* Search */

.mpc-search {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 24px auto 0;
}

.mpc-search__field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.mpc-search__field svg {
  position: absolute;
  left: 14px;
  color: var(--mpc-muted);
  pointer-events: none;
}

.mpc-search__input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  font: inherit;
  font-size: 15px;
  color: var(--mpc-text);
  background: var(--gl-line);
  border: 1px solid var(--mpc-line-2);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mpc-search__input::placeholder {
  color: var(--mpc-muted);
}

.mpc-search__input:focus {
  border-color: var(--mpc-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gl-accent-mid) 25%, transparent);
}

.mpc-search__button {
  flex: none;
  height: 44px;
  padding: 0 22px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--mpc-accent-2);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.mpc-search__button:hover {
  background: color-mix(in srgb, var(--gl-accent) 88%, #fff);
}

.mpc-flash {
  margin-top: 24px;
}

/* ---------- Catalog ---------- */

.mpc-catalog {
  padding: 48px 0 24px;
}

.mpc-catalog__heading {
  margin: 0 0 28px;
  text-align: center;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
}

@media (min-width: 960px) {
  .mpc-catalog {
    padding-top: 64px;
  }

  .mpc-catalog__heading {
    margin-bottom: 40px;
    font-size: 40px;
  }
}

.mpc-layout {
  display: block;
}

@media (min-width: 960px) {
  .mpc-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .mpc-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

/* ---------- Sidebar / filters ---------- */

.mpc-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

/* Desktop: the sidebar is part of the page flow — no own scrollbar, no sticky. */

.mpc-sidebar__head,
.mpc-sidebar__foot {
  display: none;
}

.mpc-filter {
  min-width: 0;
  margin: 0;
  padding: 18px 18px 14px;
  background: var(--mpc-card);
  border: 0;
  border-radius: 16px;
}

.mpc-filter__title {
  display: flex;
  align-items: center;
  gap: 8px;
  float: left; /* makes legend sit inside the padded box */
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: #fff;
}

.mpc-filter__title + * {
  clear: both;
}

.mpc-filter__badge,
.mpc-toolbar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--mpc-accent-2);
  border-radius: 10px;
}

.mpc-filter__search {
  position: relative;
  display: flex;
  margin: 4px 0 6px;
}

.mpc-filter__search input {
  width: 100%;
  height: 36px;
  padding: 0 36px 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--mpc-text);
  background: var(--gl-line);
  border: 1px solid var(--mpc-line-2);
  border-radius: 8px;
  outline: none;
}

.mpc-filter__search input:focus {
  border-color: var(--mpc-accent);
}

.mpc-filter__search input::-webkit-search-cancel-button {
  display: none;
}

.mpc-filter__search svg {
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--mpc-muted);
  pointer-events: none;
}

.mpc-filter__list {
  display: flex;
  flex-direction: column;
}

.mpc-filter__empty {
  margin: 6px 0;
  font-size: 14px;
  color: var(--mpc-muted);
}

.mpc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 0;
  cursor: pointer;
  user-select: none;
}

.mpc-check.is-filtered-out {
  display: none;
}

.mpc-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mpc-check__box {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--gl-line);
  border: 1px solid var(--mpc-line-2);
  border-radius: 4px;
  transition: background 0.15s, border-color 0.15s;
}

.mpc-check__icon {
  opacity: 0;
  transition: opacity 0.15s;
}

.mpc-check:hover .mpc-check__box {
  border-color: color-mix(in srgb, var(--gl-line-2) 75%, #fff);
}

.mpc-check input:checked + .mpc-check__box {
  background: var(--mpc-accent-2);
  border-color: var(--mpc-accent-2);
}

.mpc-check input:checked + .mpc-check__box .mpc-check__icon {
  opacity: 1;
}

.mpc-check input:focus-visible + .mpc-check__box {
  outline: 2px solid var(--mpc-blue);
  outline-offset: 2px;
}

.mpc-check__label {
  font-size: 15px;
  line-height: 20px;
  color: var(--gl-text-alt);
}

.mpc-check input:checked ~ .mpc-check__label {
  color: #fff;
  font-weight: 600;
}

/* Mobile: sidebar becomes a slide-in panel */
@media (max-width: 959px) {
  .mpc-sidebar {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: flex-end;
    background: rgba(8, 9, 20, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
  }

  .mpc-sidebar.is-open {
    opacity: 1;
    visibility: visible;
  }

  .mpc-filters {
    width: min(360px, 100%);
    height: 100%;
    gap: 12px;
    padding: 0 16px 16px;
    overflow-y: auto;
    background: var(--gl-surface-deep);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .mpc-sidebar.is-open .mpc-filters {
    transform: none;
  }

  .mpc-sidebar__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -16px;
    padding: 16px;
    background: var(--gl-surface-deep);
  }

  .mpc-sidebar__title {
    font-weight: 700;
    font-size: 20px;
  }

  .mpc-sidebar__close {
    width: 36px;
    height: 36px;
    font-size: 26px;
    line-height: 1;
    color: var(--mpc-text);
    background: var(--mpc-card);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
  }

  .mpc-sidebar__foot {
    position: sticky;
    bottom: -16px;
    display: flex;
    gap: 10px;
    margin: auto -16px -16px;
    padding: 12px 16px 16px;
    background: var(--gl-surface-deep);
    border-top: 1px solid var(--mpc-line);
  }

  .mpc-sidebar__reset,
  .mpc-sidebar__apply {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
  }

  .mpc-sidebar__reset {
    color: var(--mpc-text);
    background: var(--mpc-card);
  }

  .mpc-sidebar__apply {
    color: #fff;
    background: var(--mpc-accent-2);
    border: 0;
  }

  .mpc-filter {
    border-radius: 12px;
  }

  body.mpc-lock {
    overflow: hidden;
  }
}

.mpc-filters__submit {
  height: 44px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--mpc-accent-2);
  border: 0;
  border-radius: 8px;
}

/* ---------- Toolbar ---------- */

.mpc-main {
  min-width: 0;
  transition: opacity 0.2s;
}

.mpc-main.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.mpc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.mpc-toolbar__filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--mpc-text);
  background: var(--mpc-card);
  border: 1px solid var(--mpc-line-2);
  border-radius: 8px;
  cursor: pointer;
}

@media (min-width: 960px) {
  .mpc-toolbar__filters {
    display: none;
  }
}

.mpc-toolbar__count {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
  color: var(--mpc-muted);
}

.mpc-toolbar__count strong {
  color: var(--mpc-text);
  font-weight: 600;
}

@media (max-width: 959px) {
  .mpc-toolbar__count {
    order: 3;
    flex-basis: 100%;
  }
}

.mpc-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.mpc-sort__label {
  font-size: 14px;
  color: var(--mpc-muted);
  white-space: nowrap;
}

.mpc-sort__select {
  height: 40px;
  padding: 0 34px 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--mpc-text);
  background: var(--mpc-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%238D8FAC' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center no-repeat;
  border: 1px solid var(--mpc-line-2);
  border-radius: 8px;
  appearance: none;
  cursor: pointer;
}

.mpc-sort__select option {
  background: var(--mpc-card);
}

/* Active filter chips */

.mpc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.mpc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: color-mix(in srgb, var(--gl-accent) 25%, transparent);
  border: 1px solid color-mix(in srgb, var(--gl-accent-light) 50%, transparent);
  border-radius: 16px;
  transition: background 0.15s;
}

.mpc-chip span {
  font-size: 18px;
  line-height: 1;
  color: var(--gl-accent-soft);
}

.mpc-chip:hover {
  color: #fff;
  background: color-mix(in srgb, var(--gl-accent) 45%, transparent);
}

.mpc-chips__clear {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mpc-muted);
  text-decoration: underline;
}

.mpc-chips__clear:hover {
  color: #fff;
}

/* ---------- Cards ---------- */

.mpc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mpc-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: var(--mpc-card-2);
  border: 1px solid transparent;
  border-radius: 16px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.mpc-card:hover {
  background: color-mix(in srgb, var(--gl-surface) 25%, var(--gl-surface-2));
  border-color: color-mix(in srgb, var(--gl-accent-mid) 45%, transparent);
}

@media (min-width: 600px) {
  .mpc-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
  }
}

@media (min-width: 1100px) {
  .mpc-card {
    grid-template-columns: 136px minmax(0, 1fr) auto;
    align-items: center;
  }
}

.mpc-card__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gl-surface-3);
  border-radius: 10px;
}

.mpc-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.mpc-card:hover .mpc-card__media img {
  transform: scale(1.05);
}

.mpc-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mpc-card__title {
  margin: 0;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
}

@media (min-width: 600px) {
  .mpc-card__title {
    font-size: 19px;
  }
}

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

.mpc-card__title a:hover {
  color: var(--gl-accent-soft);
}

.mpc-card__author {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--mpc-muted);
}

.mpc-card__desc {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  color: var(--gl-text-soft);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 599px) {
  .mpc-card__desc {
    display: none;
  }
}

.mpc-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
}

.mpc-card__tags,
.mpc-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mpc-card__tags {
  gap: 6px;
}

.mpc-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gl-text-bright);
  background: var(--gl-chip);
  border-radius: 6px;
}

.mpc-tag--more {
  cursor: help;
  color: var(--gl-accent-soft);
}

.mpc-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--mpc-muted);
  white-space: nowrap;
}

.mpc-card__meta svg {
  flex: none;
}

.mpc-card__loader {
  color: var(--gl-text-soft);
}

.mpc-card__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

@media (min-width: 1100px) {
  .mpc-card__actions {
    grid-column: auto;
    flex-direction: column;
    width: 148px;
  }

  .mpc-card__actions .mpc-card__install,
  .mpc-card__actions .mpc-card__details {
    flex: none;
  }
}

.mpc-card__install,
.mpc-card__details {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.mpc-card__install {
  color: #fff;
  background: var(--mpc-grad);
  border: 0;
  box-shadow: 0 0 4px color-mix(in srgb, var(--gl-glow) 20%, transparent);
}

.mpc-card__install:hover {
  box-shadow: 0 0 12px color-mix(in srgb, var(--gl-glow) 45%, transparent);
}

.mpc-card__install img {
  width: 18px;
  height: 18px;
}

.mpc-card__details {
  color: var(--mpc-text);
  background: transparent;
  border: 1px solid var(--mpc-line-2);
}

.mpc-card__details:hover {
  color: #fff;
  background: var(--gl-surface-3);
}

/* Empty state */

.mpc-empty {
  padding: 48px 20px;
  text-align: center;
  background: var(--mpc-card-2);
  border-radius: 16px;
}

.mpc-empty__title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.mpc-empty__text {
  margin: 0 0 20px;
  color: var(--mpc-muted);
}

.mpc-empty__reset {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--mpc-accent-2);
  border-radius: 8px;
}

.mpc-empty__reset:hover {
  color: #fff;
}

/* ---------- Pagination ---------- */

.mpc-pagination {
  margin-top: 28px;
}

.mpc-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mpc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--mpc-text);
  text-decoration: none;
  background: var(--mpc-card);
  border-radius: 8px;
  transition: background 0.15s;
}

.mpc-pagination a.page-numbers:hover {
  background: var(--gl-line);
}

.mpc-pagination .page-numbers.current {
  color: #fff;
  background: var(--mpc-accent-2);
}

.mpc-pagination .page-numbers.dots {
  background: none;
}

/* Sections under the catalog */

.mpc-section + .mpc-section {
  margin-top: 40px;
}

.mpc-sections {
  margin-top: 40px;
}

/* ---------- Features (hosting advantages) ---------- */

.mpc-features {
  padding: 56px 0 24px;
}

.mpc-features__title {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  color: #fff;
}

.mpc-features__subtitle {
  max-width: 760px;
  margin: 12px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gl-text-soft);
}

.mpc-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .mpc-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mpc-features {
    padding-top: 80px;
  }

  .mpc-features__title {
    font-size: 36px;
  }

  .mpc-features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.mpc-feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gl-surface-2) 95%, transparent) 0%, color-mix(in srgb, var(--gl-surface) 95%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--gl-accent-mid) 30%, transparent);
  border-radius: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.mpc-feature:hover {
  border-color: color-mix(in srgb, var(--gl-accent-light) 70%, transparent);
  transform: translateY(-2px);
}

.mpc-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--gl-accent) 18%, transparent);
  border-radius: 14px;
}

.mpc-feature__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.mpc-feature__title {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
}

.mpc-feature__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gl-text-dim);
}

/* Calculator / CTA block right under the hero */
.mpc-hero + .mpc-sections,
.mpc-flash + .mpc-sections {
  margin-top: 32px;
}

/* Catalog page: no heading above filters by default */
.mpc-hero + .mpc-catalog,
.mpc-flash + .mpc-catalog {
  padding-top: 32px;
}

/* =========================================================
   Landing — /modded-minecraft-server-hosting/ (template-pages/modpacks.php)
   ========================================================= */

.mpl-hero {
  position: relative;
  padding: 56px 0 64px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.mpl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--mpl-hero-bg, none) center / cover no-repeat;
}

.mpl-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--gl-accent) 35%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--gl-bg) 55%, transparent) 0%, color-mix(in srgb, var(--gl-bg) 90%, transparent) 75%, var(--gl-bg) 100%);
}

@media (min-width: 960px) {
  .mpl-hero {
    padding: 88px 0 96px;
  }
}

.mpl-hero__breadcrumbs {
  margin-bottom: 18px;
}

.mpl-hero__title {
  max-width: 900px;
  margin: 0 auto;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  color: #fff;
}

@media (min-width: 960px) {
  .mpl-hero__title {
    font-size: 56px;
  }
}

.mpl-hero__caption {
  display: -webkit-box;
  max-width: 680px;
  margin: 16px auto 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.55;
  color: var(--gl-text-soft);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.mpl-hero__search {
  margin-top: 28px;
}

.mpl-hero__browse {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--gl-accent-soft);
  text-decoration: none;
}

.mpl-hero__browse:hover {
  color: #fff;
}

/* Section heads */

.mpl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mpl-head__title {
  margin: 0;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  color: #fff;
}

@media (min-width: 960px) {
  .mpl-head__title {
    font-size: 36px;
  }
}

.mpl-head__link {
  flex: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--gl-accent-soft);
  text-decoration: none;
}

.mpl-head__link:hover {
  color: #fff;
}

/* Popular grid */

.mpl-popular {
  padding: 56px 0 8px;
}

.mpl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 768px) {
  .mpl-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.mpl-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}

.mpl-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gl-surface-2);
  border: 1px solid transparent;
  border-radius: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.mpl-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.mpl-card:hover .mpl-card__media {
  border-color: color-mix(in srgb, var(--gl-accent-light) 70%, transparent);
  transform: translateY(-2px);
}

.mpl-card:hover .mpl-card__media img {
  transform: scale(1.05);
}

.mpl-card__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: color-mix(in srgb, var(--gl-bg) 80%, transparent);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.mpl-card__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
}

.mpl-card:hover .mpl-card__title {
  color: var(--gl-accent-soft);
}

.mpl-more {
  margin-top: 32px;
  text-align: center;
}

.mpl-more__button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 32px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  background: var(--mpc-grad);
  border-radius: 8px;
  box-shadow: 0 0 6px color-mix(in srgb, var(--gl-glow) 25%, transparent);
  transition: box-shadow 0.2s;
}

.mpl-more__button:hover {
  color: #fff;
  box-shadow: 0 0 16px color-mix(in srgb, var(--gl-glow) 50%, transparent);
}

/* Browse by category */

.mpl-browse {
  padding: 56px 0 8px;
}

.mpl-browse__title {
  margin-bottom: 20px;
}

.mpl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mpl-chips--loaders {
  margin-top: 12px;
}

.mpl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gl-text-bright);
  text-decoration: none;
  background: var(--gl-surface-2);
  border: 1px solid var(--gl-line);
  border-radius: 20px;
  transition: border-color 0.15s, background 0.15s;
}

.mpl-chip span {
  font-size: 12px;
  color: var(--gl-muted);
}

.mpl-chip:hover {
  color: #fff;
  background: color-mix(in srgb, var(--gl-accent) 30%, transparent);
  border-color: color-mix(in srgb, var(--gl-accent-light) 60%, transparent);
}

.mpl-chip--loader {
  background: color-mix(in srgb, var(--gl-accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--gl-accent-light) 35%, transparent);
}

/* How it works */

.mpl-steps-section {
  padding: 56px 0 8px;
}

.mpl-steps-section__title {
  margin-bottom: 24px;
  text-align: center;
}

.mpl-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mpl-step;
}

@media (min-width: 768px) {
  .mpl-steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.mpl-step {
  position: relative;
  padding: 24px;
  background: var(--gl-surface);
  border: 1px solid var(--gl-line);
  border-radius: 16px;
  counter-increment: mpl-step;
}

.mpl-step::before {
  content: counter(mpl-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--mpc-grad);
  border-radius: 50%;
}

.mpl-step__title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}

.mpl-step__text,
.mpl-step__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gl-text-dim);
}

.mpl-hero + .mpc-sections,
.mpl-hero + .mpc-flash {
  margin-top: 8px;
}

/* ---------- Polish: smaller popular tiles, shorter feature texts ---------- */

@media (min-width: 600px) {
  .mpl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .mpl-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .mpl-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
}

.mpl-card {
  gap: 10px;
}

.mpl-card__media {
  border-radius: 12px;
}

.mpl-card__badge {
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  font-size: 11px;
}

.mpl-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Feature cards: three lines of text, the rest stays in the markup (SEO). */
.mpc-features__subtitle {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mpc-feature {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.mpc-feature__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.mpc-feature__icon img {
  width: 32px;
  height: 32px;
}

.mpc-feature__body {
  min-width: 0;
}

.mpc-feature__title {
  margin-bottom: 6px;
  font-size: 17px;
}

.mpc-feature__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* =========================================================
   Landing design pass 3
   ========================================================= */

/* --- Calculator + CTA band with glowing lines --- */

.mpl-buy {
  position: relative;
  margin-top: 8px;
  padding: 24px 0 48px;
  background:
    radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--gl-accent) 22%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--gl-surface) 60%, transparent) 0%, transparent 100%);
}

.mpl-buy__line {
  position: absolute;
  left: 50%;
  width: min(1200px, calc(100% - 32px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--gl-accent-light) 85%, transparent) 50%, transparent 100%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--gl-accent-light) 60%, transparent);
}

.mpl-buy__line--top {
  top: 0;
}

.mpl-buy__line--bottom {
  bottom: 0;
}

.mpl-buy .mpc-sections {
  margin-top: 16px;
}

/* a thin divider between calculator and the custom-setup CTA */
.mpl-buy .mpc-section + .mpc-section {
  position: relative;
  margin-top: 48px;
  padding-top: 48px;
}

.mpl-buy .mpc-section + .mpc-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(720px, calc(100% - 32px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, var(--gl-line-2) 50%, transparent 100%);
}

.mpl-buy .managed-modpack-cta__card {
  border: 1px solid color-mix(in srgb, var(--gl-accent-light) 35%, transparent);
  background:
    radial-gradient(80% 140% at 100% 50%, color-mix(in srgb, var(--gl-blue) 18%, transparent) 0%, transparent 60%),
    radial-gradient(80% 140% at 0% 50%, color-mix(in srgb, var(--gl-accent) 22%, transparent) 0%, transparent 60%),
    var(--gl-surface-deep);
}

/* --- Features: big glowing icons on the wave background, even grid --- */

.mpl-features {
  position: relative;
  margin-top: 40px;
  padding: 72px 0 80px;
  background: url('../../img/modpacks/footer-bg.webp') center / cover no-repeat;
  isolation: isolate;
}

.mpl-features::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--gl-bg) 0%, color-mix(in srgb, var(--gl-bg) 35%, transparent) 22%, color-mix(in srgb, var(--gl-bg) 35%, transparent) 78%, var(--gl-bg) 100%);
}

.mpl-features .mpc-features__subtitle {
  -webkit-line-clamp: 2;
}

.mpl-features .mpc-features__grid {
  margin-top: 36px;
}

.mpl-features .mpc-feature {
  align-items: center;
  gap: 20px;
  min-height: 150px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(36, 37, 70, 0.95) 0%, rgba(24, 25, 48, 0.92) 100%);
  border: 1px solid rgba(64, 120, 255, 0.55);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(30, 60, 200, 0.12), inset 0 0 24px color-mix(in srgb, var(--gl-accent) 8%, transparent);
  backdrop-filter: blur(4px);
}

.mpl-features .mpc-feature:hover {
  border-color: rgba(120, 160, 255, 0.9);
  box-shadow: 0 0 32px rgba(60, 100, 255, 0.25);
}

.mpl-features .mpc-feature__icon {
  width: 64px;
  height: 64px;
  background: none;
  border-radius: 0;
}

.mpl-features .mpc-feature__icon img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 10px rgba(110, 120, 255, 0.55));
}

.mpl-features .mpc-feature__text {
  -webkit-line-clamp: 3;
}

/* --- Reviews (section-reviews-list): calmer heading, shorter cards --- */

.mpl .review__section .section-title {
  font-size: 30px;
  line-height: 1.15;
}

@media (min-width: 960px) {
  .mpl .review__section .section-title {
    font-size: 40px;
  }
}

.mpl .review__section__item {
  border: 1px solid var(--gl-line);
  border-radius: 16px;
  transition: border-color 0.2s;
}

.mpl .review__section__item:hover {
  border-color: color-mix(in srgb, var(--gl-accent-light) 55%, transparent);
}

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

/* --- "Fast start" video section (section-how-create): looks like a page block --- */

.mpl .section-how-create .section-title {
  text-align: center;
}

.mpl .section-how-create .video-block {
  max-width: 900px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gl-accent-light) 40%, transparent);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.mpl .section-how-create .bottom-description {
  max-width: 900px;
  margin: 28px auto 0;
}

.mpl .section-how-create .bottom-description ol,
.mpl .section-how-create .bottom-description ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mpl-howto;
}

@media (min-width: 768px) {
  .mpl .section-how-create .bottom-description ol,
  .mpl .section-how-create .bottom-description ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mpl .section-how-create .bottom-description li {
  position: relative;
  min-height: 52px;
  margin: 0;
  padding: 14px 16px 14px 56px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gl-text-soft);
  background: var(--gl-surface);
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  counter-increment: mpl-howto;
}

.mpl .section-how-create .bottom-description li::before {
  content: counter(mpl-howto);
  position: absolute;
  left: 14px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: var(--mpc-grad);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* --- How it works (restored interactive block): spacing on the landing --- */

.mpl-install {
  margin-top: 0;
  padding-top: 72px;
}

.mpl-install__title {
  text-align: center;
}

/* --- Catalog pagination: centered, without the theme's pill background --- */

.mpc-pagination {
  display: flex;
  justify-content: center;
}

.mpc-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: auto;
  margin: 0 auto;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.mpc-pagination ul.page-numbers > li {
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
}

.mpc-pagination .page-numbers .page-numbers {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 15px;
}

/* =========================================================
   Landing design pass 4 — hero art, bands, panels
   ========================================================= */

/* --- Hero with the illustration on the right --- */

.mpl-hero__grid {
  position: relative;
}

@media (min-width: 1024px) {
  .mpl-hero--art {
    text-align: left;
  }

  .mpl-hero--art .mpl-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 32px;
  }

  .mpl-hero--art .mpl-hero__breadcrumbs {
    justify-content: flex-start;
  }

  .mpl-hero--art .mpl-hero__title,
  .mpl-hero--art .mpl-hero__caption,
  .mpl-hero--art .mpl-hero__search {
    margin-left: 0;
    margin-right: 0;
  }
}

.mpl-hero__art {
  display: none;
}

@media (min-width: 1024px) {
  .mpl-hero__art {
    position: relative;
    display: flex;
    justify-content: center;
  }

  .mpl-hero__art::before {
    content: '';
    position: absolute;
    inset: 10% 5%;
    z-index: -1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--gl-violet) 45%, transparent), transparent);
    filter: blur(12px);
  }

  .mpl-hero__art img {
    width: 100%;
    max-width: 520px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
    animation: mpl-float 6s ease-in-out infinite;
  }
}

@keyframes mpl-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .mpl-hero__art img {
    animation: none;
  }
}

/* --- Browse by category as a panel --- */

.mpl-browse__panel {
  padding: 28px 24px;
  background:
    radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--gl-accent) 20%, transparent) 0%, transparent 60%),
    var(--gl-surface);
  border: 1px solid var(--gl-line);
  border-radius: 20px;
}

@media (min-width: 768px) {
  .mpl-browse__panel {
    padding: 36px 40px;
  }
}

/* --- Lower sections: each one in its own band --- */

.mpl-bands {
  margin-top: 0;
}

.mpl-band,
.mpl .mpl-bands .mpc-section + .mpc-section {
  position: relative;
  margin-top: 0;
  padding: 64px 0;
}

.mpl-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1200px, calc(100% - 32px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, var(--gl-line-2) 50%, transparent 100%);
}

.mpl-band--alt {
  background:
    radial-gradient(70% 100% at 50% 0%, color-mix(in srgb, var(--gl-accent) 14%, transparent) 0%, transparent 70%),
    var(--gl-surface-deep);
}

.mpl-band > .section,
.mpl-band .section {
  margin-top: 0;
  padding-top: 0;
}

/* How it works sits in an alt band too */
.mpl-install.mpl-band--alt {
  margin-top: 64px;
  padding: 64px 0;
}

/* --- Reviews: modest heading, rating aligned --- */

.mpl .page-sections .review__section .section-title,
.mpl .review__section h2.section-title {
  margin: 0 !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
}

@media (min-width: 960px) {
  .mpl .page-sections .review__section .section-title,
  .mpl .review__section h2.section-title {
    font-size: 36px !important;
  }
}

.mpl .review__section {
  padding-top: 0;
}

.mpl .review__section__item {
  background: var(--gl-surface);
}

.mpl-band--alt .review__section__item {
  background: color-mix(in srgb, var(--gl-surface) 50%, var(--gl-surface-2));
}

/* Hero "Browse all modpacks" — a real button, not a text link */
.mpl-hero__browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin-top: 20px;
  padding: 0 28px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(267.71deg, var(--gl-blue) -37.36%, var(--gl-accent) 98.08%);
  border-radius: 8px;
  box-shadow: 0 0 8px color-mix(in srgb, var(--gl-glow) 30%, transparent);
  transition: box-shadow 0.2s, transform 0.2s;
}

.mpl-hero__browse:hover {
  color: #fff;
  box-shadow: 0 0 18px color-mix(in srgb, var(--gl-glow) 55%, transparent);
  transform: translateY(-1px);
}

@media (max-width: 599px) {
  .mpl-hero__browse {
    width: 100%;
  }
}

/* ---------- Live search dropdown (landing hero) ---------- */

.mpl-hero__search {
  position: relative;
  z-index: 20;
}

.mpl-live {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
  text-align: left;
  background: var(--gl-surface);
  border: 1px solid color-mix(in srgb, var(--gl-accent-light) 45%, transparent);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.mpl-live[hidden] {
  display: none;
}

.mpl-live__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  color: var(--gl-text);
  text-decoration: none;
  border-radius: 8px;
}

.mpl-live__item:hover,
.mpl-live__item.is-active {
  color: #fff;
  background: color-mix(in srgb, var(--gl-accent) 30%, transparent);
}

.mpl-live__img {
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: cover;
  background: var(--gl-surface-3);
  border-radius: 8px;
}

.mpl-live__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mpl-live__name {
  overflow: hidden;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mpl-live__name mark {
  color: var(--gl-accent-soft);
  background: none;
}

.mpl-live__meta {
  font-size: 12px;
  color: var(--gl-muted);
}

.mpl-live__empty {
  padding: 14px 12px;
  font-size: 14px;
  color: var(--gl-muted);
}

.mpl-live__all {
  display: block;
  margin-top: 4px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gl-accent-soft);
  text-decoration: none;
  border-top: 1px solid var(--gl-line);
}

.mpl-live__all:hover {
  color: #fff;
}

/* Popular: 12 cards fill every row at 6/4/3 columns; on phones show 6 (3 rows of 2). */
@media (max-width: 599px) {
  .mpl-grid .mpl-card:nth-child(n + 7) {
    display: none;
  }
}

/* ---------- Catalog cards & filter panels: visible but quiet borders ---------- */

.mpc-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 40%),
    color-mix(in srgb, var(--gl-surface) 60%, var(--gl-surface-2));
  border: 1px solid color-mix(in srgb, var(--gl-accent-light) 16%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 6px 18px rgba(0, 0, 0, 0.18);
}

.mpc-card:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gl-accent-light) 6%, transparent) 0%, rgba(255, 255, 255, 0) 50%),
    color-mix(in srgb, var(--gl-surface) 30%, var(--gl-surface-2));
  border-color: color-mix(in srgb, var(--gl-accent-light) 42%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 26px rgba(0, 0, 0, 0.28);
}

.mpc-card__media {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mpc-filter {
  border: 1px solid color-mix(in srgb, var(--gl-accent-light) 14%, transparent);
}

.mpc-toolbar__filters,
.mpc-sort__select {
  border-color: color-mix(in srgb, var(--gl-accent-light) 22%, transparent);
}

/* ---------- Landing hero must not clip the live-search dropdown ---------- */
/* overflow:hidden cut the results off and they slid under the calculator band. */
.mpl-hero {
  z-index: 5;
  overflow: visible;
}

/* ---------- Catalog hero: game screenshot background + Cleo peeking out ---------- */

.mpc-hero__card {
  min-height: 260px;
  background:
    radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--gl-accent) 35%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--gl-bg) 62%, transparent) 0%, color-mix(in srgb, var(--gl-bg) 86%, transparent) 100%),
    var(--mpc-hero-bg, none) center / cover no-repeat,
    var(--gl-surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.mpc-hero__card > *:not(.mpc-hero__mascot) {
  position: relative;
  z-index: 1;
}

.mpc-hero__card .mpc-hero__title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.mpc-hero__mascot {
  display: none;
}

@media (min-width: 1024px) {
  .mpc-hero__card {
    padding-left: 140px;
    padding-right: 140px;
  }

  .mpc-hero__mascot {
    position: absolute;
    right: 0;
    bottom: -14px;
    z-index: 0;
    display: block;
    width: auto;
    height: 118%;
    max-height: 340px;
    pointer-events: none;
    filter: drop-shadow(-8px 10px 24px rgba(0, 0, 0, 0.45));
  }
}

/* soft glow behind the whole catalog area so it doesn't sit on a flat colour */
.mpc-page:not(.mpl) {
  background:
    radial-gradient(60% 40% at 50% 0%, color-mix(in srgb, var(--gl-accent) 18%, transparent) 0%, transparent 70%);
}

/* The mascot artwork is cut flat on its left side — mirror it so the cut edge sits
   on the card's right border (hidden by overflow) and Cleo looks into the card. */
@media (min-width: 1024px) {
  .mpc-hero__card {
    padding-left: 200px;
    padding-right: 200px;
  }

  .mpc-hero__mascot {
    right: -2px;
    height: 112%;
    max-height: 300px;
    transform: scaleX(-1);
    filter: drop-shadow(8px 10px 24px rgba(0, 0, 0, 0.45));
  }
}

@media (min-width: 1024px) {
  .mpc-hero__card {
    padding-left: 48px;
    padding-right: 180px;
  }

  .mpc-hero__card .mpc-hero__title {
    font-size: 40px;
  }
}

/* ---------- Catalog page backdrop: blurred game screenshot behind everything ---------- */

.mpc-page--catalog {
  position: relative;
  isolation: isolate;
  background: none;
}

.mpc-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 1100px;
  overflow: hidden;
  pointer-events: none;
}

/* the screenshot itself — blurred, dimmed, fading out downwards */
.mpc-backdrop::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: var(--mpc-page-bg, none) center top / cover no-repeat;
  filter: blur(14px) saturate(1.15);
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 45%, transparent 100%);
}

/* violet tint + a faint Minecraft-style pixel grid on top of it */
.mpc-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 50% at 50% 0%, color-mix(in srgb, var(--gl-accent) 35%, transparent) 0%, transparent 70%),
    radial-gradient(40% 40% at 0% 30%, color-mix(in srgb, var(--gl-blue) 14%, transparent) 0%, transparent 70%),
    radial-gradient(40% 40% at 100% 40%, color-mix(in srgb, var(--gl-violet) 16%, transparent) 0%, transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, color-mix(in srgb, var(--gl-bg) 35%, transparent) 0%, color-mix(in srgb, var(--gl-bg) 55%, transparent) 60%, var(--gl-bg) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

/* keep sidebar and cards readable over the backdrop */
.mpc-page--catalog .mpc-filter {
  background: color-mix(in srgb, var(--gl-surface-2) 88%, transparent);
  backdrop-filter: blur(6px);
}

.mpc-page--catalog .mpc-card {
  backdrop-filter: blur(6px);
}

@media (max-width: 767px) {
  .mpc-backdrop {
    height: 700px;
  }
}

/* =========================================================
   Pixel decor (WiseHosting-like): edge-to-edge lines, fading
   section backgrounds, Minecraft-style pixel clusters.
   ========================================================= */

.mpc-page {
  --px-cluster: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' shape-rendering='crispEdges'%3E%3Cg fill='%238B7CFF'%3E%3Crect x='0' y='0' width='1' height='1' opacity='.9'/%3E%3Crect x='2' y='0' width='1' height='1' opacity='.5'/%3E%3Crect x='1' y='1' width='1' height='1' opacity='.7'/%3E%3Crect x='3' y='1' width='1' height='1' opacity='.35'/%3E%3Crect x='0' y='2' width='1' height='1' opacity='.4'/%3E%3Crect x='2' y='2' width='1' height='1' opacity='.8'/%3E%3Crect x='5' y='2' width='1' height='1' opacity='.3'/%3E%3Crect x='1' y='3' width='1' height='1' opacity='.25'/%3E%3Crect x='4' y='3' width='1' height='1' opacity='.55'/%3E%3Crect x='7' y='3' width='1' height='1' opacity='.2'/%3E%3Crect x='3' y='4' width='1' height='1' opacity='.3'/%3E%3Crect x='6' y='5' width='1' height='1' opacity='.4'/%3E%3Crect x='9' y='5' width='1' height='1' opacity='.15'/%3E%3Crect x='5' y='6' width='1' height='1' opacity='.2'/%3E%3Crect x='11' y='7' width='1' height='1' opacity='.12'/%3E%3C/g%3E%3Cg fill='%23007CEE'%3E%3Crect x='1' y='0' width='1' height='1' opacity='.35'/%3E%3Crect x='3' y='3' width='1' height='1' opacity='.45'/%3E%3Crect x='8' y='4' width='1' height='1' opacity='.25'/%3E%3C/g%3E%3C/svg%3E");
  --px-line: color-mix(in srgb, var(--gl-accent-light) 14%, transparent);
}

/* ---------- Landing: pixel strip under the hero ---------- */

.mpl-strip {
  position: relative;
  height: 28px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 8 4' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1' fill='%238B7CFF' opacity='.55'/%3E%3Crect x='3' y='1' width='1' height='1' fill='%236C5CE7' opacity='.35'/%3E%3Crect x='5' y='0' width='1' height='1' fill='%23007CEE' opacity='.3'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%238B7CFF' opacity='.25'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%238B7CFF' opacity='.45'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23007CEE' opacity='.2'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%238B7CFF' opacity='.3'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%236C5CE7' opacity='.2'/%3E%3C/svg%3E") repeat-x left center / 56px 28px,
    linear-gradient(90deg, color-mix(in srgb, var(--gl-accent) 18%, transparent), color-mix(in srgb, var(--gl-bg) 60%, transparent) 50%, color-mix(in srgb, var(--gl-accent) 18%, transparent));
  border-top: 1px solid var(--px-line);
  border-bottom: 1px solid var(--px-line);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0.35) 65%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0.35) 65%, #000 100%);
}

/* ---------- Landing: sections separated by full-width lines, fading backgrounds ---------- */

/* the old centred glow lines give way to edge-to-edge borders */
.mpl-buy__line,
.mpl-band::before {
  display: none;
}

.mpl-buy,
.mpl-popular,
.mpl-browse,
.mpl-features,
.mpl-install,
.mpl-band {
  position: relative;
  border-top: 1px solid var(--px-line);
}

.mpl-buy {
  margin-top: 0;
  border-top: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gl-accent) 12%, transparent) 0%, transparent 70%);
}

.mpl-popular,
.mpl-browse {
  padding-top: 56px;
  padding-bottom: 56px;
}

.mpl-browse {
  border-top: 0;
}

.mpl-band,
.mpl-band--alt,
.mpl-install.mpl-band--alt {
  margin-top: 0;
  background: linear-gradient(180deg, rgba(31, 32, 60, 0.7) 0%, transparent 85%);
}

.mpl-band--alt,
.mpl-install.mpl-band--alt {
  background:
    radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--gl-accent) 16%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, rgba(26, 27, 50, 0.8) 0%, transparent 85%);
}

.mpl-features {
  margin-top: 0;
}

/* features: fade the wave picture in and out instead of hard edges */
.mpl-features::before {
  background: linear-gradient(180deg, var(--gl-bg) 0%, color-mix(in srgb, var(--gl-bg) 30%, transparent) 25%, color-mix(in srgb, var(--gl-bg) 30%, transparent) 75%, var(--gl-bg) 100%);
}

/* pixel clusters in the corners of sections */
.mpl-popular::after,
.mpl-features::after,
.mpl-install::after,
.mpl-band::after {
  content: '';
  position: absolute;
  top: 24px;
  right: max(16px, calc((100% - 1240px) / 2));
  width: 120px;
  height: 80px;
  background: var(--px-cluster) no-repeat center / contain;
  opacity: 0.45;
  pointer-events: none;
}

.mpl-band--alt::after,
.mpl-install::after {
  right: auto;
  left: max(16px, calc((100% - 1240px) / 2));
  transform: scaleX(-1);
}

@media (max-width: 767px) {
  .mpl-popular::after,
  .mpl-features::after,
  .mpl-install::after,
  .mpl-band::after {
    width: 72px;
    height: 48px;
    opacity: 0.3;
  }
}

/* ---------- Catalog page: pixel decor instead of the blurred screenshot ---------- */

.mpc-backdrop {
  height: 900px;
}

.mpc-backdrop::before {
  inset: 0;
  background:
    var(--px-cluster) no-repeat left max(16px, calc((100% - 1240px) / 2 - 140px)) top 120px / 180px 120px,
    var(--px-cluster) no-repeat right max(16px, calc((100% - 1240px) / 2 - 140px)) top 360px / 180px 120px;
  filter: none;
  opacity: 0.5;
  -webkit-mask-image: none;
  mask-image: none;
}

.mpc-page--catalog .mpc-backdrop::before {
  transform: none;
}

.mpc-backdrop::after {
  background:
    radial-gradient(60% 45% at 50% 0%, color-mix(in srgb, var(--gl-accent) 28%, transparent) 0%, transparent 70%),
    radial-gradient(35% 35% at 0% 35%, color-mix(in srgb, var(--gl-blue) 10%, transparent) 0%, transparent 70%),
    radial-gradient(35% 35% at 100% 45%, color-mix(in srgb, var(--gl-violet) 12%, transparent) 0%, transparent 70%);
}

/* full-width line under the catalog hero, like section borders on the landing */
.mpc-page--catalog .mpc-catalog {
  position: relative;
  margin-top: 40px;
  border-top: 1px solid var(--px-line);
}

/* Catalog hero: symmetric padding so breadcrumbs, title and search sit on the card's
   centre line; the mascot is smaller so it doesn't touch the title. */
@media (min-width: 1024px) {
  .mpc-hero__card {
    padding-left: 140px;
    padding-right: 140px;
  }

  .mpc-hero__card .mpc-hero__title {
    font-size: 38px;
  }

  .mpc-hero__card .mpc-search {
    margin-left: auto;
    margin-right: auto;
  }

  .mpc-hero__card .mpc-hero__breadcrumbs {
    justify-content: center;
  }

  .mpc-hero__mascot {
    max-height: 250px;
  }
}

/* =========================================================
   Modded landing (original page): "Find Your Best Modpack" block
   in place of the old search/filter bar — title, Browse button,
   top modpacks without pagination. Cards keep the old grid style.
   ========================================================= */

.mpt {
  margin-top: 56px;
  margin-bottom: 56px;
}

.mpt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mpt__title {
  margin: 0;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
}

@media (min-width: 960px) {
  .mpt__title {
    font-size: 36px;
  }
}

.mpt__browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 36px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(267.71deg, var(--gl-blue) -37.36%, var(--gl-accent) 98.08%);
  border-radius: 8px;
  box-shadow: 0 0 8px color-mix(in srgb, var(--gl-glow) 30%, transparent);
  transition: box-shadow 0.2s, transform 0.2s;
}

.mpt__browse:hover {
  color: #fff;
  box-shadow: 0 0 18px color-mix(in srgb, var(--gl-glow) 55%, transparent);
  transform: translateY(-1px);
}

.mpt__more {
  margin-top: 32px;
  text-align: center;
}

@media (max-width: 599px) {
  .mpt__browse {
    width: 100%;
  }
}

/* Catalog card: the whole card opens the modpack page (stretched title link);
   "Get server" and "Details" stay on top and keep their own actions. */
.mpc-card {
  cursor: pointer;
}

.mpc-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.mpc-card__actions {
  position: relative;
  z-index: 2;
}

.mpc-card__title a:focus-visible {
  outline: none;
}

.mpc-card:focus-within {
  border-color: color-mix(in srgb, var(--gl-accent-light) 70%, transparent);
}

/* Landing "Browse all modpacks →" button — same size as the requested reference */
.mpt__browse {
  height: 48px;
  padding: 0 28px;
  font-size: 16px;
}

/* Catalog hero, final pass:
   - breadcrumbs readable on the screenshot (brighter, on a soft pill);
   - everything centred on the card's own axis;
   - Cleo stands on the card's bottom edge (the artwork has ~15% empty space below). */
.mpc-hero__card .mpc-hero__breadcrumbs {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 14px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--gl-text-bright);
  background: color-mix(in srgb, var(--gl-bg) 55%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.mpc-hero__card .mpc-hero__breadcrumbs a {
  color: var(--gl-text-soft);
}

.mpc-hero__card .mpc-hero__breadcrumbs a:hover {
  color: #fff;
}

.mpc-hero__card .mpc-hero__breadcrumbs li:last-child {
  font-weight: 600;
  color: #fff;
}

.mpc-hero__card {
  text-align: center;
}

.mpc-hero__card .mpc-hero__title,
.mpc-hero__card .mpc-hero__caption {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .mpc-hero__card {
    padding-left: 170px;
    padding-right: 170px;
  }

  .mpc-hero__mascot {
    top: auto;
    bottom: -18%;
    height: 118%;
    max-height: none;
  }
}

/* "Get server" / cart are links to the modpack page now (#configure), not funnel buttons */
.mpc-card__install,
.mpc-card__install:hover {
  color: #fff;
  text-decoration: none;
}

a.modpacks-body__install {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
