.social-page {
  flex: 1 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 2%, rgba(100, 92, 246, 0.1), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(25, 190, 149, 0.09), transparent 28rem),
    #f7f8fc;
  color: #182235;
}

.social-main {
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 64px clamp(28px, 4.2vw, 80px) 88px;
}

.social-hero {
  margin-bottom: 36px;
}

.social-hero__eyebrow {
  margin: 0 0 8px;
  color: #5b55d6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.social-hero h1 + p {
  margin: 18px 0 0;
  color: #687386;
  font-size: 1.05rem;
  white-space: nowrap;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: clamp(20px, 2vw, 30px);
}

.social-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 63, 0.075);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 1px 2px rgba(25, 33, 50, 0.03),
    0 18px 48px rgba(38, 48, 75, 0.08);
  animation: social-card-enter 0.52s both;
  animation-delay: var(--social-card-delay);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  cursor: pointer;
}

.social-card:focus-visible {
  outline: 3px solid rgba(91, 85, 214, 0.28);
  outline-offset: 4px;
}

.social-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 85, 214, 0.16);
  box-shadow:
    0 2px 4px rgba(25, 33, 50, 0.04),
    0 26px 64px rgba(38, 48, 75, 0.13);
}

.social-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(31, 41, 63, 0.075);
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(86, 97, 120, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(86, 97, 120, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(86, 97, 120, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(86, 97, 120, 0.035) 75%),
    #f8f9fc;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.social-card__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.social-card:hover .social-card__visual img {
  transform: scale(1.035);
}

.social-card__visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 18, 31, 0.09), transparent 32%);
  pointer-events: none;
}

.social-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent),
    linear-gradient(145deg, #5b55d6, #16a885);
}

.social-card__badges {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.social-card__gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(18, 25, 39, 0.62);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.social-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 23px 17px;
  background:
    linear-gradient(180deg, rgba(250, 251, 255, 0.72), rgba(255, 255, 255, 0.98));
}

.social-card__gold {
  flex: 0 0 auto;
  color: #fff;
}

.social-card__gold span {
  color: #ffd254;
}

.social-card__goal {
  min-height: 0;
}

.social-card__label,
.social-card__progress-copy span {
  color: #969eae;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.social-card__goal h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: #202a3c;
  font-size: clamp(1.12rem, 1.25vw, 1.36rem);
  font-weight: 760;
  line-height: 1.42;
  letter-spacing: -0.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.social-card__progress {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}

.social-card__progress-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.social-card__progress-copy strong {
  color: #4d48ca;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1;
}

.social-card__progress-copy strong b {
  font-size: 1.72rem;
  font-weight: 820;
  letter-spacing: -0.055em;
}

.social-card__progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceef4;
}

.social-card__progress-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #625cf1 0%, #4d74e8 48%, #20b995 100%);
  box-shadow: 0 0 14px rgba(81, 92, 225, 0.24);
}

.social-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 13px;
}

.social-card__nickname {
  overflow: hidden;
  color: #a0a7b5;
  font-size: 0.76rem;
  font-weight: 550;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-pagination {
  display: flex;
  justify-content: center;
  padding: 36px 0 4px;
}

.social-pagination[hidden] {
  display: none;
}

.social-load-more {
  min-width: 150px;
  padding: 11px 22px;
  border: 1px solid rgba(91, 85, 214, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #4b46bf;
  font-weight: 760;
  box-shadow: 0 10px 28px rgba(38, 48, 75, 0.08);
}

.social-load-more:hover:not(:disabled) {
  border-color: rgba(91, 85, 214, 0.32);
  background: #fff;
  transform: translateY(-1px);
}

.social-load-more:disabled {
  cursor: wait;
  opacity: 0.65;
}

.social-status {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.social-status[hidden] {
  display: none;
}

.social-status--empty,
.social-status--error {
  min-height: 260px;
  border: 1px solid rgba(31, 41, 63, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(38, 48, 75, 0.05);
}

.social-status h2,
.social-status p {
  margin: 0;
}

.social-status p {
  max-width: 520px;
  color: #707b8d;
}

.social-status--error h2 {
  color: #b42318;
}

.social-loader {
  width: 30px;
  height: 30px;
  border: 3px solid #e2e3f2;
  border-top-color: #5b55d6;
  border-radius: 50%;
  animation: social-spin 0.8s linear infinite;
}

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

@keyframes social-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (max-width: 720px) {
  .social-main {
    padding: 34px 12px 60px;
  }

  .social-hero {
    margin-bottom: 28px;
  }

  .social-hero h1 + p {
    white-space: normal;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .social-card {
    display: block;
    min-height: 0;
  }

  .social-card__visual {
    aspect-ratio: 16 / 9;
  }
}
