/* MCP Server List ? extensions on DCLIST theme */

.brand-mark {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  flex-shrink: 0;
  max-width: 100%;
}

.brand-mark__word {
  order: 1;
  font-family: var(--font);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  text-transform: none;
  white-space: nowrap;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark__muted {
  color: var(--text-muted);
  font-weight: 550;
}

.brand-mark__icon {
  order: 0;
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  max-width: none;
  max-height: none;
  flex-shrink: 0;
  border-radius: 0.45rem;
  background: var(--brand-logo-image, none) center / contain no-repeat;
  object-fit: contain; /* when rendered as <img> fallback */
}

.brand--footer .brand-mark__word {
  font-size: 1.15rem;
}

.brand--footer .brand-mark__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.5rem;
}

.welcome-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  width: min(100%, 56rem);
  margin: 0.2rem 0;
  line-height: 1;
  font-family: var(--font);
  font-weight: 650;
  font-size: clamp(1.85rem, 5.5vw, 3.35rem);
  letter-spacing: -0.025em;
  text-transform: none;
  color: #fff;
  text-shadow: none;
  animation: brandWordIn 0.6s var(--ease) both;
}

.welcome-brand__mcp {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
  padding: 0.1em 0.38em 0.1em 0.12em;
  border-radius: 0.22em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  text-shadow: none;
}

.welcome-brand__icon {
  width: auto;
  height: 0.85em;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border-radius: 0.22em;
}

.welcome-brand__mcp-text {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.welcome-brand__rest {
  white-space: nowrap;
  font-weight: 550;
  color: var(--text-muted);
}

.welcome .welcome-sub {
  margin: 0 0 0.25rem;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 450;
}

@keyframes brandWordIn {
  from {
    transform: translateY(6px);
  }
  to {
    transform: none;
  }
}

.brand-text {
  font-family: var(--font);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-accent {
  color: var(--brand-hover);
}

.welcome-sub {
  color: var(--text-muted);
  margin: 0.5rem 0 1.25rem;
  font-size: 1.05rem;
}

.welcome-meta {
  margin: 0;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-strong);
  box-shadow: none;
  line-height: 1;
  animation: brandWordIn 0.55s var(--ease) both;
}

.welcome-badge__text {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.welcome-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  margin: 0.85rem 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}

.welcome-stats a {
  color: var(--text-muted);
  text-decoration: none;
}

.welcome-stats a:hover {
  color: var(--text);
}

.welcome-stats__sep {
  color: var(--border-strong);
  font-weight: 500;
}

/* ?? Hero smart search ?? */
.hero-search {
  position: relative;
  width: min(100%, 38rem);
  margin-top: 0.35rem;
  z-index: 5;
}

.hero-search.is-open {
  z-index: 40;
}

.hero-search__form.searchbox--hero {
  max-width: none;
  align-items: stretch;
  border-radius: calc(var(--radius-sm) + 2px);
  background: rgba(12, 14, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.hero-search.is-open .hero-search__form.searchbox--hero,
.hero-search__form.searchbox--hero:focus-within {
  border-color: rgba(122, 156, 191, 0.45);
  box-shadow:
    0 0 0 1px rgba(77, 107, 138, 0.25),
    0 22px 48px rgba(0, 0, 0, 0.34),
    0 0 0 4px rgba(77, 107, 138, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.hero-search__lead-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.15s var(--ease);
}

.hero-search__form:focus-within .hero-search__lead-icon {
  color: var(--brand-hover);
}

/* Beat .searchbox--hero input padding from style.css (specificity clash) */
.hero-search__form.searchbox--hero .hero-search__input,
.hero-search .searchbox--hero input[type="search"].hero-search__input {
  width: 100%;
  height: 3.25rem;
  padding: 0 2.75rem 0 3.15rem !important;
  border: 0 !important;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1.02rem;
  font-weight: 500;
}

.hero-search__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.hero-search__hint {
  position: absolute;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.15s var(--ease);
}

.hero-search.is-open .hero-search__hint,
.hero-search__field:focus-within .hero-search__hint {
  opacity: 0;
}

.hero-search__form.searchbox--hero button {
  height: 3.25rem;
  padding-inline: 1.15rem;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  background: rgba(255, 255, 255, 0.04);
}

.hero-search__form.searchbox--hero button:hover {
  background: rgba(77, 107, 138, 0.22);
}

.hero-search__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(70vh, 28rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: calc(var(--radius-md) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  /* Solid fill ? translucent + blur let clients section bleed through */
  background: #12151c;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-origin: top center;
  animation: heroSearchIn 0.2s var(--ease) both;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.45) rgba(255, 255, 255, 0.08);
}

.hero-search__panel::-webkit-scrollbar {
  width: 10px;
}

.hero-search__panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin: 0.35rem 0;
}

.hero-search__panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.hero-search__panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.58);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.hero-search__panel[hidden] {
  display: none !important;
}

@keyframes heroSearchIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-search__section {
  padding: 0.55rem 0.45rem;
}

.hero-search__section + .hero-search__section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-search__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem 0.45rem;
}

.hero-search__section-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-search__section-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
}

.hero-search__option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.62rem 0.7rem;
  border: 0;
  border-radius: calc(var(--radius-sm) + 1px);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s var(--ease);
}

.hero-search__option:hover,
.hero-search__option.is-active {
  background: rgba(77, 107, 138, 0.16);
}

.hero-search__option.is-active {
  box-shadow: inset 0 0 0 1px rgba(122, 156, 191, 0.22);
}

.hero-search__option-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  flex-shrink: 0;
}

.hero-search__option-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-search__option-mark svg {
  color: var(--brand-hover);
}

.hero-search__option-body {
  min-width: 0;
}

.hero-search__option-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.25;
}

.hero-search__option-title mark,
.hero-search__chip mark {
  background: rgba(122, 156, 191, 0.22);
  color: #fff;
  border-radius: 0.2rem;
  padding: 0 0.12rem;
}

.hero-search__option-desc {
  margin: 0.12rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-search__option-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--text-dim);
  white-space: nowrap;
}

.hero-search__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: rgba(77, 107, 138, 0.18);
  border: 1px solid rgba(122, 156, 191, 0.22);
  color: var(--brand-hover);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-search__empty {
  padding: 1.35rem 1rem 1.5rem;
  text-align: center;
}

.hero-search__empty-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: #fff;
}

.hero-search__empty-text {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.hero-search__footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0e1118;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
}

.hero-search__footer-group {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.hero-search__footer kbd,
.hero-search__foot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.28rem;
  margin: 0 0.12rem;
  border-radius: 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1;
}

.hero-search__foot-btn {
  cursor: pointer;
  appearance: none;
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease), color 0.12s var(--ease);
}

.hero-search__foot-btn:hover,
.hero-search__foot-btn:focus-visible {
  color: #fff;
  background: rgba(122, 156, 191, 0.28);
  border-color: rgba(122, 156, 191, 0.45);
  outline: none;
}

.hero-search__rail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin-top: 0.85rem;
  max-width: 100%;
}

.hero-search.is-open .hero-search__rail {
  opacity: 0.35;
  pointer-events: none;
}

.hero-search__rail-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

.hero-search__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.hero-search__chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.12s var(--ease);
}

.hero-search__chip:hover {
  color: #fff;
  border-color: rgba(122, 156, 191, 0.35);
  background: rgba(77, 107, 138, 0.14);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .hero-search {
    width: 100%;
  }

  .hero-search__hint {
    display: none;
  }

  .hero-search__form.searchbox--hero .hero-search__input,
  .hero-search .searchbox--hero input[type="search"].hero-search__input {
    padding: 0 1.1rem 0 3rem !important;
    font-size: 0.95rem;
  }

  .hero-search__form.searchbox--hero button span {
    display: none;
  }

  .hero-search__form.searchbox--hero button {
    padding-inline: 0.95rem;
  }

  .hero-search__option {
    grid-template-columns: auto 1fr;
  }

  .hero-search__option-meta {
    display: none;
  }

  .hero-search__footer {
    display: none;
  }
}

.section-sub {
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

.page-head-section {
  padding: 2rem 0 2.75rem;
}

.listings-section.page-head-section {
  padding: 2rem 0 2.75rem;
}

.page-head-section .breadcrumbs {
  margin: 0 0 1.15rem;
}

.page-head-section .page-head {
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 1.85rem;
}

.page-head-section .page-head__titles {
  min-width: 0;
}

.page-head-section .page-head h1 {
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-head-section .page-head__meta {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.browse-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.85rem;
}

.browse-toolbar .filter-bar {
  margin-bottom: 0;
}

.browse-toolbar .sort-tabs {
  margin-bottom: 0;
}

/* Sort bar ? restore pill container (override generic mcp rules) */
.page-head-section .sort-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.55rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.search-page .sort-tabs,
.search-page .search-sort {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  width: auto;
  max-width: 100%;
  min-width: 0;
  padding: 0.28rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.search-page .sort-tabs::-webkit-scrollbar,
.search-page .search-sort::-webkit-scrollbar {
  display: none;
}

.page-head-section .sort-tab,
.search-page .sort-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  flex: 0 0 auto;
}

.page-head-section .sort-tab:hover,
.search-page .sort-tab:hover {
  color: var(--text);
}

.page-head-section .sort-tab.is-active,
.search-page .sort-tab.is-active {
  color: #fff;
  background: rgba(77, 107, 138, 0.45);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(122, 156, 191, 0.25);
}

.page-head-section .listings,
.search-page .listings {
  margin-top: 0.15rem;
}

@media (max-width: 720px) {
  .page-head-section .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
  }

  .page-head-section .sort-tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .page-head-section .sort-tabs::-webkit-scrollbar {
    display: none;
  }

  .page-head-section .sort-tab {
    flex: 0 0 auto;
    text-align: center;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .browse-toolbar {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge--official {
  background: rgba(61, 155, 110, 0.12);
  color: #6fbf94;
  border: 1px solid rgba(61, 155, 110, 0.22);
}

.badge--recommended {
  background: rgba(224, 184, 74, 0.12);
  color: #d4b45a;
  border: 1px solid rgba(224, 184, 74, 0.22);
}

.badge--sse {
  background: var(--brand-soft);
  color: var(--brand-hover);
  border: 1px solid var(--brand-ring);
}

/* ?? MCP server cards (mcpservers.com-style layout) ?? */
.listings {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.2rem);
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1100px) {
  .listings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .listings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .listings {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mcp-server-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
  min-width: 0;
  max-width: 100%;
}

.mcp-server-card.is-entering {
  animation: mcpCardIn 0.35s ease both;
}

@keyframes mcpCardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.mcp-server-card:hover {
  transform: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.mcp-server-card__banner {
  position: relative;
  height: 7.5rem;
  background-color: #1c1e26;
  background-image:
    radial-gradient(ellipse 90% 80% at 12% 20%, rgba(255, 255, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 10%, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    var(--banner, linear-gradient(135deg, #1c1e26, #3a5570));
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.mcp-server-card__banner--photo {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(ellipse 90% 80% at 12% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
    var(--banner-image),
    var(--banner, linear-gradient(135deg, #1c1e26, #3a5570));
  background-size: cover;
}

.mcp-server-card__banner--photo::before {
  opacity: 0.15;
}

.mcp-server-card__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.mcp-server-card__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

.mcp-server-card__banner-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}

.mcp-server-card__logo {
  position: absolute;
  left: 1rem;
  bottom: -1.35rem;
  z-index: 4;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--bg-card);
  background: var(--bg-raised);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.mcp-server-card__logo .logo-placeholder {
  width: 100%;
  height: 100%;
}

.mcp-server-card__official {
  position: absolute;
  left: 5rem;
  bottom: 0.55rem;
  z-index: 2;
  padding: 0.16rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(61, 155, 110, 0.9);
  color: #fff;
  pointer-events: none;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mcp-server-card__official--sse {
  background: rgba(77, 107, 138, 0.9);
}

.mcp-server-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.85rem 1rem 0.85rem;
  flex: 1;
}

.mcp-server-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mcp-server-card__title a {
  color: var(--text);
  text-decoration: none;
}

.mcp-server-card__title a:hover {
  color: var(--brand-hover);
}

.mcp-server-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.mcp-server-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.mcp-server-card__stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.mcp-server-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.mcp-server-card__star {
  color: var(--star, #f6c344);
}

.mcp-server-card__stat svg {
  color: var(--star, #f6c344);
}

.mcp-server-card__stat--github .mcp-server-card__github {
  color: var(--text-muted);
  flex-shrink: 0;
}

.mcp-server-card__cat {
  flex-shrink: 0;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-chip);
  border: 1px solid var(--border);
}

.mcp-server-card__cat:hover {
  color: var(--brand-hover);
  border-color: var(--brand-ring);
}

@media (hover: none) {
  .mcp-server-card:hover {
    transform: none;
    box-shadow: none;
  }
}

.logo-slot {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.logo-slot > .logo-img,
.logo-slot > .logo-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-slot > .logo-placeholder[hidden] {
  display: none !important;
}

.mcp-server-card__logo .logo-slot,
.server-panel__icon .logo-slot,
.related-item__icon .logo-slot {
  width: 100%;
  height: 100%;
}

.logo-placeholder,
.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

svg.logo-placeholder {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: inherit;
}

.logo-img {
  object-fit: cover;
}

.server-icon .logo-placeholder,
.server-icon .logo-img {
  border-radius: inherit;
}

.join-icon--wrap {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.join-icon--wrap .logo-placeholder {
  width: 100%;
  height: 100%;
}

.server-panel__icon {
  width: 80px;
  height: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.server-panel__icon .logo-placeholder {
  width: 100%;
  height: 100%;
}

.server-panel__icon .logo-img,
.server-panel__icon .logo-placeholder {
  border-radius: inherit;
}

.related-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
}

.related-item__icon .logo-placeholder {
  width: 100%;
  height: 100%;
}

.related-item img,
.related-item .logo-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--radius-sm, 8px);
}

.server-panel__banner.is-banner-missing {
  display: none;
}

.badge--sm {
  font-size: 0.62rem;
  padding: 0.1rem 0.4rem;
}

.mcp-stat {
  color: var(--star);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Detail page ? overrides dclist partial-banner layout */
.page-server .server-page__hero {
  display: none;
}

.page-server .server-page__content {
  margin-top: 0;
  padding-top: 1.25rem;
  gap: 1.35rem;
  min-width: 0;
  max-width: 100%;
}

.page-server .mcp-panel.server-panel,
.page-server .server-panel.mcp-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0;
  padding: 0;
  box-shadow: none;
  min-width: 0;
  max-width: 100%;
}

.page-server .server-panel__banner,
.page-server .server-panel__banner--gradient {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  aspect-ratio: 3 / 1;
  max-height: 10.5rem;
  background-color: #1a1b20;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 45%),
    var(--banner, linear-gradient(180deg, #22242a, #1a1b20));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-server .server-panel__banner--photo {
  background-image:
    linear-gradient(180deg, rgba(8, 10, 16, 0.2) 0%, rgba(8, 10, 16, 0.62) 100%),
    var(--banner-image),
    var(--banner, linear-gradient(180deg, #22242a, #1a1b20));
}

.page-server .server-panel__banner--photo .server-panel__banner-img {
  display: none;
}

.page-server .server-panel__banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-server .server-panel__banner-fade {
  position: absolute;
  inset: auto 0 0;
  height: 65%;
  background: linear-gradient(180deg, transparent 0%, var(--bg-card) 92%);
  pointer-events: none;
  z-index: 1;
}

.page-server .server-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: start;
  margin: 0;
  padding: 1rem 1.35rem 1.15rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.page-server .server-panel__intro {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.page-server .server-panel__title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
}

.page-server .server-panel__titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.1rem;
}

.page-server .server-panel__name {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

.page-server .server-panel__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.page-server .server-panel__author {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.3;
}

.page-server .server-panel__lead {
  margin: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.page-server .server-panel__brand {
  display: none;
}

.page-server .server-panel__icon {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
  margin: 0;
}

.page-server .server-panel__icon .logo-img,
.page-server .server-panel__icon .logo-placeholder,
.page-server .server-panel__icon-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.page-server .server-panel__cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  grid-column: 1 / -1;
}

.page-server .server-panel__cats > li {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

.page-server .server-panel__cat {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  transition: border-color 0.15s, color 0.15s;
}

.page-server .server-panel__cat:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.page-server .server-panel__cat--tag {
  color: var(--text-dim);
  background: transparent;
  border-style: dashed;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.page-server .server-panel__cat--tag:hover {
  color: var(--brand-hover);
  border-color: rgba(77, 107, 138, 0.35);
  border-style: solid;
}

.page-server .server-panel__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  padding-top: 0.15rem;
  min-width: 0;
}

.page-server .server-panel__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  margin: 0;
}

.page-server .stat-pill {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.page-server .stat-pill__icon {
  color: var(--star);
}

.page-server .stat-pill__github {
  color: var(--text-muted);
  flex-shrink: 0;
}

.page-server .stat-pill--github .stat-pill__muted {
  margin-left: 0.05rem;
}

.page-server .stat-pill--stars .stars {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
}

.page-server .stat-pill--stars .star {
  width: 0.95rem;
  height: 0.95rem;
}

.page-server .stat-pill--stars .star--full,
.page-server .stat-pill--stars .star--half {
  color: var(--star);
}

.page-server .stat-pill--stars .star--empty {
  color: rgba(255, 255, 255, 0.42);
}

.page-server .stat-pill--unrated .star--empty {
  color: rgba(255, 214, 120, 0.45);
}

.page-server .stat-pill__muted {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.page-server .stat-pill--unrated {
  color: var(--text-dim);
}

.page-server .server-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}

.page-server .server-panel__actions .btn {
  box-sizing: border-box;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0 0.9rem;
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
}

.page-server .server-panel__actions .btn .btn__icon {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  color: var(--star);
}

.page-server .server-section {
  padding: 1.15rem 1.5rem 0;
}

.page-server .server-section--intro {
  padding-bottom: 0.15rem;
}

.page-server .server-section__title {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.page-server .server-panel__desc {
  padding: 0;
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
}

.page-server .mcp-tabs {
  border-top: 0;
  margin-top: 0;
}

.page-server .mcp-tabs__nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-server .mcp-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 550;
  font-size: 0.88rem;
  padding: 0.8rem 0.85rem;
  margin-bottom: -1px;
  flex: 0 0 auto;
  line-height: 1.2;
  transition: color 0.15s, border-color 0.15s;
}

.page-server .mcp-tab:hover {
  color: var(--text-muted);
}

.setup-guides {
  display: grid;
  gap: 1.25rem;
}

.setup-guides__clients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 0.15rem;
}

.setup-guides__client {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 550;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.setup-guides__client img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  border-radius: 0.2rem;
}

.setup-guides__client:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.setup-guides__client:focus {
  outline: none;
}

.setup-guides__client:focus-visible {
  box-shadow: 0 0 0 2px rgba(77, 107, 138, 0.55);
}

.setup-guides__client.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  box-shadow: none;
}

.setup-guides__stack {
  display: grid;
}

.setup-guides__panel {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.setup-guides__panel.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.setup-guides__heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}

.setup-guides__heading img {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
  border-radius: 0.3rem;
}

.setup-guides__heading h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.setup-guides__lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.setup-guides__steps {
  margin: 0;
  padding: 0 0 0 1.25rem;
  display: grid;
  gap: 0.85rem;
  color: var(--text);
  line-height: 1.55;
}

.setup-guides__steps a {
  color: var(--link, #7dd3fc);
}

.setup-guides__fields {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.setup-guides__field {
  display: grid;
  gap: 0.3rem;
}

.setup-guides__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.setup-guides__field code,
.setup-guides__args code {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  word-break: break-all;
}

.setup-guides__args {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.setup-guides__hint {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.setup-guides__note {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.setup-guides__os {
  margin-top: 1.15rem;
}

.setup-guides__os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.setup-guides__os-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.setup-guides__os-tab:hover {
  color: var(--text);
}

.setup-guides__os-tab:focus {
  outline: none;
}

.setup-guides__os-tab:focus-visible {
  box-shadow: 0 0 0 2px rgba(77, 107, 138, 0.55);
}

.setup-guides__os-tab.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.setup-guides__os-stack {
  display: grid;
}

.setup-guides__os-panel {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  min-width: 0;
}

.setup-guides__os-panel.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.setup-guides__os-panel .code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.setup-guides__os-panel .code-block-header h4 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.setup-guides__repo {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.setup-guides__repo h3 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.page-server .mcp-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--text-muted);
}

.page-server .mcp-panel-content {
  display: none;
  padding: 1.2rem 1.35rem 1.5rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.page-server .mcp-panel-content.is-active {
  display: block;
}

@media (max-width: 860px) {
  .page-server .mcp-panel-content {
    padding: 1.1rem 0.95rem 1.35rem;
  }

  .page-server .server-panel__head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page-server .server-panel__cta {
    align-items: flex-start;
    width: 100%;
  }

  .page-server .server-panel__stats,
  .page-server .server-panel__actions {
    justify-content: flex-start;
  }

  .page-server .server-panel__banner,
  .page-server .server-panel__banner--gradient {
    max-height: 8.5rem;
    aspect-ratio: 16 / 7;
  }
}


.overview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.content-block {
  margin-bottom: 1.5rem;
  min-width: 0;
  max-width: 100%;
}

.content-block h2,
.content-block h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.muted {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.overview-about {
  margin: 0;
  color: var(--text, rgba(230, 232, 238, 0.92));
  line-height: 1.6;
  font-size: 0.98rem;
}

.overview-about__more {
  margin: 0.75rem 0 0;
}

.jump-links__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem 1.1rem;
}

.detail-grid dt {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.88rem;
}

.detail-grid dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.markdown-body {
  color: var(--text-muted);
  line-height: 1.65;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  color: var(--text);
  margin: 1.25rem 0 0.65rem;
  overflow-wrap: anywhere;
}

.markdown-body :where(p, li, td, th, blockquote, a) {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.markdown-body pre {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  font-size: 0.85rem;
}

.markdown-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-chip);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.markdown-body pre code {
  display: block;
  width: max-content;
  max-width: none;
  background: none;
  padding: 0;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.25rem;
  max-width: 100%;
}

.markdown-body ul {
  list-style: disc;
}

.markdown-body ol {
  list-style: decimal;
}

.markdown-body a {
  color: var(--brand-hover);
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  /* Avoid flash of broken-image glyph while the global handler removes the node */
  font-size: 0;
  color: transparent;
}

.markdown-body img[data-broken-handled="1"],
img[data-broken-handled="1"] {
  display: none !important;
}

.markdown-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

.readme-body {
  max-height: none;
}

.config-block,
.setup-guides__os-panel pre {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  font-size: 0.82rem;
}

.config-block code,
.setup-guides__os-panel pre code {
  display: block;
  width: max-content;
  max-width: none;
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-copyable {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.action-cards {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.action-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.action-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.action-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.related-section {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

.client-section-title {
  margin: 1.35rem 0 0.65rem;
}

.client-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.client-feature-list li {
  position: relative;
  padding: 0.65rem 0.8rem 0.65rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.client-feature-list li::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--brand, #7c8cff);
  box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.18);
}

.server-panel__cat--platform {
  border-color: rgba(56, 189, 248, 0.28);
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.1);
}

.client-setup-cta {
  margin-top: 1rem;
}

.client-setup__path {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.client-setup__path code,
.detail-grid code {
  font-size: 0.84rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.35rem;
  padding: 0.12rem 0.4rem;
}

.client-setup__steps {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.client-setup__note {
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.client-setup__example {
  margin: 0 0 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0d1017;
}

.client-setup__example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.client-setup__example-head h4 {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--text);
}

.client-setup__example .code-block {
  margin: 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #dbe4ff;
}

.client-setup__browse {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.client-setup__browse a {
  color: var(--brand-hover, #a5b4fc);
  font-weight: 600;
}

.page-client .related-servers {
  margin-top: 1.25rem;
}

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

.pagination__info {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.search-page {
  position: relative;
  padding: 1.5rem 0 3.5rem;
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  max-width: 100%;
}

.search-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 18rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%);
  z-index: 0;
}

.search-page > .container,
.search-page__inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  min-width: 0;
}

/* Keep overflow containment off ancestors of the filter drawer (fixed positioning) */
.search-hero--rich,
.search-layout,
.search-main {
  min-width: 0;
  max-width: 100%;
}

.search-page .listings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.search-hero--rich {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding: 1.45rem 1.4rem 1.25rem;
  text-align: left;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.search-hero--rich .search-hero__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.search-hero--rich .search-hero__title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.search-hero--rich .search-hero__meta {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 36rem;
}

.search-hero--rich .search-hero__form {
  position: relative;
  display: flex;
  align-items: stretch;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  border-radius: calc(var(--radius-sm) + 2px);
  background: var(--bg-input);
  border: 1px solid var(--border);
  box-shadow: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.search-hero--rich .search-hero__form:focus-within {
  border-color: rgba(122, 156, 191, 0.45);
  box-shadow:
    0 0 0 3px rgba(77, 107, 138, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-hero__lead-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.search-hero--rich .search-hero__form:focus-within .search-hero__lead-icon {
  color: var(--brand-hover);
}

.search-hero__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.search-page .searchbox--hero {
  max-width: 100%;
  min-width: 0;
}

.search-page .searchbox--hero input[type="search"] {
  height: 3.15rem;
  font-size: 1rem;
  font-weight: 500;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  padding: 0 1rem 0 3.1rem !important;
  border: 0 !important;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff;
}

.search-page .searchbox--hero .search-hero__field:has(.search-clear) input[type="search"] {
  padding-right: 2.85rem !important;
}

.search-page .searchbox--hero input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.search-page .searchbox--hero button[type="submit"] {
  height: 3.15rem;
  flex-shrink: 0;
  padding-inline: 1.15rem;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.search-page .searchbox--hero button[type="submit"]:hover {
  background: rgba(77, 107, 138, 0.28);
}

.search-hero--rich .search-clear,
.search-page .searchbox--hero .search-clear,
.search-page .search-hero__field .search-clear {
  position: absolute !important;
  right: 0.5rem !important;
  top: 50% !important;
  bottom: auto !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1.85rem !important;
  height: 1.85rem !important;
  min-width: 1.85rem !important;
  min-height: 1.85rem !important;
  max-width: 1.85rem !important;
  max-height: 1.85rem !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 0.4rem !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  cursor: pointer;
  z-index: 5;
  touch-action: manipulation;
  flex: none !important;
  line-height: 0 !important;
  font-size: 16px !important;
  gap: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease);
}

.search-hero--rich .search-clear svg,
.search-page .searchbox--hero .search-clear svg,
.search-page .search-hero__field .search-clear svg {
  display: block !important;
  width: 0.95rem !important;
  height: 0.95rem !important;
  stroke: currentColor !important;
  fill: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
}

/* Icon-only submit on search */
@media (max-width: 900px) {
  .search-page .searchbox--hero button[type="submit"] span,
  .page-search .searchbox--hero button[type="submit"] span {
    display: none;
  }
}

.search-hero--rich .search-clear:hover,
.search-hero--rich .search-clear:focus-visible,
.search-page .searchbox--hero .search-clear:hover,
.search-page .searchbox--hero .search-clear:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  outline: none;
}

.search-suggestions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.05rem 0 0.2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.search-suggestions::-webkit-scrollbar {
  display: none;
}

.search-suggestions__label {
  flex-shrink: 0;
  margin-right: 0.15rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

.search-suggestions__chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 1.9rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.search-suggestions__chip:hover,
.search-suggestions__chip.is-active {
  color: #fff;
  border-color: rgba(122, 156, 191, 0.4);
  background: rgba(77, 107, 138, 0.18);
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 17.5rem) minmax(0, 1fr);
  gap: 1.35rem 1.5rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.search-mobile-bar {
  display: none;
}

.search-mobile-bar__btn {
  appearance: none;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.85rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  box-shadow: none;
}

.search-mobile-bar__text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.search-mobile-bar__hint {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(77, 107, 138, 0.2);
  color: #c5d4e4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.search-mobile-bar__chev {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.search-sidebar-backdrop {
  display: none;
}

.search-sidebar-backdrop[hidden] {
  display: none !important;
}

.search-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 0.85rem);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 1.5rem);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  z-index: 1;
}

.search-sidebar::-webkit-scrollbar {
  width: 6px;
}

.search-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.search-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
}

.search-panel__grab {
  display: none;
}

.search-panel__body {
  min-width: 0;
}

.search-panel__foot {
  display: none;
}

.search-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.search-panel__heading {
  min-width: 0;
}

.search-panel__title {
  margin: 0;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
}

.search-panel__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-dim);
}

.search-panel__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.search-panel__clear {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.search-panel__clear:hover {
  color: var(--brand-hover);
}

.search-panel__close {
  display: none;
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  touch-action: manipulation;
}

.search-panel__close:hover,
.search-panel__close:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  outline: none;
}

.search-facet {
  padding: 0.95rem 1rem 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.search-facet--last,
.search-facet:last-child {
  border-bottom: 0;
}

.search-facet__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.search-facet__title {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.search-facet__link {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--brand-hover);
  text-decoration: none;
  white-space: nowrap;
}

.search-facet__link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.search-facet__filter {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-input);
  color: var(--text-dim);
}

.search-facet__filter:focus-within {
  border-color: rgba(77, 107, 138, 0.55);
  color: var(--text-muted);
}

.search-facet__filter input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.3;
}

.search-facet__filter input::placeholder {
  color: var(--text-dim);
}

.search-facet__list {
  display: grid;
  gap: 0.1rem;
  max-height: 17.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  padding-right: 0.15rem;
  margin-right: -0.15rem;
}

.search-facet__list::-webkit-scrollbar {
  width: 5px;
}

.search-facet__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.search-facet__empty {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.search-facet__list--more {
  margin-top: 0.1rem;
}

.search-facet__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
  line-height: 1.25;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
  touch-action: manipulation;
}

.search-facet__item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.search-facet__item.is-active {
  color: var(--text);
  background: rgba(77, 107, 138, 0.12);
  border-color: rgba(77, 107, 138, 0.28);
}

.search-facet__item--check {
  padding-left: 0.4rem;
}

.search-facet__check {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border-radius: 0.28rem;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  position: relative;
}

.search-facet__item--check.is-active .search-facet__check {
  border-color: rgba(124, 138, 255, 0.85);
  background: var(--brand);
}

.search-facet__item--check.is-active .search-facet__check::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.08rem;
  width: 0.28rem;
  height: 0.5rem;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.search-facet__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-facet__count {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-dim);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.search-facet__item.is-active .search-facet__count {
  color: rgba(196, 202, 255, 0.9);
}

.search-facet__more {
  margin-top: 0.35rem;
}

.search-facet__more-btn {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.4rem;
  color: var(--brand-hover);
  font-size: 0.8rem;
  font-weight: 650;
  user-select: none;
  touch-action: manipulation;
}

.search-facet__more-btn::-webkit-details-marker {
  display: none;
}

.search-facet__more-btn::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s var(--ease);
  margin-top: -0.15rem;
}

.search-facet__more[open] .search-facet__more-btn::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.search-facet__more-btn [data-less-label] {
  display: none;
}

.search-facet__more[open] .search-facet__more-btn [data-more-label] {
  display: none;
}

.search-facet__more[open] .search-facet__more-btn [data-less-label] {
  display: inline;
}

.search-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  min-height: 2rem;
  padding: 0.32rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
  touch-action: manipulation;
}

.search-tag__hash {
  color: var(--text-dim);
  font-weight: 700;
}

.search-tag__count {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  font-weight: 600;
}

.search-tag:hover,
.search-tag.is-active {
  color: var(--text);
  border-color: rgba(77, 107, 138, 0.4);
  background: rgba(77, 107, 138, 0.12);
}

.search-tag.is-active .search-tag__hash,
.search-tag.is-active .search-tag__count {
  color: rgba(168, 190, 214, 0.9);
}

.search-client-grid,
.search-client-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.search-client {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
  min-height: 2.15rem;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
  touch-action: manipulation;
}

.search-client img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  border-radius: 0.2rem;
  flex-shrink: 0;
}

.search-client span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-client:hover,
.search-client.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.search-client.is-active {
  border-color: rgba(77, 107, 138, 0.45);
  background: rgba(77, 107, 138, 0.12);
}

.search-main {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  display: grid;
  gap: 0.95rem;
  overflow-x: clip;
  overflow-anchor: none;
}

.search-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.search-active__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 auto;
}

.search-active__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-ring);
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
  touch-action: manipulation;
}

.search-active__chip span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-active__chip:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.search-active__clear {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 0.15s var(--ease);
}

.search-active__clear:hover {
  color: var(--brand-hover);
}

.search-page .search-main,
.search-page #results {
  scroll-margin-top: calc(var(--nav-h, 76px) + 0.75rem);
}

.search-page .search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 0;
  max-width: 100%;
  box-shadow: none;
}

.search-toolbar__count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 10rem;
}

.search-toolbar__count strong {
  color: #fff;
  font-weight: 650;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.search-page .search-sort {
  /* kept for class hooks; base styles live with .search-page .sort-tabs */
  max-width: 100%;
  min-width: 0;
}

.search-page .search-results .mcp-server-card.is-entering {
  animation: none;
}

.search-discover {
  display: grid;
  gap: 1.75rem;
}

.search-discover__section {
  padding: 1.05rem 1.05rem 1.15rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.search-discover__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.search-discover__head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.search-discover__head a {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.search-discover__head a:hover {
  color: var(--brand-hover);
}

.search-fallback {
  margin-top: 1.75rem;
  text-align: left;
  width: 100%;
}

.search-fallback__title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: var(--text);
}

.search-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 2.65rem 1.35rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.search-empty__title {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
}

.search-empty__text {
  margin: 0;
  max-width: 28rem;
}

.search-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.35rem;
}

body.search-filters-open {
  overflow: hidden;
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
}

@media (min-width: 1400px) {
  .search-layout {
    grid-template-columns: 18rem minmax(0, 1fr);
  }

  .search-page .listings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .search-layout {
    grid-template-columns: 15.75rem minmax(0, 1fr);
    gap: 1.15rem;
  }

  .search-page .listings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 1100px) {
  .search-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .search-mobile-bar {
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 0.35rem);
    z-index: 40;
    max-width: 100%;
    min-width: 0;
  }

  .search-mobile-bar__btn {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    max-width: 100%;
  }

  .search-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 450;
    width: 100%;
    max-width: 100%;
    background: rgba(6, 8, 12, 0.58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .search-sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .search-sidebar-backdrop[hidden] {
    display: none !important;
  }

  .search-sidebar {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(88dvh, 42rem);
    z-index: 460;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translate3d(0, 110%, 0);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.34s;
    pointer-events: none;
    visibility: hidden;
    background: transparent;
    will-change: transform;
  }

  .search-sidebar.is-open {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    visibility: visible;
  }

  .search-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
    max-width: 100%;
    border-radius: 1.15rem 1.15rem 0 0;
    border: 1px solid var(--border);
    border-bottom: 0;
    background: var(--bg-raised);
    overflow: hidden;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.35);
  }

  .search-panel__grab {
    display: flex;
    justify-content: center;
    padding: 0.55rem 0 0.15rem;
    flex: 0 0 auto;
  }

  .search-panel__grab span {
    width: 2.4rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
  }

  .search-panel__head {
    position: relative;
    flex: 0 0 auto;
    z-index: 2;
    padding: 0.35rem 1.05rem 0.85rem;
    background: var(--bg-raised);
  }

  .search-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .search-facet__list {
    max-height: none;
  }

  .search-panel__foot {
    display: block;
    flex: 0 0 auto;
    padding: 0.75rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--bg);
  }

  .search-panel__done {
    width: 100%;
    justify-content: center;
    min-height: 2.75rem;
  }

  .search-panel__close {
    display: inline-flex;
  }

  .search-page .listings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .search-page .listings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .search-page {
    padding-top: 1rem;
  }

  .search-hero--rich {
    padding: 1rem 0.95rem 0.95rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    max-width: 100%;
    min-width: 0;
  }

  .search-hero--rich .search-hero__meta {
    font-size: 0.84rem;
    overflow-wrap: anywhere;
  }

  .search-page .searchbox--hero input {
    height: 3rem;
    font-size: 16px;
    padding-left: 3rem !important;
  }

  .search-page .searchbox--hero button[type="submit"] {
    height: 3rem;
    padding: 0 0.95rem;
    flex-shrink: 0;
  }

  .search-hero--rich .search-clear,
  .search-page .searchbox--hero .search-clear {
    right: 0.4rem;
    width: 1.7rem;
    height: 1.7rem;
    min-width: 1.7rem;
    min-height: 1.7rem;
    padding: 0;
  }

  .search-page .searchbox--hero .search-hero__field:has(.search-clear) input[type="search"] {
    padding-right: 2.45rem !important;
  }

  .search-page .search-toolbar {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.75rem;
  }

  /* flex: 1 1 10rem is a width basis on desktop; as height in a column it leaves a huge gap */
  .search-page .search-toolbar__count {
    flex: 0 1 auto;
  }

  .search-page .sort-tabs,
  .search-page .search-sort {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .search-page .sort-tab {
    flex: 0 0 auto;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .search-page .listings,
  .search-page .search-results.listings,
  .search-discover .listings {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-active {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
    min-width: 0;
  }

  .search-active__chips {
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    overflow-x: visible;
    max-width: 100%;
    padding-bottom: 0;
  }

  .search-active__chip {
    flex: 0 0 auto;
    align-self: center;
    height: auto;
    max-width: min(100%, 16rem);
  }

  .search-active__clear {
    align-self: center;
    margin-left: auto;
  }

  .search-empty {
    padding: 2rem 1rem;
    max-width: 100%;
  }

  .search-empty__actions {
    width: 100%;
  }

  .search-empty__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .search-page .mcp-server-card {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .search-suggestions__chip {
    font-size: 0.8rem;
    padding: 0.32rem 0.65rem;
  }

  .search-page .pagination,
  .pagination {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 1.5rem 0 0.5rem;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .search-toolbar__count {
    font-size: 0.84rem;
  }
}

@media (hover: none) {
  .search-page .mcp-server-card:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-sidebar,
  .search-sidebar-backdrop {
    transition: none;
  }
}

.footer-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 1rem 0 2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

.welcome-meta__dot {
  opacity: 0.55;
}

.section-head__main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.section-head__main .section-sub {
  margin: 0;
  max-width: 36rem;
}

.section-count {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-chip);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

/* ?? Clients (homepage top, mcpservers-style carousel) ?? */
.clients-section--home {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 1.25rem;
  border-top: 0;
  background: transparent;
}

.clients-head {
  margin-bottom: 1rem;
}

.clients-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.clients-view-all {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.clients-view-all:hover {
  color: var(--brand-hover);
}

.clients-carousel {
  position: relative;
}

.clients-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.15rem 0.15rem 0.65rem;
  margin: 0 -0.15rem;
  list-style: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.clients-track::-webkit-scrollbar {
  display: none;
}

.clients-track__item {
  flex: 0 0 clamp(13.5rem, 18vw, 16.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  scroll-snap-align: start;
  min-width: 0;
}

.client-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 8.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  background: var(--client-bg, linear-gradient(145deg, #1c1e26, #3a5570));
  border: 1px solid var(--border);
  box-shadow: none;
  transition: border-color 0.15s ease;
  isolation: isolate;
}

.client-tile--photo {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.55) 100%),
    var(--client-banner),
    var(--client-bg, linear-gradient(145deg, #1c1e26, #3a5570));
  background-size: cover;
  background-position: center;
}

.client-tile:hover {
  transform: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.client-tile__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.62) 100%),
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
  pointer-events: none;
}

.client-tile--photo .client-tile__shade {
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.72) 100%);
}

.client-tile__meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  width: 100%;
}

.client-tile__logo {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1f36;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.client-tile__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.2rem;
}

.client-tile__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.client-tile__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
}

.client-tile__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.clients-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 22, 30, 0.82);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.clients-nav--prev {
  left: -0.15rem;
  right: auto;
}

.clients-nav--next {
  right: -0.15rem;
  left: auto;
}

.clients-nav[hidden] {
  display: none;
}

.clients-nav:hover {
  background: rgba(40, 44, 58, 0.95);
}

.clients-nav:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 720px) {
  .clients-track__item {
    flex-basis: 12.5rem;
  }

  .client-tile {
    height: 8.5rem;
  }

  .clients-nav {
    display: none;
  }
}

.find-cta {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.find-cta__inner {
  max-width: 40rem;
  text-align: center;
  margin: 0 auto;
}

.find-cta h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.find-cta p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.find-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.featured-categories,
.popular-tags,
.faq-section {
  padding: 2.5rem 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.featured-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
  min-height: 8.5rem;
}

.featured-card:hover {
  border-color: var(--border-strong);
  transform: none;
}

.featured-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.featured-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  flex: 1;
}

.featured-card__meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.tag-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.65rem;
}

.tag-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.tag-card:hover {
  border-color: rgba(77, 107, 138, 0.35);
  transform: translateY(-1px);
}

.tag-card__hash {
  font-weight: 700;
  color: var(--brand-hover);
  font-size: 0.95rem;
}

.tag-card__count {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 48rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.15rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--text-dim);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "?";
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

/* ?? Stats bar ?? */
.stats-bar {
  padding: 0 0 1.5rem;
  margin-top: -0.5rem;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.stat-card:hover {
  border-color: var(--brand-ring);
  transform: translateY(-1px);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.stat-card__label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-inline {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--brand-hover);
}

/* ?? Category grid ?? */
.category-grid-section {
  padding: 2rem 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.category-card:hover {
  border-color: rgba(77, 107, 138, 0.35);
  transform: translateY(-2px);
}

.category-card__icon {
  font-size: 1.25rem;
  opacity: 0.85;
}

.category-card__name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.category-card__count {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ?? Clients section ?? */
.clients-section:not(.clients-section--home) {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.65rem;
}

.client-card {
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.client-card__name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.client-card__desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ?? Filters ?? */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0;
}

.filter-bar__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-right: 0.35rem;
}

.filter-chip {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

/* ?? Detail two-column ?? */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.detail-main {
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.server-install {
  margin: 0;
}

.server-install h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.server-install .btn--block {
  margin-top: 0.15rem;
}

.config-block--compact {
  font-size: 0.72rem;
  max-height: min(22rem, 55vh);
  overflow: auto;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  -webkit-overflow-scrolling: touch;
}

.detail-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.sidebar-card--primary {
  border-color: var(--border-strong);
  background: var(--bg-card);
}

.sidebar-card__hint {
  margin: -0.35rem 0 0.75rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.sidebar-card .btn + .btn {
  margin-top: 0.45rem;
}

.sidebar-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sidebar-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.sidebar-meta dt {
  color: var(--text-dim);
  font-weight: 600;
}

.sidebar-meta dd {
  margin: 0;
  color: var(--text);
  text-align: right;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem;
  box-shadow: none;
}

.sidebar-card h3 {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sidebar-links a {
  color: var(--brand-hover);
  font-size: 0.9rem;
  text-decoration: none;
}

.sidebar-links a:hover {
  text-decoration: underline;
}

.tags--sidebar {
  flex-wrap: wrap;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}

.related-item:hover {
  background: var(--bg-chip);
}

.related-item img {
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.related-item__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.related-item__name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.related-item__github {
  flex-shrink: 0;
  opacity: 0.9;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.code-block-header h2 {
  margin: 0;
}

.config-hint {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
}

.copy-code-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
}

.copy-code-btn:hover {
  color: var(--text);
  border-color: var(--brand-ring);
}

.server-misc .badge {
  vertical-align: middle;
}

.search-empty {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
    order: 2;
  }

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

@media (max-width: 480px) {
  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ?? Explore /servers ?? */
.explore-page {
  padding: 2.25rem 0 3.5rem;
}

.explore-hero {
  max-width: 40rem;
  margin: 0 0 2.75rem;
}

.explore-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.explore-hero p {
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.explore-hero__search {
  width: 100%;
  max-width: 36rem;
  margin: 0 0 0.85rem;
}

.explore-hero__browse {
  margin: 0 !important;
  font-size: 0.92rem !important;
  color: var(--text-dim) !important;
}

.explore-hero__browse a {
  color: var(--brand-hover);
  font-weight: 600;
  text-decoration: none;
}

.explore-hero__browse a:hover {
  text-decoration: underline;
}

.explore-section {
  margin-bottom: 2.85rem;
}

.explore-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.explore-section__head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.explore-section__more {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent, #7c8cff);
  text-decoration: none;
}

.explore-section__more:hover {
  text-decoration: underline;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 9.5rem;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.platform-card:hover {
  transform: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.platform-card__banner {
  display: block;
  height: 4.25rem;
  background: var(--platform-bg, linear-gradient(145deg, #1c1e26, #3a5570));
  background-size: cover;
  background-position: center;
}

.platform-card--photo .platform-card__banner {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%),
    var(--platform-banner),
    var(--platform-bg, linear-gradient(145deg, #1c1e26, #3a5570));
}

.platform-card__body {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
  margin-top: -1.15rem;
  position: relative;
  z-index: 1;
}

.platform-card__logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.platform-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
  display: block;
}

.platform-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding-top: 1.35rem;
}

.platform-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.platform-card__blurb {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.platform-card__meta {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.9;
}

.clients-directory .clients-directory__search {
  max-width: 28rem;
  margin: 0 0 1rem;
}

.clients-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.clients-cats::-webkit-scrollbar {
  display: none;
}

.clients-cats .filter-chip {
  flex: 0 0 auto;
  height: 2.05rem;
  padding: 0 0.75rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.filter-chip__count {
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.filter-chip.is-active .filter-chip__count {
  color: inherit;
  opacity: 0.8;
}

.clients-directory .clients-directory__search input {
  height: 2.75rem;
  font-size: 0.98rem;
  padding: 0 1rem;
}

.clients-directory .clients-directory__search button {
  height: 2.75rem;
  padding: 0 1.15rem;
  font-size: 0.92rem;
}

.clients-directory .clients-directory__grid {
  margin-top: 0.35rem;
}

.clients-directory .empty-state {
  margin: 2rem 0;
  color: var(--text-muted);
}

.explore-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.explore-cat-card {
  --cat-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  min-height: 11rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.22) 0%, rgba(8, 10, 14, 0.58) 100%),
    var(--cat-grad, linear-gradient(160deg, #1e293b, #0f172a));
  border: 1px solid var(--border);
  box-shadow: none;
  isolation: isolate;
  transition: border-color 0.2s ease;
}

.explore-cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.explore-cat-card:hover {
  transform: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.explore-cat-card:hover::before {
  opacity: 0.75;
}

.explore-cat-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.explore-cat-card__wash {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.explore-cat-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.explore-cat-card__icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.95);
  transition: background 0.35s var(--cat-ease), border-color 0.35s var(--cat-ease);
}

.explore-cat-card:hover .explore-cat-card__icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.explore-cat-card__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.explore-cat-card__name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #fff;
}

.explore-cat-card__blurb {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 28rem;
}

.explore-cat-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.7);
}

.explore-cat-card__cta {
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  transition: transform 0.35s var(--cat-ease), color 0.35s var(--cat-ease);
}

.explore-cat-card:hover .explore-cat-card__cta {
  color: #fff;
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .explore-cat-card,
  .explore-cat-card__icon,
  .explore-cat-card__cta,
  .explore-cat-card::before {
    transition: none;
  }

  .explore-cat-card:hover {
    transform: none;
  }

  .explore-cat-card:hover .explore-cat-card__cta {
    transform: none;
  }
}

.tag-cards--explore {
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
}

@media (max-width: 960px) {
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explore-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .platform-grid,
  .explore-category-grid {
    grid-template-columns: 1fr;
  }

  .explore-cat-card {
    min-height: 0;
  }
}

/* ?? Navbar Submit CTA ?? */
.btn--nav-submit {
  box-sizing: border-box;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.btn--nav-submit:hover,
.btn--nav-submit.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  filter: none;
}

.primary-nav .navbar-right {
  margin-left: 0.35rem;
  gap: 0.45rem;
}

@media (max-width: 1200px) {
  .primary-nav .btn--nav-submit {
    width: 100%;
    height: 2.85rem;
    font-size: 0.95rem;
    padding: 0 1rem;
    border-radius: var(--radius-sm);
    margin-top: 0.15rem;
  }
}

/* ?? Submit page ?? */
.submit-page {
  padding: 2rem 0 4.5rem;
  min-height: calc(100vh - 12rem);
  background:
    radial-gradient(ellipse 50% 38% at 50% -8%, rgba(77, 107, 138, 0.16), transparent 62%),
    var(--bg);
}

.submit-page__shell {
  max-width: 40rem;
}

.submit-card {
  padding: 2rem 1.65rem 1.85rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.submit-card h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.submit-card__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-hover);
}

.submit-card__lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.submit-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.submit-alert {
  margin: 0 0 1.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 93, 96, 0.35);
  background: rgba(232, 93, 96, 0.1);
  color: #ffb4b6;
  font-size: 0.9rem;
}

.submit-form {
  display: grid;
  gap: 1.15rem;
}

.submit-field {
  display: grid;
  gap: 0.4rem;
}

.submit-field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.submit-field input,
.submit-field select {
  width: 100%;
  height: 2.85rem;
  padding: 0 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.submit-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a5abb8' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
}

.submit-field input::placeholder {
  color: var(--text-dim);
}

.submit-field input:focus,
.submit-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.submit-field.has-error input,
.submit-field.has-error select {
  border-color: rgba(232, 93, 96, 0.65);
}

.submit-field__error {
  margin: 0;
  font-size: 0.82rem;
  color: #ffb4b6;
}

.submit-note {
  padding: 0.9rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.submit-premium {
  padding: 1rem 1.05rem 1.05rem;
  border: 1px dashed rgba(77, 107, 138, 0.45);
  border-radius: var(--radius-md);
  background: rgba(77, 107, 138, 0.06);
}

.submit-premium__check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.submit-premium__check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.submit-premium__fee {
  display: inline;
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.submit-premium__perks {
  margin: 0.85rem 0 0 1.75rem;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  display: grid;
  gap: 0.25rem;
}

.submit-form__submit {
  justify-self: start;
  min-width: 8.5rem;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .submit-card {
    padding: 1.5rem 1.15rem 1.35rem;
  }

  .submit-form__submit,
  .submit-card__actions .btn {
    width: 100%;
  }
}

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

.form-banner {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm, 0.5rem);
  font-size: 0.9rem;
  line-height: 1.4;
}

.form-banner--error {
  color: #fecaca;
  background: rgba(232, 93, 96, 0.14);
  border: 1px solid rgba(232, 93, 96, 0.35);
}

.form-banner--success {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn--google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.8rem 1.15rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #1f1f1f;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 0.65rem;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn--google:hover {
  background: #f7f8f9;
  color: #1f1f1f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn--google .btn__icon {
  flex-shrink: 0;
}

.btn--oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.65rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--oauth + .btn--oauth {
  margin-top: 0.65rem;
}

.auth-oauth .btn--google {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-oauth .btn--google:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--github {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn--github:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--discord {
  color: #fff;
  background: #5865f2;
  border: 1px solid #5865f2;
}

.btn--discord:hover {
  color: #fff;
  background: #4752c4;
  border-color: #4752c4;
}

.admin-login__oauth {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.admin-account-social {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem 1.2rem;
}

.admin-account-social__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.admin-account-social__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-account {
  display: grid;
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-account__identity {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.35rem 1.2rem 1.4rem;
  text-align: center;
}

.admin-account__avatar {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(122, 156, 191, 0.55), rgba(77, 107, 138, 0.95));
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.admin-account__name {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-account__email {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.admin-account__meta {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.admin-account__main,
.admin-account__form {
  display: grid;
  gap: 1rem;
}

.admin-account__actions {
  padding: 0 1.15rem 1.2rem;
}

.admin-account-provider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.18);
}

.admin-account-provider.is-linked {
  border-color: rgba(43, 182, 115, 0.28);
  background: rgba(43, 182, 115, 0.06);
}

.admin-account-provider__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  min-width: 0;
}

.admin-account-provider__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-account-provider__icon--discord {
  color: #7289da;
}

.admin-account-provider__title {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.admin-account-provider__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0;
}

.admin-account-provider__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.admin-account-provider__actions .btn--oauth {
  width: auto;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  font-size: 0.85rem;
}

.admin-account-provider__hint {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0.15rem;
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-account-provider__hint code {
  font-size: 0.72rem;
}

@media (max-width: 960px) {
  .admin-account {
    grid-template-columns: 1fr;
  }

  .admin-account__identity {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    align-items: center;
  }

  .admin-account__meta {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .admin-account-provider {
    grid-template-columns: 1fr;
  }

  .admin-account-provider__actions {
    justify-content: flex-start;
  }

  .admin-account__identity {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .admin-account__meta {
    justify-items: center;
  }
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.15rem 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-card {
  width: min(100%, 26rem);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #12151c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius-lg) + 2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.auth-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  text-align: center;
}

.auth-card__lead {
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-card__switch {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-card__switch a {
  color: #fff;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.turnstile-widget {
  margin: 0.15rem 0 0.25rem;
}

.admin-form .turnstile-widget,
.submit-form .turnstile-widget,
.advertise-form .turnstile-widget,
.review-compose .turnstile-widget,
.account-ticket-form .turnstile-widget {
  margin: 0.5rem 0 0.75rem;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
}

.auth-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.auth-field input {
  width: 100%;
  height: 2.85rem;
  padding: 0 0.9rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(122, 156, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(77, 107, 138, 0.18);
}

.auth-field input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-field.has-error input {
  border-color: rgba(248, 113, 113, 0.55);
}

.auth-field__error {
  margin: 0;
  color: #fca5a5;
  font-size: 0.8rem;
}

.auth-field__hint {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.btn--auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  height: 2.95rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0b0d12;
  background: #fff;
  border: 0;
}

.btn--auth-submit:hover {
  background: #f3f4f6;
  color: #0b0d12;
}

.submit-card--auth .auth-oauth,
.submit-auth-actions {
  display: grid;
  gap: 0.65rem;
}

.submit-auth-actions {
  margin-top: 0.15rem;
}

.review-compose__auth {
  display: grid;
  gap: 0.65rem;
  max-width: 22rem;
}

.account-page {
  padding: 1.75rem 0 3rem;
}

.account-page__shell {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.account-nav {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(14, 16, 22, 0.9);
}

.account-nav__label {
  margin: 0.55rem 0 0.2rem;
  padding: 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.account-nav__label:first-child {
  margin-top: 0;
}

.account-nav__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.account-nav__link svg {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0.9;
}

.account-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.account-nav__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.account-nav__user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-nav__user img,
.account-nav__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.account-nav__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand, #4d6b8a);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.account-nav__user > .account-nav__meta strong,
.account-nav__user > .account-nav__meta span {
  display: block;
  font-size: 0.82rem;
}

.account-nav__user > .account-nav__meta span {
  color: var(--text-dim);
  word-break: break-all;
}

.account-main__head {
  margin-bottom: 1.15rem;
}

.account-main__head h1 {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
}

.account-main__head p {
  margin: 0;
  color: var(--text-muted);
}

.account-main__foot {
  margin: 1rem 0 0;
}

.account-main__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.account-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
}

.account-eyebrow a {
  color: var(--text-muted);
  text-decoration: none;
}

.account-eyebrow a:hover {
  color: var(--text);
}

.account-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.account-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}

.account-card--wide {
  grid-column: 1 / -1;
}

.account-card__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
}

.account-card__hint {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.account-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.account-card__row .account-card__title {
  margin: 0;
}

.account-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
}

.account-meta > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.5rem;
}

.account-meta dt {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.account-meta dd {
  margin: 0;
  font-weight: 600;
}

.account-simple-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.account-simple-list li {
  display: grid;
  gap: 0.15rem;
}

.account-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.account-ticket-form textarea,
.advertise-field textarea {
  width: 100%;
  max-width: 100%;
  min-height: 7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: var(--bg-input, #121318);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.account-ticket-form textarea:focus,
.advertise-field textarea:focus {
  outline: none;
  border-color: rgba(122, 156, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(77, 107, 138, 0.18);
}

.ticket-thread {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ticket-message {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
}

.ticket-message--admin {
  border-color: rgba(122, 156, 191, 0.28);
  background: rgba(77, 107, 138, 0.1);
}

.ticket-message__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
}

.ticket-message__head time {
  color: var(--text-dim);
}

.ticket-message__body {
  color: var(--text);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-stat-card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(18, 21, 28, 0.85);
}

.admin-stat-card__label {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-stat-card__value {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.admin-stat-card__meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .account-cards,
  .admin-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .account-cards,
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }
}

.account-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.account-empty__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.account-empty__text {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.account-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.account-table {
  width: 100%;
  border-collapse: collapse;
}

.account-table th,
.account-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.account-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.account-table__muted {
  margin: 0.25rem 0 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.account-profile-form {
  max-width: 26rem;
}

.user-menu__identity {
  padding: 0.65rem 0.85rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.25rem;
}

.user-menu__identity strong,
.user-menu__identity span {
  display: block;
  font-size: 0.82rem;
}

.user-menu__identity span {
  color: var(--text-dim);
  word-break: break-all;
}

@media (max-width: 800px) {
  .account-page__shell {
    grid-template-columns: 1fr;
  }

  .account-nav {
    position: static;
  }
}

.review-compose--gate {
  text-align: left;
}

.review-compose__hint {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.review-compose__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.review-card__avatar--fallback,
.user-chip__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand, #4d6b8a);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.reviews-panel {
  display: grid;
  gap: 1rem;
}


/* ?? Admin panel ?? */
.page-admin {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(77, 107, 138, 0.16), transparent 55%),
    #0c0e14;
}

.page-admin--login {
  display: flex;
  flex-direction: column;
}

.admin-main {
  padding-bottom: 3rem;
}

.admin-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 18, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.admin-topbar__inner {
  display: flex;
  align-items: center;
  gap: 0.85rem 1rem;
  min-height: 3.65rem;
  padding-block: 0.55rem;
  flex-wrap: nowrap;
}

.admin-subbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-subbar__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 2.65rem;
  padding-block: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.admin-subbar__nav::-webkit-scrollbar {
  display: none;
}

.admin-subbar__link {
  flex: 0 0 auto;
  padding: 0.38rem 0.7rem;
  border-radius: 0.5rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.admin-subbar__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.admin-subbar__link.is-active {
  color: #fff;
  background: rgba(77, 107, 138, 0.38);
  box-shadow: inset 0 0 0 1px rgba(122, 156, 191, 0.24);
}

.admin-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.admin-topbar__logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-topbar__brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.admin-topbar__brand-name {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1rem;
}

.admin-topbar__brand-tag {
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(122, 156, 191, 0.18);
  color: #c9d8e8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-topbar__nav {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  margin-right: auto;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.admin-topbar__nav::-webkit-scrollbar {
  display: none;
}

.admin-topbar__link {
  flex: 0 0 auto;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.admin-topbar__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.admin-topbar__link.is-active {
  color: #fff;
  background: rgba(77, 107, 138, 0.45);
  box-shadow: inset 0 0 0 1px rgba(122, 156, 191, 0.28);
}

.admin-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  margin-left: 0.15rem;
}

.admin-topbar__site {
  display: inline-flex;
  align-items: center;
  height: 2.2rem;
  padding: 0 0.7rem;
  border-radius: 0.55rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.admin-topbar__site:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.admin-topbar__user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 12.5rem;
  min-width: 0;
  height: 2.2rem;
  padding: 0 0.55rem 0 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
}

.admin-topbar__user:hover,
.admin-topbar__user.is-active {
  border-color: rgba(122, 156, 191, 0.35);
  background: rgba(77, 107, 138, 0.18);
}

.admin-topbar__avatar {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(122, 156, 191, 0.7), rgba(77, 107, 138, 0.95));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.admin-topbar__user-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.admin-topbar__user-name {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-topbar__email {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-topbar__logout {
  margin: 0;
}

.admin-topbar__signout {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.2rem;
  padding: 0 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.admin-topbar__signout:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.page-admin .admin-shell {
  padding-top: 1.5rem;
  display: grid;
  gap: 1.15rem;
}

.page-admin .admin-shell > .form-banner {
  margin: 0;
}

.page-admin .admin-hero {
  padding: 1.35rem 1.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius-lg) + 2px);
  background: #12151c;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: visible;
}

.page-admin .admin-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.page-admin .admin-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.page-admin .admin-hero__title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.page-admin .admin-hero__lead {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 34rem;
  line-height: 1.45;
}

.page-admin .admin-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-admin .admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.page-admin .admin-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 8.25rem;
  padding: 1.05rem 1.1rem 1rem;
  background: #12151c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius-lg) + 2px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s ease, transform 0.15s var(--ease), background 0.15s ease;
}

.page-admin .admin-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(122, 156, 191, 0.7), transparent 70%);
  opacity: 0.7;
}

.page-admin a.admin-kpi:hover {
  border-color: rgba(122, 156, 191, 0.35);
  background: #151922;
  transform: translateY(-1px);
}

.page-admin .admin-kpi__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-admin .admin-kpi__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.page-admin .admin-kpi__value {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.page-admin .admin-kpi__foot {
  margin: auto 0 0;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.35;
}

.page-admin .admin-chart-card,
.page-admin .admin-table-card,
.page-admin .admin-settings__card {
  background: #12151c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius-lg) + 2px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.page-admin .admin-chart-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 1.05rem 1.15rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.16);
}

.page-admin .admin-chart-card__title {
  margin: 0;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-admin .admin-chart-card__desc {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.page-admin .admin-empty {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 2.4rem 1.25rem;
  text-align: center;
}

.page-admin .admin-empty__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.page-admin .admin-empty__text {
  margin: 0 0 0.65rem;
  max-width: 26rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.page-admin .admin-table-wrap {
  overflow-x: auto;
}

.page-admin .admin-table {
  width: 100%;
  border-collapse: collapse;
}

.page-admin .admin-table th,
.page-admin .admin-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.page-admin .admin-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.12);
}

.page-admin .admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.page-admin .admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-admin .admin-settings {
  display: grid;
  gap: 1rem;
}

.page-admin .admin-settings__card {
  padding: 0;
}

.page-admin .admin-settings__card .admin-chart-card__head {
  margin: 0;
}

.page-admin .admin-settings__grid {
  padding: 1.1rem 1.15rem 1.2rem;
}

.page-admin .admin-field input,
.page-admin .admin-field select,
.page-admin .admin-field textarea {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 0.55rem;
}

.page-admin .admin-field input:focus,
.page-admin .admin-field select:focus,
.page-admin .admin-field textarea:focus {
  border-color: rgba(122, 156, 191, 0.5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 107, 138, 0.16);
}

.page-admin .admin-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-login {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.admin-login__card {
  margin: 0 auto;
  max-width: 26rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #12151c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius-lg) + 2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.admin-login__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.admin-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.admin-form__submit {
  width: 100%;
  justify-content: center;
}

.admin-field {
  display: grid;
  gap: 0.35rem;
}

.admin-field__label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-muted);
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text, #e8eef8);
  font: inherit;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: rgba(122, 156, 191, 0.5);
  box-shadow: 0 0 0 3px rgba(77, 107, 138, 0.16);
}

.admin-field__hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.admin-field__hint code {
  font-size: 0.74rem;
  word-break: break-all;
}

.admin-settings {
  display: grid;
  gap: 1rem;
}

.admin-settings__card {
  padding: 1.15rem 1.2rem 1.25rem;
}

.admin-settings__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.admin-field--full {
  grid-column: 1 / -1;
}

.admin-settings__actions {
  display: flex;
  justify-content: flex-end;
}

.admin-sub__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.admin-sub__desc {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
  max-width: 36rem;
}

.admin-sub__link {
  display: inline-block;
  max-width: 28rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--brand-hover, #8aa4c4);
}

@media (max-width: 980px) {
  .page-admin .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .admin-settings__grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar__inner {
    flex-wrap: wrap;
    row-gap: 0.55rem;
  }

  .admin-topbar__nav {
    order: 3;
    width: 100%;
    flex: 1 1 100%;
  }

  .admin-topbar__right {
    margin-left: auto;
  }

  .admin-topbar__user-copy {
    display: none;
  }

  .admin-topbar__user {
    max-width: none;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    justify-content: center;
  }

  .admin-topbar__site {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-admin .admin-kpis {
    grid-template-columns: 1fr;
  }

  .page-admin .admin-kpi {
    min-height: 0;
  }

  .admin-topbar__brand-name {
    font-size: 0.95rem;
  }

  .admin-topbar__signout {
    padding: 0 0.65rem;
  }
}

/* —— Advertise / sponsors —— */
.page-advertise {
  overflow-x: clip;
}

.advertise {
  padding-bottom: 3.5rem;
}

.advertise-hero {
  position: relative;
  isolation: isolate;
  padding: 2.75rem 0 2.5rem;
  margin-bottom: 2.25rem;
  overflow: hidden;
}

.advertise-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #1a1b20 0%, #16171b 55%, var(--bg) 100%);
}

.advertise-hero__bg .welcome-hero__grid,
.advertise-hero__bg .welcome-hero__glow {
  position: absolute;
  inset: 0;
}

.advertise-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.9fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.advertise-hero__brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  animation: adHeroIn 0.55s var(--ease) both;
}

.advertise-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: adHeroIn 0.55s var(--ease) 0.06s both;
}

.advertise-hero__lead {
  margin: 0 0 1.35rem;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  animation: adHeroIn 0.55s var(--ease) 0.1s both;
}

.advertise-hero__copy .btn {
  animation: adHeroIn 0.55s var(--ease) 0.16s both;
}

.advertise-hero__visual {
  justify-self: stretch;
  animation: adHeroIn 0.6s var(--ease) 0.14s both;
}

.advertise-hero__visual .sponsor-card {
  padding: 1.15rem 1.2rem;
  background: rgba(18, 21, 28, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(0);
  transition: transform 0.35s var(--ease), border-color 0.2s ease;
}

.advertise-hero__visual .sponsor-card:hover {
  transform: translateY(-3px);
}

.advertise-hero__visual .sponsor-card__title {
  font-size: 1.1rem;
}

.advertise-hero__visual .sponsor-card__blurb {
  font-size: 0.92rem;
}

@keyframes adHeroIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.advertise-body {
  display: grid;
  gap: 2.75rem;
}

.advertise-section-head {
  margin-bottom: 1.15rem;
}

.advertise-section-head h2,
.advertise-how h2,
.advertise-request__form-card h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.advertise-section-head p,
.advertise-request__lead {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.advertise-how__steps {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.advertise-how__steps li {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-width: 0;
}

.advertise-how__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
}

.advertise-how__steps strong {
  font-size: 1rem;
  color: var(--text);
}

.advertise-how__steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.advertise-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.advertise-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  padding: 1.2rem 1.15rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius-lg) + 2px);
  background: #12151c;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.advertise-tier--featured {
  border-color: rgba(122, 156, 191, 0.42);
  background: linear-gradient(180deg, rgba(77, 107, 138, 0.12), #12151c 42%);
}

.advertise-tier.is-selected {
  border-color: rgba(154, 180, 205, 0.55);
}

.advertise-tier__badge {
  margin: 0;
  width: fit-content;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(77, 107, 138, 0.28);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.advertise-tier h3 {
  margin: 0;
  padding-right: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.25;
}

.advertise-tier__price {
  margin: 0.15rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.advertise-tier__amount {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}

.advertise-tier__period {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.advertise-tier__compare {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.advertise-tier__compare s {
  opacity: 0.8;
}

.advertise-tier__places {
  list-style: none;
  margin: 0.15rem 0 0.55rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  flex: 1;
}

.advertise-tier__places li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.advertise-tier__places li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(122, 156, 191, 0.75);
}

.advertise-tier .btn {
  width: 100%;
  margin-top: auto;
}

.advertise-request {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.advertise-request__form-card,
.advertise-preview {
  min-width: 0;
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius-lg) + 2px);
  background: #12151c;
}

.advertise-request__lead {
  margin: 0 0 1.1rem;
}

.advertise-form {
  display: grid;
  gap: 0.95rem;
}

.advertise-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.advertise-field--tiers {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.advertise-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.advertise-field input[type="text"],
.advertise-field input[type="url"],
.advertise-field input[type="email"],
.advertise-field input[type="file"],
.advertise-field select {
  width: 100%;
  max-width: 100%;
  min-height: 2.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: var(--bg-input, #0e1117);
  color: var(--text);
  font: inherit;
}

.advertise-field input[type="file"] {
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}

.advertise-field__hint {
  margin: 0.3rem 0 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.advertise-field input::placeholder {
  color: var(--text-dim);
}

.advertise-field input:focus,
.advertise-field select:focus {
  outline: none;
  border-color: rgba(122, 156, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(77, 107, 138, 0.18);
}

.advertise-field.has-error input,
.advertise-field.has-error select {
  border-color: rgba(232, 93, 96, 0.55);
}

.advertise-targeting {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.advertise-targeting.is-hidden,
.advertise-targeting[hidden] {
  display: none !important;
}

.advertise-targeting__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.advertise-targeting__lead {
  margin: -0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.advertise-tag-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 11rem;
  overflow: auto;
  padding: 0.15rem 0.1rem 0.35rem;
}

.advertise-tag-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.9rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.advertise-tag-pick:has(input:checked) {
  border-color: rgba(122, 156, 191, 0.45);
  background: rgba(77, 107, 138, 0.18);
  color: var(--text);
}

.advertise-tag-pick input {
  margin: 0;
  accent-color: #7a9cbf;
}

.advertise-tag-pick:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.advertise-field__error {
  margin: 0;
  color: #f0a0a2;
  font-size: 0.82rem;
}

.advertise-optional {
  color: var(--text-dim);
  font-weight: 500;
}

.advertise-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.advertise-tier-radios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.advertise-tier-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.advertise-tier-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.advertise-tier-radio span {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
}

.advertise-tier-radio:has(input:checked) {
  border-color: rgba(122, 156, 191, 0.55);
  background: rgba(77, 107, 138, 0.16);
}

.advertise-tier-radio:has(input:checked) span {
  color: #fff;
}

.advertise-request__note {
  margin: 0.2rem 0 0;
  color: var(--text-dim);
  font-size: 0.84rem;
  text-align: center;
}

.advertise-request__note a {
  color: var(--text-muted);
}

.advertise-preview {
  position: sticky;
  top: calc(var(--nav-h, 3.75rem) + 0.85rem);
}

.advertise-preview__label {
  margin: 0 0 0.75rem;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.advertise-preview__meta {
  margin: 0.85rem 0 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  min-width: 0;
  min-height: 100%;
  max-width: 100%;
  padding: 0.9rem 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.sponsor-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.sponsor-card--preview {
  cursor: default;
}

.sponsor-card--open {
  border-style: dashed;
  background: var(--bg-raised);
}

.sponsor-card--open .sponsor-card__mark {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--text-muted);
}

.sponsor-card__badge {
  align-self: flex-start;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(224, 184, 74, 0.14);
  color: var(--star, #e0b84a);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sponsor-card__media {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
}

.sponsor-card__logo,
.sponsor-card__mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.85rem;
}

.sponsor-card__logo {
  object-fit: cover;
  background: var(--bg-input);
}

.sponsor-card__logo[hidden],
.sponsor-card__mark[hidden] {
  display: none !important;
}

.sponsor-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #4d6b8a, #2f445c);
  color: #fff;
  font-weight: 750;
  font-size: 1.15rem;
  line-height: 1;
}

.sponsor-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
}

.sponsor-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sponsor-card__blurb {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sponsor-rail {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sponsor-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sponsor-rail__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.sponsor-rail__cta {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.sponsor-rail__cta:hover {
  color: var(--text);
}

.sponsor-rail__list {
  /* Shares .listings grid columns so ad cards match server card width. */
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.sponsor-rail .sponsor-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sponsor-rail--detail {
  margin-bottom: 1.15rem;
}

.sponsor-home {
  margin: -0.5rem auto 1.5rem;
}

.btn--nav-advertise {
  box-sizing: border-box;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.btn--nav-advertise.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1200px) {
  .primary-nav .btn--nav-advertise {
    width: 100%;
    height: 2.85rem;
    justify-content: center;
  }
}

@media (max-width: 960px) {
  .advertise-hero__inner,
  .advertise-how__steps,
  .advertise-tier-grid,
  .advertise-request,
  .advertise-field-row,
  .advertise-tier-radios {
    grid-template-columns: 1fr;
  }

  .advertise-hero {
    padding: 2rem 0 1.75rem;
  }

  .advertise-hero__visual {
    order: -1;
    max-width: 26rem;
  }

  .advertise-preview {
    position: static;
  }
}

@media (max-width: 640px) {
  .advertise-tier-radios {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .advertise-hero__brand,
  .advertise-hero h1,
  .advertise-hero__lead,
  .advertise-hero__copy .btn,
  .advertise-hero__visual,
  .advertise-hero__visual .sponsor-card {
    animation: none;
    transition: none;
  }
}

.submit-seo-points {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.submit-card__auth-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.submit-card--public {
  margin-bottom: 1rem;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-toolbar-search {
  display: flex;
  flex: 1 1 14rem;
  align-items: stretch;
  gap: 0.45rem;
  min-width: 14rem;
  max-width: 28rem;
}

.admin-toolbar-search__input {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  height: 2.35rem;
  margin: 0;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text, #e8eef8);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.25;
  appearance: none;
}

.admin-toolbar-search__input::placeholder {
  color: var(--text-dim, #8b97ab);
  opacity: 1;
}

.admin-toolbar-search__input:focus {
  outline: none;
  border-color: rgba(122, 156, 191, 0.5);
  box-shadow: 0 0 0 3px rgba(77, 107, 138, 0.16);
}

.admin-toolbar-search .btn {
  box-sizing: border-box;
  flex: 0 0 auto;
  height: 2.35rem;
  min-height: 2.35rem;
  padding-inline: 0.95rem;
  white-space: nowrap;
}

.admin-inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.admin-ads-system {
  margin-bottom: 1.15rem;
}

.admin-ads-system__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.admin-ads-system--off {
  border-color: rgba(232, 93, 96, 0.35);
  background: rgba(232, 93, 96, 0.06);
}

.admin-ads-system__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: var(--bg-input, #121318);
  color: var(--text);
  font-weight: 600;
  width: fit-content;
}

.admin-toggle input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #7a9cbf;
}

.admin-inline-form select {
  min-height: 2rem;
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0e1117;
  color: var(--text);
}

.admin-table__sub {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  word-break: break-all;
}

.advertise-paypal-test {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

.advertise-paypal-test__card {
  margin-top: 1rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}

.advertise-paypal-test__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.advertise-paypal-test__title {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.advertise-paypal-test__lead {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.advertise-paypal-test__meta {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.advertise-paypal-test__meta > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: baseline;
}

.advertise-paypal-test__meta dt {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.advertise-paypal-test__meta dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.advertise-paypal-test__meta code {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.advertise-paypal-test__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}


