.mods-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  opacity: 0.8;
}

a {
  text-decoration: none;
  color:inherit;
}

.mod-description-block .description-content {
  word-break: break-word;
}

.mod-description-block .description-content h2,
.mod-description-block .description-content h3,
.mod-description-block .description-content h4 {
  color: #111827;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0;
}

.mod-description-block .description-content h2 {
  font-size: 28px;
  margin-top: 8px;
}

.mod-description-block .description-content h3 {
  font-size: 24px;
  margin-top: 8px;
}

.mod-description-block .description-content h4 {
  font-size: 20px;
  margin-top: 8px;
}

.mod-description-block .description-content ul,
.mod-description-block .description-content ol {
  margin: 0;
}

.mod-description-block .description-content code {
  padding: 2px 8px;
  border-radius: 8px;
  background: #ececec;
  font-size: 0.95em;
}

.mod-description-block .description-content pre {
  padding: 16px;
  border-radius: 16px;
  background: #ececec;
  overflow-x: auto;
  white-space: pre-wrap;
}

.mod-description-block .description-content em {
  font-style: italic;
}

.mod-description-block .description-content strong {
  font-weight: 700;
  color: #111827;
}

.mod-description-block .description-content a {
  color: #128f30;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mod-description-block .description-content a:hover {
  color: #0f7a29;
}

.mod-description-block .description-content hr.description-divider {
  border: 0;
  height: 1px;
  margin: 10px 0;
  background: rgba(99, 106, 126, 0.2);
}

/* .mod-description-block .description-content .mod-body-figure {
  margin: 22px 0;
} */

.mod-description-block .description-content .mod-body-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.mod-description-block .description-content .mod-body-inline-image {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 12px;
}

.mod-description-block .description-content .mod-body-inline-badge-link {
  display: inline-flex;
  vertical-align: middle;
}

.mod-description-block .description-content .mod-body-inline-badge {
  max-height: 34px;
  width: auto;
  border-radius: 0;
}



.mod-description-block .description-content .mod-body-media-link a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #111827;
}

.mod-description-block .description-content .mod-body-media-link a:hover {
  color: #128f30;
}

.mod-description-block .description-content .mod-body-badge {
  width: auto;
  max-height: 42px;
  display: block;
  border-radius: 0;
}

.mod-description-block .description-content .mod-body-media-link span {
  font-size: 18px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mod-description-block .description-content details {
  padding: 14px 16px;
  border-radius: 14px;
  background: #ececec;
}

.mod-description-block .description-content summary {
  cursor: pointer;
  color: #111827;
  font-weight: 700;
}

.mod-description-block .description-content iframe {
  width: 100%;
  min-height: 300px;
  border: 0;
  border-radius: 18px;
  background: #111827;
}

.mod-description-block .mod-gallery-block {
  margin-top: 48px;
}

.mod-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 0;
}

.mod-gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #ececec;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mod-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}

.mod-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mod-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mod-gallery-lightbox[hidden] {
  display: none !important;
}

body.mod-gallery-lightbox-open {
  overflow: hidden;
}

.mod-gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
}

.mod-gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.mod-gallery-lightbox-figure {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mod-gallery-lightbox-image {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 20px;
  background: #111827;
}

.mod-gallery-lightbox-counter {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.mod-gallery-lightbox-close,
.mod-gallery-lightbox-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mod-gallery-lightbox-close {
  position: absolute;
  top: -8px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.mod-gallery-lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.mod-changelog-list,
.mod-versions-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

.mod-changelog-entry,
.mod-version-row {
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid rgba(99, 106, 126, 0.2);
  border-radius: 0;
  background: transparent;
}

.mod-changelog-entry:last-child,
.mod-version-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mod-changelog-version,
.mod-version-number {
  display: block;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 8px;
}

.mod-changelog-date {
  margin: 0 0 14px;
  color: #636a7e;
  font-size: 15px;
  font-weight: 500;
}

.mod-version-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mod-version-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ececec;
  color: #636a7e;
  font-size: 13px;
  font-weight: 600;
}

.mod-version-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
  color: #636a7e;
  font-size: 15px;
  font-weight: 500;
  opacity: 1;
}

.mod-version-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mod-version-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ececec;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
}

.mod-version-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.mod-version-file-name {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.mod-version-file-size {
  color: #636a7e;
  font-size: 15px;
}

a.download-btn.download-btn--compact {
  margin-left: auto;
  height: 40px;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 14px;
  text-decoration: none;
}

a.download-btn.download-btn--compact .download-btn-icon {
  width: 16px;
  height: 16px;
}

.wrapper > .mod-page-ads.ads-block {
  margin-top: 18px;
}

@media (max-width: 768px) {
  body.page-catalog [data-catalog-slot="controls"] {
    width: 100%;
  }

  /* Catalog mobile: theme renders .catalog-card (not static .mod-card). */
  body.page-catalog .catalog-card {
    display: flex !important;
    flex-direction: column;
  }

  body.page-catalog .catalog-card-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(99, 106, 126, 0.15);
    padding-top: 14px;
  }

  /* Match static mobile filter controls; cancel generic responsive.css flexing. */
  body.page-catalog .catalog-filter-top {
    align-items: center;
    justify-content: space-between;
  }

  body.page-catalog .catalog-filters {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 18px;
  }

  body.page-catalog .catalog-filters > * {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  body.page-catalog .filter-btn {
    width: 100%;
    flex: 0 0 auto;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  body.page-catalog .filter-btn span {
    text-align: center;
  }

  body.page-catalog .filter-image-btn {
    width: 100%;
    height: 44px;
    flex: 0 0 auto;
  }

  .mod-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mod-gallery-lightbox {
    padding: 12px;
  }

  .mod-gallery-lightbox-dialog {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .mod-gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .mod-gallery-lightbox-prev {
    left: 8px;
  }

  .mod-gallery-lightbox-next {
    right: 8px;
  }

  a.download-btn.download-btn--compact {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .mod-version-file {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  body.page-catalog .catalog-filters {
    width: 100%;
  }
}

.discover-card-link {
  display: flex;
  color: inherit;
  text-decoration: none;
}

.catalog-search-submit {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.catalog-search-submit img {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

.sidebar-empty {
  padding: 8px;
  opacity: 0.7;
  font-size: 0.9em;
}

.search-wrapper .search-submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.search-wrapper .search-submit .search-icon {
  position: static;
  right: auto;
  top: auto;
  transform: none;
}

/* Native links styled like buttons / menu items from static markup */

a.green-btn,
a.light-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
}

a.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  text-decoration: none;
  box-sizing: border-box;
  color: #777;
}

a.menu-item.active {
  color: #15803d;
}

a.trending-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
  color: #666;
}

a.trending-tab.active {
  color: #ffffff;
}

a.trending-tab:hover:not(.active) {
  color: #666;
}

.project-preview-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.project-heading-content h3 a.project-title-link {
  color: inherit;
  text-decoration: none;
}

.project-heading-content h3 a.project-title-link:hover {
  color: #15803d;
}

.catalog-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  text-decoration: none;
}

.catalog-card-top h3 a.catalog-card-title-link {
  color: inherit;
  text-decoration: none;
}

.catalog-card-top h3 a.catalog-card-title-link:hover {
  color: #00dd5b;
}

.mod-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  text-decoration: none;
}

.mod-card-title-link {
  color: inherit;
  text-decoration: none;
}

.mod-card-title-link:hover {
  color: #00dd5b;
}

a.rs-open-btn,
a.rs-event-btn,
a.news-btn,
a.promo-btn,
a.light-btn-collection,
a.collection-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
}

a.rs-open-btn {
  color: #ffffff;
}

a.rs-event-btn {
  flex-shrink: 0;
}

a.rs-drop-icon {
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1;
}

.rs-drop-text h4 a.rs-drop-title-link {
  color: inherit;
  text-decoration: none;
}

.rs-drop-text h4 a.rs-drop-title-link:hover {
  color: #15803d;
}

.rs-event-image-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.rs-event-overlay h4 a.rs-event-title-link {
  color: #ffffff;
  text-decoration: none;
}

.rs-event-overlay h4 a.rs-event-title-link:hover {
  color: #ffffff;
  opacity: 0.9;
}

.collection-image-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  line-height: 0;
  text-decoration: none;
}

.collection-content h3 a.collection-title-link {
  color: #ffffff;
  text-decoration: none;
}

.collection-content h3 a.collection-title-link:hover {
  color: #ffffff;
  opacity: 0.92;
}

.collection-banner h2 a.collection-banner-title-link,
.promo-content h2 a.promo-title-link {
  color: inherit;
  text-decoration: none;
}

.collection-banner-preview-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.collection-banner-preview-link img {
  width: 100%;
  border-radius: 22px;
  display: block;
}

.news-image-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.news-content h3 a.news-title-link,
.news-content1 h3 a.news-title-link {
  color: inherit;
  text-decoration: none;
}

.news-content h3 a.news-title-link:hover,
.news-content1 h3 a.news-title-link:hover {
  color: #15803d;
}

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

.news-card-post {
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.news-card-post .news-image-link {
  display: block;
}

.news-card-post .news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-content-post {
  padding: 14px 16px 16px;
}

.news-content-post h3 {
  margin: 0 0 8px;
}

.news-content-post p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .wp-news-grid {
    grid-template-columns: 1fr;
  }
}

.news-archive-main {
  min-width: 0;
}

.news-archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.hero-subtitle {
  color: #666;
  line-height: 1.6;
  margin: 0 0 28px;
  font-size: 16px;
  max-width: 96%;
  font-weight: 400;
}

.catalog-seo-headings {
  margin: 12px 0 14px;
}

.catalog-seo-headings h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.2;
  color: #111827;
}

.catalog-seo-headings h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: #4b5563;
}

.news-title .discover-title12 {
  margin: 0;
}

.news-archive-seo-h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: #4b5563;
}

.single-news-main {
  min-width: 0;
}

.news-single-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  overflow: hidden;
}

.news-single-hero {
  position: relative;
}

.news-single-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.news-single-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.08));
  color: #fff;
}

.news-single-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.news-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-chip-category {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(134, 239, 172, 0.45);
  color: #dcfce7;
}

.news-chip-date {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f8fafc;
}

.news-single-body {
  padding: 24px;
}

.news-single-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-single-content {
  color: #111827;
  line-height: 1.65;
  font-size: 16px;
}

.news-single-content p {
  margin: 0 0 14px;
}

.news-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.promo-image-link {
  position: absolute;
  right: -120px;
  top: -95px;
  line-height: 0;
  text-decoration: none;
  display: block;
}

.promo-image-link .promo-image {
  position: static;
  transform: rotate(380deg);
}

.project-mini-icon-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.catalog-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.catalog-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.catalog-custom-select {
  position: relative;
  display: inline-flex;
  margin: 0;
}

.filter-btn-select {
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8f8f8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-btn-select span {
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
}

.filter-btn-select img {
  width: 20px;
  height: 20px;
}

.filter-btn-sort {
  width: auto;
}

.filter-btn-view {
  width: auto;
}

.filter-btn-select:hover,
.filter-btn-select:focus-within,
.filter-image-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.filter-btn-select.is-active,
.filter-image-btn.active {
  background: #dcfce7;
  border-color: #86efac;
}

.catalog-custom-select.is-active .filter-btn-select span,
.filter-image-btn.active {
  color: #16a34a;
}

.show-all-versions-btn {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
}

.show-all-versions-btn:hover {
  color: #15803d;
}

.version-list {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.show-all-versions-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #00dc5a;
}

.show-all-versions-toggle.is-hidden-by-search {
  display: none;
}

.catalog-custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  padding: 6px;
  display: none;
}

.catalog-custom-select.is-open .catalog-custom-select-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catalog-custom-select-option {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  cursor: pointer;
}

.catalog-custom-select-option:hover {
  background: #f1f5f9;
}

.catalog-custom-select-option.is-selected {
  background: #dcfce7;
  color: #16a34a;
}

.sidebar-item,
.loader-item,
.license-item,
.version-item,
.platform-item {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border-radius: 10px;
}

.license-list {
  gap: 8px;
}

.sidebar-item:hover,
.loader-item:hover,
.license-item:hover,
.version-item:hover,
.platform-item:hover {
  background: transparent;
}

.sidebar-item.is-active,
.loader-item.is-active,
.license-item.is-active,
.version-item.is-active {
  background: transparent;
  border: none;
}

.sidebar-item.is-active span,
.loader-item.is-active span,
.license-item.is-active span,
.version-item.is-active span {
  color: #15803d;
  font-weight: 700;
}

.sidebar-item:hover span,
.loader-item:hover span,
.license-item:hover span,
.version-item:hover span,
.platform-item:hover span {
  color: #15803d;
}

.sidebar-item:hover img,
.loader-item:hover img,
.platform-item:hover img,
.sidebar-item.is-active img,
.loader-item.is-active img,
.platform-item.is-active img {
  filter: brightness(0) saturate(100%) invert(41%) sepia(66%) saturate(854%) hue-rotate(92deg) brightness(93%) contrast(89%);
}

.catalog-loader,
.catalog-error {
  width: 100%;
  min-height: 160px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  color: #374151;
}

.catalog-loader-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.25);
  border-top-color: #22c55e;
  animation: catalog-spin 0.8s linear infinite;
}

@keyframes catalog-spin {
  to {
    transform: rotate(360deg);
  }
}

.catalog-cards.is-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.catalog-cards.is-grid .catalog-card {
  display: none;
}

.catalog-cards.is-grid .mod-card {
  display: flex !important;
  width: 100%;
  min-height: 629px;
  background: #f5f5f5;
  border: 1px solid #dfe3ee;
  border-radius: 24px;
  padding: 24px;
  flex-direction: column;
  gap: 24px;
}

.catalog-cards.is-grid .mod-card-image {
  width: 100%;
  max-width: 452px;
  height: 300px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #ececec;
  flex-shrink: 0;
}

.catalog-cards.is-grid .mod-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-cards.is-grid .mod-card-top,
.catalog-cards.is-grid .mod-card-description,
.catalog-cards.is-grid .mod-card-tags,
.catalog-cards.is-grid .mod-card-footer {
  width: 100%;
  max-width: 452px;
  margin-left: auto;
  margin-right: auto;
}

.catalog-cards.is-grid .mod-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-cards.is-grid .mod-card-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #18181b;
}

.catalog-cards.is-grid .mod-card-author {
  font-size: 14px;
  font-weight: 500;
  color: #b7b7c5;
}

.catalog-cards.is-grid .mod-card-description {
  font-size: 16px;
  line-height: 1.55;
  color: #666c82;
}

.catalog-cards.is-grid .mod-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-cards.is-grid .mod-tag {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ececf1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #7d8297;
}

.catalog-cards.is-grid .mod-tag img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.catalog-cards.is-grid .mod-card-footer {
  margin: auto auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid #d9d9df;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catalog-cards.is-grid .tag-orange {
  color: #ff7a00;
}

.catalog-cards.is-grid .tag-green {
  color: #35d11c;
}

.catalog-cards.is-grid .tag-red {
  color: #ff2d2d;
}

.catalog-cards.is-grid .tag-purple {
  color: #6c2cff;
}

.catalog-cards.is-grid .tag-yellow {
  color: #f4a100;
}

.catalog-cards.is-grid .mod-card-stats-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.catalog-cards.is-grid .mod-card-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-cards.is-grid .mod-card-stat img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.catalog-cards.is-grid .mod-card-stat span {
  font-size: 14px;
  font-weight: 500;
  color: #6d7287;
}

.catalog-cards.is-grid .mod-card-stat-divider {
  width: 1px;
  height: 18px;
  background: #d4d7e2;
}

.catalog-cards.is-grid .ads-card {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
}

.catalog-cards.is-grid .ads-card span {
  font-size: 72px;
  font-weight: 800;
  color: #d8d8d8;
}

.catalog-bottom-pagination {
  grid-column: 1 / -1;
}

a.page-btn,
a.page-next,
a.page-prev {
  text-decoration: none;
}

a.catalog-tab {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  line-height: 1;
}

a.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: #6b7280;
}

a.page-btn.active {
  width: 32px;
  height: 34px;
  border-radius: 50%;
  background: #dcfce7;
  color: #22c55e;
}

a.page-next,
a.page-prev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-cards {
  position: relative;
}

.projects-list[data-home-slot="trending-items"] {
  position: relative;
}

.projects-list[data-home-slot="trending-items"].is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1px);
  border-radius: 20px;
}

.catalog-cards.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1px);
  border-radius: 20px;
}

.catalog-loading-indicator {
  position: absolute;
  inset: 0;
  z-index: 13;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 20px 20px;
  pointer-events: none;
}

.catalog-loading-indicator .catalog-loader {
  min-height: 108px;
  min-width: 280px;
  width: auto;
  padding: 18px 24px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  gap: 14px;
  font-size: 18px;
  font-weight: 600;
}

.catalog-loading-indicator .catalog-loader-spinner {
  width: 26px;
  height: 26px;
  border-width: 3px;
}

.catalog-error {
  margin-top: 12px;
  min-height: 56px;
  font-size: 14px;
}

.like-btn-inline {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.like-btn-inline:disabled,
.like-btn-inline.is-like-pending,
.icon-btn.is-like-pending,
.icon-btn:disabled,
.project-like-btn:disabled,
.project-like-btn.is-like-pending {
  cursor: wait;
  opacity: 0.65;
  pointer-events: none;
}

.like-btn-inline img {
  width: 18px;
  height: 18px;
}

.like-btn-inline.is-liked img,
.icon-btn.is-liked img,
.like-btn-inline:hover img,
.icon-btn:hover img,
.project-like-btn.is-liked {
  filter: brightness(0) saturate(100%) invert(41%) sepia(82%) saturate(745%) hue-rotate(92deg) brightness(96%) contrast(88%);
}

[data-like-count].is-liked-count,
.project-like-btn.is-liked,
.project-like-btn:hover {
  color: #16a34a;
}

.project-like-cell {
  gap: 4px;
}

.project-like-btn {
  margin-top: 0;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #8a8a8a;
  cursor: pointer;
  align-self: flex-start;
}

.copy-icon-btn,
.copy-btn[data-copy-source] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.copy-icon-btn .copy-checkmark,
.copy-btn[data-copy-source] .copy-checkmark {
  display: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: #16a34a;
}

.copy-icon-btn.is-copied .copy-icon,
.copy-btn[data-copy-source].is-copied img {
  display: none;
}

.copy-icon-btn.is-copied .copy-checkmark,
.copy-btn[data-copy-source].is-copied .copy-checkmark {
  display: inline-block;
}

.server-banner .join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ADS banners from Content Settings */
.main-ads-block.is-banner,
.ads-block.is-banner,
.catalog-ads.is-banner,
.sidebar-ad.is-banner,
.rs-ads.is-banner,
.card.ads.is-banner,
.mod-card.ads-card.is-banner {
  padding: 0;
  overflow: hidden;
}

.main-ads-block.is-banner .ads-banner-link,
.ads-block.is-banner .ads-banner-link,
.catalog-ads.is-banner .ads-banner-link,
.sidebar-ad.is-banner .ads-banner-link,
.rs-ads.is-banner .ads-banner-link,
.card.ads.is-banner .ads-banner-link,
.mod-card.ads-card.is-banner .ads-banner-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.main-ads-block.is-banner .ads-banner-image,
.ads-block.is-banner .ads-banner-image,
.catalog-ads.is-banner .ads-banner-image,
.sidebar-ad.is-banner .ads-banner-image,
.rs-ads.is-banner .ads-banner-image,
.card.ads.is-banner .ads-banner-image,
.mod-card.ads-card.is-banner .ads-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mod-card.ads-card.is-banner {
  min-height: 0;
}

.header .logo a,
.header .logo .custom-logo-link {
  display: inline-flex;
  line-height: 0;
}

.header .logo .custom-logo,
.header .logo img {
  max-height: 48px;
  width: auto;
  height: auto;
}

.footer-socials a {
  display: inline-flex;
  line-height: 0;
}

.footer-logo-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.footer-logo-link .footer-logo {
  display: block;
}

.catalog-tab--external::after,
.menu-item--external::after {
  content: "↗";
  display: inline-block;
  margin-left: 6px;
  font-size: 0.75em;
  opacity: 0.55;
  transform: none;
  width: auto;
  height: auto;
  background: none;
}

.catalog-tab.catalog-tab--external::after {
  vertical-align: super;
}

/* Catalog shell: bottom gap like home .container */
.top-wrapper {
  padding-bottom: 18px;
  box-sizing: border-box;
}

/* Footer credit button — same as home (Furore, single line, auto width) */
.footer-made-btn {
  font-family: "Furore", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  width: auto;
  min-width: 259px;
  height: 48px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.footer-made-btn img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ——— Mobile header: burger + expandable search (≤768px) ——— */

.header-burger {
  display: none;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 1px solid #ffffff;
  border-radius: 14px;
  background: #f5f5f5;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.header-burger__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #333;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.header-burger:hover,
.header-burger:focus-visible {
  outline: none;
  border-color: #22c55e;
  background: #fff;
}

.header-burger:focus-visible {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.header.is-nav-open .header-burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-nav-open .header-burger__bar:nth-child(2) {
  opacity: 0;
}

.header.is-nav-open .header-burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header.is-nav-open .header-burger {
  border-color: #22c55e;
}

.header-mobile-backdrop {
  display: none;
}

body.header-nav-open {
  overflow: hidden;
}

/* mods.css скрывает .nav через display:none !important до 768px */
@media (max-width: 768px) {
  .header.is-nav-open {
    overflow: visible;
  }

  .header.is-nav-open .nav {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 130;
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
  }

  .header.is-nav-open .nav a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    color: #777;
  }

  .header.is-nav-open .nav a:hover,
  .header.is-nav-open .nav a.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
  }
}

@media (max-width: 768px) {
  .header {
    position: relative;
    z-index: 120;
    flex-wrap: nowrap;
  }

  .header .search-wrapper {
    position: relative;
    overflow: hidden;
    width: 36px;
    height: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    max-width: 36px;
    background: #f5f5f5;
    border: 1px solid #fff;
    border-radius: 12px;
    box-sizing: border-box;
    transition:
      max-width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
      flex-basis 0.32s cubic-bezier(0.4, 0, 0.2, 1),
      width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
      background 0.2s ease;
  }

  .header .search {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: transparent;
    box-sizing: border-box;
    line-height: 1.2;
    transition:
      color 0.16s ease 0.24s,
      padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .header .search::placeholder {
    color: transparent;
    transition: color 0.16s ease 0.3s;
  }

  /* Свёрнутый поиск: только лупа по центру */
  .header:not(.is-search-expanded) .search-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header:not(.is-search-expanded) .search {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
  }

  .header:not(.is-search-expanded) .search-wrapper .search-submit {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .header:not(.is-search-expanded) .search-wrapper .search-submit .search-icon {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 16px;
    height: 16px;
    opacity: 0.65;
  }

  .header.is-search-expanded .search-wrapper .search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    padding: 0;
  }

  .header.is-search-expanded .search-wrapper .search-submit .search-icon {
    width: 16px;
    height: 16px;
    opacity: 0.65;
  }

  .header-burger {
    display: inline-flex;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .header-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.35);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  .header-mobile-backdrop[hidden] {
    display: none;
  }

  .header-right {
    flex: 0 0 auto;
    min-width: 0;
    gap: 8px;
  }

  .header.is-search-expanded .header-right {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-end;
    transition: flex 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Бургер остаётся: поиск не шире блока справа минус кнопка меню */
  .header.is-search-expanded .search-wrapper {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    width: auto;
    height: 36px;
    min-height: 36px;
    min-width: 36px;
    max-width: min(240px, calc(100% - 44px));
  }

  .header.is-search-expanded .search {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0 36px 0 12px;
    color: #111;
    font-size: 13px;
    background: transparent;
    border: 0;
    border-radius: 0;
    transition:
      color 0.2s ease 0.1s,
      padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .header.is-search-expanded .search::placeholder {
    color: #777;
    transition: color 0.2s ease 0.14s;
  }
}

/* ≤768px: в style.css / mods.css input скрыт (!important) — восстанавливаем раскрытие */
@media (max-width: 768px) {
  .header .logo {
    flex-shrink: 0;
  }

  .header .logo img,
  .header .logo .custom-logo {
    max-width: 90px;
    width: auto;
    height: auto;
  }

  .header:not(.is-search-expanded) .search-wrapper {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    max-width: 36px !important;
  }

  .header:not(.is-search-expanded) .search {
    display: none !important;
  }

  .header.is-search-expanded {
    gap: 8px;
  }

  .header.is-search-expanded .header-right {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    max-width: none !important;
  }

  .header.is-search-expanded .search-wrapper {
    display: flex !important;
    align-items: center;
    flex: 1 1 0 !important;
    width: auto !important;
    height: 36px !important;
    min-height: 36px !important;
    min-width: 36px !important;
    max-width: min(220px, calc(100% - 44px)) !important;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #fff;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .header.is-search-expanded .search {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
  }

  .header.is-search-expanded .search-wrapper .search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
  }

  .header.is-search-expanded .search-wrapper .search-icon {
    position: static !important;
    transform: none !important;
  }
}

/* ——— TRENDING PROJECTS: mobile layout only ≤490px ——— */
@media (max-width: 490px) {
  .section-home-trending {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .section-home-trending .projects-list {
    min-width: 0;
    max-width: 100%;
  }

  .section-home-trending .trending-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }

  .section-home-trending .trending-btn {
    display: none !important;
  }

  .section-home-trending .trending-tab {
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .section-home-trending .project-card {
    flex-direction: column;
    display: flex;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .section-home-trending .project-preview-link {
    display: block;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .section-home-trending .project-preview,
  .section-home-trending .project-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    box-sizing: border-box;
  }

  .section-home-trending .project-info {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .section-home-trending .project-top {
    min-width: 0;
    max-width: 100%;
  }

  .section-home-trending .project-heading-content {
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
  }

  .section-home-trending .project-heading-content h3 {
    font-size: 18px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .section-home-trending .project-title-link {
    display: block;
    min-width: 0;
  }

  .section-home-trending .project-meta {
    flex-wrap: wrap;
    gap: 4px 6px;
  }

  .section-home-trending .project-info p {
    font-size: 13px;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .section-home-trending .project-tags {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .section-home-trending .project-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: auto;
    box-sizing: border-box;
  }

  .section-home-trending .project-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section-home-trending .project-stats div {
    min-width: 0;
    flex: 1 1 calc(33.333% - 10px);
    max-width: 100%;
  }

  .section-home-trending .project-stats div:not(:last-child)::after {
    display: none;
  }

  .section-home-trending .project-like-cell {
    min-width: 0;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .section-home-trending .project-like-btn {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
  }

  .section-home-trending .project-card .green-btn {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 48px;
    box-sizing: border-box;
    flex-shrink: 0;
  }
}
