body {
  scroll-behavior: smooth;
  background-color: var(--body-color);
  color: var(--body-txt-color);
  font-family: "Arial", "Helvetica", sans-serif;
  margin: 0;
}

.on {
  overflow: hidden !important;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

canvas {
  display: block;
  vertical-align: bottom;
}

#particles-js {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  max-height: 95%;
}

@media screen and (max-width: 768px) {
  #particles-js {
    max-height: 200%;
    height: 167%;
  }
}

@media screen and (max-width: 450px) {
  #particles-js {
    max-height: 200%;
    height: 140%;
  }
}

#particles-js h1 {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  position: absolute;
  top: 50%;
  right: 50%;
  -webkit-transform: translate(50%, -50%);
  transform: translate(50%, -50%);
}

#particles {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  max-height: 85%;
}

#particles-engine {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  max-height: 35%;
}

h1,
h2,
h3 {
  margin: 10px 0;
  font-weight: 300;
  line-height: 1.3;
}

p {
  margin: 5px 0;
}

html {
  scroll-behavior: smooth;
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.slideshow-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.jumbotron-items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: auto;
  padding: 0 20px;
}

.jumbotron-item-content {
  flex: 1 1 250px;
  margin: 15px;
  padding: 15px;
  background: #000000;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.jumbotron-item-content h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.jumbotron-item-content p {
  margin: 0;
  font-size: 1rem;
}

#scroll-down {
  display: flex;
  position: absolute;
  left: 50%;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  border: none;
  bottom: 20px;
  outline: none;
  background-color: transparent;
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 90%;
  animation: scrolldown 1s infinite;
}

#scroll-down:hover {
  color: red;
}

@keyframes scrolldown {
  20% {
    transform: translateY(0px);
  }

  40% {
    transform: translateY(10px);
  }

  60% {
    transform: translateY(0px);
  }

  80% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(0px);
  }
}

#ready {
  display: flexbox;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

#ready p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  padding: 20px 0 0 0;
  color: var(--header-h2-color);
}

#ready a {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  color: var(--support-button-text-color);
  text-decoration: none;
  border: 2px solid var(--support-button-background-color);
  border-radius: 50px;
  padding: 10px 20px;
  margin-top: 20px;
}

#ready a:hover {
  border: 2px solid var(--support-button-hover-background-color);
  color: var(--support-button-hover-text-color);
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: transparent;
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 100%;
  animation: scrollup 1s ease-in-out infinite;
}

#myBtn:hover {
  color: red;
}

@keyframes scrollup {
  20% {
    transform: translateY(0px);
  }

  40% {
    transform: translateY(10px);
  }

  60% {
    transform: translateY(0px);
  }

  80% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.space {
  background-color: var(--body-color);
  height: 1px;
  width: 100%;
  margin: 40px auto;
}

.transparent {
  background-color: transparent;
}

.center {
  text-align: center;
}

#terms-of-service {
  text-align: center;
  height: 50%;
}

#privacy-policy {
  text-align: center;
  height: 50%;
}

.slider {
  background-color: var(--footer-bg-color);
  padding: 5rem 0;
}

.slider h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--main-color);
  text-align: center;
}

.slider .slider-container {
  text-align: center;
  margin-right: 3rem;
  margin-left: 3rem;
}

.swiper-container {
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  /* Fix of Webkit flickering */
  z-index: 1;
}

main #features {
  display: flex;
  align-content: space-between;
  justify-content: center;
  margin: 0 auto;
}

main #features h1 {
  font-size: 2.5rem;
  color: var(--support-high-text-color);
  text-align: center;
}

main .features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  align-content: space-between;
  justify-items: center;
  margin: auto auto;
}

@media screen and (max-width: 1050px) {
  main .features {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
}

main .features .fs {
  font-size: 1.5rem;
  color: var(--main-feature-bg-color);
  text-align: center;
}

main .features .fs b {
  font-size: 1.5rem;
  text-align: center;
}

main .features .fs p {
  margin: 50px auto;
  font-size: 1rem;
  color: var(--main-feature-text-color);
  text-align: center;
}

main .features img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

main .information {
  display: flex;
  flex-direction: column;
  margin: 40px auto;
  max-width: 800px;
}

main .information h1 {
  font-size: 2.5rem;
  color: var(--main-color);
  margin-bottom: 20px;
  text-align: center;
}

main .information p {
  margin: 0;
  font-size: 1rem;
  color: var(--body-txt-color);
  line-height: 1.5;
  text-align: justify;
}

main .teams {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 40px auto;
}

main .teams h1 {
  font-size: 2.5rem;
  color: var(--main-color);
}

.member {
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  transition: 0.5s;
}

.member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 10px auto;
  transition: 0.5s;
}

.member h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0;
  transition: 0.5s;
}

.member p {
  font-size: 14px;
  font-weight: 400;
  margin: 5px 0;
  transition: 500000s;
  font-style: italic;
}

.member .social {
  margin: 40px 0;
  transition: 0.5s;
}

.member .social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: var(--footer-bg-color);
  color: var(--body-txt-color);
  font-size: 16px;
  margin: 0 5px;
  transition: 0.5s;
}

.member .social a:hover {
  background: #ffffff;
  color: #000000;
}

.member:hover {
  transform: translateY(-10px);
}

.member:hover img {
  transform: rotate(360deg);
}

.card {
  background-color: var(--body-color);
  border-radius: 10%;
  box-shadow: 0 0 20px var(--footer-bg-color);
  margin: 1rem;
  padding: 1rem;
  width: 350px;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
}

.card:hover .card-header {
  transform: translate(0, -5%) rotate(-15deg) scale(1.4);
  background-color: transparent;
}

.card:hover .card-body {
  transform: translateY(-5px);
}

.card-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--footer-bg-color);
}

.card-header i {
  font-size: 3rem;
  color: var(--main-bg-color);
}

.card-body {
  text-align: center;
}

.card-body h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--main-color);
}

.card-body p {
  font-size: 18px;
  color: var(--body-txt-color);
}

@media screen and (max-width: 767px) {
  main .features {
    grid-template-columns: 1fr;
  }

  .card {
    width: 30%;
    height: auto;
    margin: 1rem 0;
    border-radius: 20%;
  }
}

main hr {
  border: 5px solid var(--footer-bg-color);
  margin: 40px auto;
  left: 90%;
}

main #faq {
  color: var(--body-text-color);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
}

main #faq h2 {
  text-align: center;
  color: var(--main-color);
  font-size: 2rem;
  font-weight: 600;
  margin: 40px 0;
}

main #faq .faq {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px auto;
  border-radius: 10px;
  justify-content: space-between;
}

.faq .question {
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin: 10px auto;
  border-radius: 10px;
  background-color: var(--footer-bg-color);
  color: var(--body-txt-color);
  cursor: pointer;
  width: 50%;
  max-width: 100%;
  transition: 0.3s;
  flex-basis: 100%;
}

.faq .question:hover {
  background-color: var(--body-color);
}

.faq .question h3 {
  margin: 0;
  padding: 0;
}

.faq .question i {
  margin-left: 15px;
  transition: 0.3s;
}

.faq .question i:hover {
  transform: rotate(180deg);
}

.faq .question.on i {
  transform: rotate(50deg);
}

.faq .question.on {
  background-color: var(--footer-bg-color);
}

.faq .question.on i {
  transform: rotate(45deg);
}

.faq .question.on + .answer {
  display: block;
}

.faq .answer {
  display: none;
  width: 50%;
  padding: 10px 20px;
  border-radius: 10px;
  background-color: var(--contact-bg-color);
  margin: 10px auto;
}

.faq .answer p {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  color: white;
}

#contact-us {
  text-align: center;
}

.pagination-button {
  transition: background-color 0.3s ease;
}

.pagination-button:hover {
  background-color: var(--support-button-hover-background-color);
}

/* ============================================================
   Feature browser: toolbar, filters, cards, loading & errors
   ============================================================ */

:root {
  --surface-1: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --surface-panel: #1b1b1b;
  --surface-border: rgba(255, 255, 255, 0.14);
  --surface-border-strong: rgba(255, 255, 255, 0.28);
  --muted-text: rgba(255, 255, 255, 0.68);
  --feature-max-width: min(1100px, 92vw);
}

.feature-head,
.feature-tail {
  width: 100%;
}

.feature-title {
  text-align: center;
  color: var(--main-color);
  font-size: 2rem;
  font-weight: 600;
  margin: 40px 0;
}

/* ---------- Cards grid ---------- */

.cards-grid {
  width: var(--feature-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.cards-grid > .card {
  width: auto;
  height: auto;
  min-height: 340px;
  margin: 0;
  border-radius: 20px;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  box-sizing: border-box;
}

.cards-grid > .empty-state {
  grid-column: 1 / -1;
}

.card-header img {
  max-width: 100%;
  height: auto;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.card-body h3 {
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.card-tag-type {
  background-color: lightgray;
  color: #111;
}

.card-tag-supported {
  background-color: lightgreen;
  color: #103a10;
}

.card-body p.card-meta {
  font-size: 0.95rem;
  color: var(--muted-text);
  margin: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.card-unavailable {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted-text);
}

/* ---------- Action link / buttons ---------- */

.action-link {
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  border: 2px solid var(--support-button-background-color);
  background: transparent;
  text-decoration: none;
  color: var(--support-button-text-color);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.action-link:hover,
.action-link:focus-visible {
  border-color: var(--support-button-hover-background-color);
  color: var(--support-button-hover-text-color);
  outline: none;
}

.ghost-button {
  border: 1px solid var(--surface-border);
  background: var(--surface-2);
  color: var(--body-txt-color);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--surface-border-strong);
  outline: none;
}

.primary-button {
  border: none;
  background: var(--main-color);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  filter: brightness(1.1);
  outline: none;
}

/* ---------- Toolbar & search ---------- */

.feature-toolbar {
  width: var(--feature-max-width);
  margin: 0 auto 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.feature-toolbar[hidden] {
  display: none;
}

.feature-search-wrap {
  position: relative;
  flex: 1 1 320px;
  min-width: 220px;
  display: flex;
  align-items: center;
}

.feature-search-wrap > i {
  position: absolute;
  left: 1.1rem;
  color: var(--muted-text);
  pointer-events: none;
}

.feature-search {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface-1);
  color: var(--body-txt-color);
  font: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-search::placeholder {
  color: var(--muted-text);
}

.feature-search:focus {
  border-color: var(--surface-border-strong);
  box-shadow: 0 0 0 3px rgba(255, 3, 3, 0.18);
}

/* ---------- Filter button & panel ---------- */

.feature-filter-shell {
  position: relative;
  flex: 0 0 auto;
}

.feature-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--surface-border);
  background: var(--surface-1);
  color: var(--body-txt-color);
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.feature-filter-button:hover,
.feature-filter-button:focus-visible {
  background: var(--surface-2);
  border-color: var(--surface-border-strong);
  outline: none;
}

.feature-filter-button.is-active {
  border-color: var(--main-color);
  background: var(--surface-2);
}

.filter-badge {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--main-color);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.filter-badge[hidden] {
  display: none;
}

.feature-filter-backdrop {
  display: none;
}

.feature-filter-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  width: min(400px, 90vw);
  max-height: min(70vh, 34rem);
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background: var(--surface-panel);
  border: 1px solid var(--surface-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  z-index: 60;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.feature-filter-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.feature-filter-panel[hidden] {
  display: none;
}

.filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--surface-border);
}

.filter-panel-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-txt-color);
}

.filter-close {
  border: none;
  background: transparent;
  color: var(--muted-text);
  font-size: 1rem;
  line-height: 1;
  padding: 0.4rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-close:hover,
.filter-close:focus-visible {
  background: var(--surface-2);
  color: var(--body-txt-color);
  outline: none;
}

.filter-panel-body {
  padding: 1.15rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-section h5 {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-text);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--surface-border);
  background: var(--surface-1);
  color: var(--body-txt-color);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: var(--surface-border-strong);
  background: var(--surface-2);
  outline: none;
}

.filter-chip.is-selected {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #fff;
  font-weight: 600;
}

.chip-count {
  font-size: 0.75rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}

.filter-chip.is-selected .chip-count {
  background: rgba(0, 0, 0, 0.25);
}

/* Switches */

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  cursor: pointer;
}

.switch-label {
  font-size: 0.95rem;
  color: var(--body-txt-color);
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid var(--surface-border);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.switch-input:checked ~ .switch-track {
  background: var(--main-color);
  border-color: var(--main-color);
}

.switch-input:checked ~ .switch-track::after {
  transform: translate(1.2rem, -50%);
}

.switch-input:focus-visible ~ .switch-track {
  box-shadow: 0 0 0 3px rgba(255, 3, 3, 0.25);
}

.filter-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--surface-border);
}

/* ---------- Active filter chips ---------- */

.active-filters {
  width: var(--feature-max-width);
  margin: 0 auto 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.active-filters[hidden] {
  display: none;
}

.active-filters-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-text);
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--main-color);
  background: rgba(255, 3, 3, 0.14);
  color: var(--body-txt-color);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.active-chip:hover,
.active-chip:focus-visible {
  background: rgba(255, 3, 3, 0.28);
  outline: none;
}

.active-chip i {
  font-size: 0.75rem;
  opacity: 0.8;
}

.clear-all-button {
  border: none;
  background: transparent;
  color: var(--muted-text);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.35rem 0.4rem;
}

.clear-all-button:hover,
.clear-all-button:focus-visible {
  color: var(--body-txt-color);
  outline: none;
}

/* ---------- Results meta & empty state ---------- */

.results-meta {
  width: var(--feature-max-width);
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--muted-text);
}

.loading-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.empty-state {
  width: min(560px, 92vw);
  margin: 2rem auto;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: var(--surface-1);
  border: 1px dashed var(--surface-border);
  color: var(--body-txt-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.empty-state > i {
  font-size: 1.75rem;
  color: var(--muted-text);
}

.empty-state p {
  margin: 0;
}

/* ---------- Error state ---------- */

.feature-error {
  width: min(560px, 92vw);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.feature-error > i {
  font-size: 2rem;
  color: var(--main-color);
}

.feature-error p {
  margin: 0;
  color: var(--body-txt-color);
}

.feature-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 10px;
}

.pagination[hidden] {
  display: none;
}

.pagination-button {
  border: 1px solid var(--surface-border);
  border-radius: 0.6rem;
  padding: 0.5rem 0.9rem;
  background-color: var(--surface-1);
  color: var(--body-txt-color);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-button:hover,
.pagination-button:focus-visible {
  background-color: var(--support-button-hover-background-color);
  color: var(--support-button-hover-text-color);
  border-color: var(--surface-border-strong);
  outline: none;
}

.pagination-button.is-active {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: #fff;
  font-weight: 700;
}

.pagination-status {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0;
  color: var(--support-main-text-color);
}

.feature-back {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- Loading: skeletons & spinners ---------- */

@keyframes feature-shimmer {
  0% {
    background-position: -480px 0;
  }

  100% {
    background-position: 480px 0;
  }
}

@keyframes feature-spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  background-color: rgba(255, 255, 255, 0.07);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 480px 100%;
  background-repeat: no-repeat;
  animation: feature-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-card:hover {
  transform: none;
}

.skeleton-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.skeleton-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.skeleton-line {
  height: 12px;
  width: 70%;
}

.skeleton-line.lg {
  height: 20px;
  width: 55%;
}

.skeleton-line.sm {
  width: 40%;
}

.skeleton-pill {
  height: 40px;
  width: 65%;
  border-radius: 999px;
  margin-top: 0.5rem;
}

.spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--main-color);
  animation: feature-spin 0.8s linear infinite;
  flex: 0 0 auto;
}

.spinner-lg {
  width: 3rem;
  height: 3rem;
  border-width: 3px;
}

/* ---------- Full page loader ---------- */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loader.is-visible {
  opacity: 1;
  visibility: visible;
}

.page-loader-text {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 700px) {
  .feature-toolbar {
    gap: 0.6rem;
  }

  .feature-filter-button {
    width: 100%;
    justify-content: center;
  }

  .feature-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 70;
  }

  .feature-filter-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Bottom sheet on small screens - a dropdown here is unusable */
  .feature-filter-panel {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-height: 82vh;
    border-radius: 1.25rem 1.25rem 0 0;
    transform: translateY(100%);
    opacity: 1;
    z-index: 80;
    transition: transform 0.25s ease;
  }

  .feature-filter-panel.is-open {
    transform: translateY(0);
  }

  body.filter-open {
    overflow: hidden;
  }

  .filter-panel-foot {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {

  .skeleton,
  .spinner {
    animation: none;
  }

  .feature-filter-panel,
  .feature-filter-backdrop,
  .page-loader {
    transition: none;
  }
}
