/**
 * Partners page (partners.php).
 */
.partners-ambient {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12rem;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.partners-ambient svg {
  width: 100%;
  height: 100%;
  opacity: 0.42;
  filter: blur(48px);
}

main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partners-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem 3rem;
  padding-top: clamp(3rem, 12vh, 5.5rem);
  padding-bottom: 4rem;
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
@media (max-width: 60rem) {
  .partners-shell { flex-direction: column; align-items: center; }
  .partners-aside { position: relative !important; top: 0 !important; text-align: center; align-items: center; }
  .partners-aside p { text-align: center; max-width: 26rem; }
}

.partners-aside {
  position: sticky;
  top: 5.5rem;
  flex: 1 1 16rem;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.partners-aside h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--paper);
  line-height: 1.15;
}
.partners-aside > p {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(250, 245, 247, 0.65);
  font-weight: 500;
  max-width: 28rem;
}
.partners-aside > p strong {
  color: var(--paper);
  font-weight: 700;
}

.partners-rule {
  margin: 1.5rem 0;
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-hot), transparent);
  opacity: 0.85;
}

.partner-program {
  width: 100%;
  max-width: 23rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}
.partner-program__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red-hot);
  font-weight: 600;
  font-size: 0.9rem;
}
.partner-program__head svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.partner-program p {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--paper);
  font-weight: 500;
}
.partner-program em {
  font-style: italic;
  color: #d4d4d4;
  font-weight: 600;
}
.partner-program a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.65rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.65rem;
  background: linear-gradient(160deg, #737373 0%, #525252 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  transition: filter 0.2s;
}
.partner-program a:hover { filter: brightness(1.08); }

.partners-cards {
  flex: 1 1 20rem;
  max-width: 28rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
@media (max-width: 60rem) {
  .partners-cards { margin-top: 2rem; max-width: 32rem; }
}

.dc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 16rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.dc-card__dc-ico {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 3;
  opacity: 0.45;
  pointer-events: none;
}
.dc-card__dc-ico svg { width: 0.95rem; height: 0.95rem; display: block; color: var(--paper); }
.dc-card__banner {
  position: relative;
  min-height: 6rem;
  background: linear-gradient(125deg, #450a0a 0%, #881337 42%, #be123c 100%);
  overflow: hidden;
}
.dc-card__banner--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dc-card__banner--fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 65%);
  pointer-events: none;
}
.dc-card__banner img {
  width: 100%;
  height: 6rem;
  object-fit: cover;
  display: block;
  opacity: 0.95;
}
.dc-card__banner-fallback-icon {
  position: relative;
  z-index: 1;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 0.75rem;
  opacity: 0.35;
  filter: blur(1px);
}
.dc-card__body-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 1rem 0.75rem;
  padding-top: 0;
}
.dc-card__avatar {
  position: absolute;
  left: 1.15rem;
  top: -1.85rem;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 10, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}
.dc-card__avatar img {
  width: 3.35rem;
  height: 3.35rem;
  object-fit: cover;
  border-radius: 0.65rem;
}
.dc-card__avatar--ph {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--paper);
}
.dc-card__meta {
  margin-top: 2.35rem;
  padding-right: 1.5rem;
}
.dc-card__title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.dc-card__title-row h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.25;
}
.dc-card__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.92;
}
.dc-card__badge svg {
  width: 1.375rem;
  height: 1.375rem;
  display: block;
}
.dc-card__invite {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(250, 245, 247, 0.45);
  letter-spacing: 0.02em;
}
.dc-card__desc {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(250, 245, 247, 0.78);
  font-weight: 500;
}
.dc-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  margin-top: 0.55rem;
}
.dc-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(250, 245, 247, 0.88);
}
.dc-card__stat span.muted { opacity: 0.65; font-weight: 500; }
.dc-card__dot-online {
  position: relative;
  width: 0.45rem;
  height: 0.45rem;
  flex-shrink: 0;
}
.dc-card__dot-online::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #22c55e;
  animation: dc-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.65;
}
.dc-card__dot-online::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #16a34a;
}
.dc-card__dot-muted {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(250, 245, 247, 0.45);
  flex-shrink: 0;
}
.dc-card__dot-offline {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
@keyframes dc-ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}
.dc-card__err {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #d4d4d4;
  font-weight: 500;
}
.dc-card__foot {
  margin-top: auto;
  padding: 0.65rem 1rem 1rem;
  display: flex;
  align-items: center;
}
.dc-card__join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--discord-join);
  color: #fff;
  transition: background 0.2s;
}
.dc-card__join:hover { background: var(--discord-join-hover); }
