.pd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 186px));
  justify-content: center;
  gap: 14px;
}

.pd-card {
  position: relative;
  min-height: 268px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(214, 44, 255, .10);
  border-radius: 14px;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(20, 20, 28, .98), rgba(13, 13, 20, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .03),
    0 14px 30px rgba(0, 0, 0, .18),
    0 0 14px rgba(107, 63, 255, .05);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease,
    filter .22s ease,
    opacity .22s ease;
  filter: saturate(.88) brightness(.94);
}

.pd-card:hover {
  border-color: rgba(238, 41, 255, .18);
  transform: none;
  background: linear-gradient(180deg, rgba(22, 21, 31, .98), rgba(15, 15, 23, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 16px 36px rgba(0, 0, 0, .24),
    0 0 18px rgba(234, 28, 255, .07);
  filter: saturate(.94) brightness(.97);
}

.pd-card--top {
  border: 1px solid rgba(0, 255, 255, .34);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 39, 201, .08), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(0, 255, 255, .12), transparent 34%),
    linear-gradient(180deg, rgba(24, 22, 34, .98), rgba(14, 13, 22, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 16px 34px rgba(0, 0, 0, .22),
    0 0 24px rgba(0, 255, 255, .16),
    0 0 34px rgba(0, 255, 255, .08),
    0 -1px 0 rgba(255, 255, 255, .03);
  filter: saturate(1.16) brightness(1.07);
}

.pd-card--top::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, .08) 16%, rgba(0, 255, 255, .48) 50%, rgba(0, 255, 255, .08) 84%, transparent 100%);
}

.pd-card--top:hover,
.pd-card--top:active,
.pd-card--top:focus-visible {
  border-color: rgba(0, 255, 255, .48);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 39, 201, .10), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(0, 255, 255, .14), transparent 34%),
    linear-gradient(180deg, rgba(26, 24, 37, .98), rgba(15, 14, 25, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 18px 34px rgba(0, 0, 0, .24),
    0 0 28px rgba(0, 255, 255, .22),
    0 0 38px rgba(0, 255, 255, .12);
  filter: saturate(1.18) brightness(1.09);
}

@property --pd-vip-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.pd-card--top-super {
  border-color: rgba(0, 255, 255, .42);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 39, 201, .14), transparent 34%),
    radial-gradient(circle at 4% 96%, rgba(0, 255, 255, .18), transparent 36%),
    linear-gradient(180deg, rgba(25, 21, 36, .98), rgba(13, 18, 25, .98));
}

.pd-card-vip-edge {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  border: 2px solid rgba(0, 255, 255, .24);
  box-shadow:
    0 0 8px rgba(0, 255, 255, .10),
    inset 0 0 0 1px rgba(0, 255, 255, .04);
  animation: pdVipBorderSweep 3.4s linear infinite;
}

@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .pd-card-vip-edge {
    border: 0;
    padding: 2px;
    background:
      conic-gradient(
        from var(--pd-vip-border-angle, 0deg),
        transparent 0deg 238deg,
        rgba(0, 255, 255, .08) 258deg,
        rgba(0, 255, 255, .28) 284deg,
        rgba(0, 255, 255, .88) 308deg,
        rgba(255, 255, 255, .92) 320deg,
        rgba(0, 255, 255, .46) 334deg,
        rgba(0, 255, 255, .12) 350deg,
        transparent 360deg
      );
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    mask-composite: exclude;
    box-shadow:
      0 0 10px rgba(0, 255, 255, .26),
      0 0 20px rgba(0, 255, 255, .14),
      0 0 30px rgba(0, 255, 255, .08);
  }
}

.pd-card:not(.pd-card--top) .pd-card-logo>img {
  filter: saturate(.84) brightness(.93);
}

.pd-card--top .pd-card-logo>img {
  filter: saturate(1.12) brightness(1.05);
}

.pd-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .28;
  background:
    linear-gradient(118deg, transparent 0%, rgba(255, 255, 255, .10) 45%, transparent 60%);
  background-size: 230% 100%;
  animation: pdInnerShimmer 5.8s ease-in-out infinite;
}

.pd-card-main {
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pd-card-logo {
  position: relative;
  order: 2;
  margin: 4px 8px 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(36, 36, 41, .98);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

.pd-card-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 0%, rgba(255, 255, 255, .10) 46%, transparent 62%);
  background-size: 220% 100%;
  opacity: .22;
  animation: pdInnerShimmer 5.8s ease-in-out infinite;
}

.pd-card-logo>img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transform: scale(1.02);
  display: block;
}

.pd-card-info {
  order: 1;
  box-sizing: border-box;
  min-height: 76px;
  padding: 9px 12px 5px;
}

.pd-card-title {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.16;
  overflow-wrap: anywhere;
  min-height: 51px;
}

.pd-card-title-main {
  color: #fff;
  font-size: 16px;
  font-weight: 580;
  display: flex;
  align-items: center;
  min-height: 37px;
  line-height: 1.16;
  max-height: 37px;
  overflow: hidden;
}

.pd-card-title-category {
  color: #00FFFF;
  font-size: 12px;
  font-weight: 560;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 8px rgba(0, 255, 255, .10);
}

.pd-card--top .pd-card-title-category {
  color: #00FFFF;
  text-shadow: 0 0 10px rgba(0, 255, 255, .16);
}

.pd-card-meta {
  min-height: 18px;
  margin-top: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pd-card-meta:empty {
  display: flex;
}

.pd-card-category {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.2;
}

.pd-card-status {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #2de16f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-card-desc {
  display: -webkit-box;
  margin: 8px 0 0;
  color: rgba(220, 224, 245, .72);
  font-size: 12px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.pd-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.pd-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: rgba(240, 242, 255, .68);
  font-size: 10px;
  font-weight: 560;
}

.pd-card-links {
  margin-top: auto;
  display: flex;
  gap: 7px;
  padding: 8px 10px 10px;
  position: relative;
  z-index: 2;
}

.pd-card-icon {
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(242, 32, 255, .26);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 32, 255, .22), transparent 42%),
    linear-gradient(180deg, rgba(126, 18, 132, .72), rgba(196, 0, 205, .68));
  color: #fff;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  box-shadow:
    0 0 8px rgba(242, 32, 255, .12);
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.pd-card-icon:hover {
  border-color: rgba(242, 32, 255, .36);
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 32, 255, .28), transparent 42%),
    linear-gradient(180deg, rgba(144, 22, 150, .78), rgba(214, 0, 224, .74));
  color: #fff;
  transform: none;
}

#top-services {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.pd-empty-box {
  padding: 15px;
  border: 1px dashed rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.pd-card-badge {
  position: absolute;
  top: 7px;
  left: 9px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  padding: 0 8px;
  border: 1px solid rgba(0, 255, 255, .58);
  border-radius: 999px;
  background: rgba(8, 22, 30, .92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 0 10px rgba(0, 255, 255, .26),
    0 0 18px rgba(0, 255, 255, .12);
  overflow: hidden;
  transform-origin: center;
  animation: pdTopBadgeGlow 4.8s ease-in-out infinite, pdVipBadgeBreath 3.6s ease-in-out infinite;
}

.pd-card--top-super .pd-card-badge {
  border-color: rgba(0, 255, 255, .88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    0 0 14px rgba(0, 255, 255, .42),
    0 0 28px rgba(0, 255, 255, .24);
  animation: pdSuperVipBadgePulse 2.35s ease-in-out infinite;
}

.pd-card-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg,
      transparent 0%,
      transparent 34%,
      rgba(255, 255, 255, .02) 46%,
      rgba(0, 255, 255, .18) 52%,
      rgba(255, 255, 255, .02) 58%,
      transparent 72%,
      transparent 100%);
  transform: translateX(-140%);
  animation: pdVipBadgeSweep 5.2s ease-in-out infinite;
  pointer-events: none;
}

.pd-card-badge-vip {
  display: none;
}

.pd-card-badge-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00FFFF;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .06em;
  line-height: 1;
  position: relative;
  z-index: 1;
  text-shadow:
    0 0 10px rgba(0, 255, 255, .26);
}

.pd-card-icon-image {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.pd-card-icon-image--tor {
  width: 23px;
  height: 23px;
}

.pd-card-icon-image--custom {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.pd-card-link-custom {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
}

.pd-card-icon:has(.pd-card-link-custom) {
  gap: 4px;
  padding: 0 6px;
}

.pd-card-badge-mark {
  font-size: 11px !important;
  line-height: 1;
}

.pd-card-badge img {
  display: none;
}

@keyframes pdVipCardBreath {

  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .04),
      0 16px 34px rgba(0, 0, 0, .22),
      0 0 24px rgba(0, 255, 255, .16),
      0 0 34px rgba(0, 255, 255, .08),
      0 -1px 0 rgba(255, 255, 255, .03);
    filter: saturate(1.14) brightness(1.06);
  }

  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .05),
      0 18px 38px rgba(0, 0, 0, .24),
      0 0 32px rgba(0, 255, 255, .22),
      0 0 48px rgba(0, 255, 255, .12),
      0 -1px 0 rgba(255, 255, 255, .03);
    filter: saturate(1.2) brightness(1.1);
  }
}

@keyframes pdVipBorderShift {
  0% {
    border-color: rgba(0, 255, 255, .48);
  }

  50% {
    border-color: rgba(255, 39, 201, .42);
  }

  100% {
    border-color: rgba(0, 255, 255, .48);
  }
}

@keyframes pdVipBorderSweep {
  from {
    --pd-vip-border-angle: 0deg;
    border-color: rgba(0, 255, 255, .24);
  }

  to {
    --pd-vip-border-angle: 360deg;
    border-color: rgba(0, 255, 255, .52);
  }
}

@media (hover: none) {

  .pd-card:hover,
  .pd-card-icon:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .pd-cards {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  }
}

@media (max-width: 520px) {
  .pd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pd-card {
    min-height: 226px;
    border-radius: 12px;
  }

  .pd-card-logo {
    margin: 3px 6px 0;
    border-radius: 10px;
  }

  .pd-card-info {
    min-height: 68px;
    padding: 7px 8px 4px;
  }

  .pd-card-title {
    font-size: 12px;
    min-height: 45px;
  }

  .pd-card-title-main {
    font-size: 14px;
    min-height: 32px;
    max-height: 32px;
  }

  .pd-card-title-category {
    font-size: 11px;
  }

  .pd-card-badge {
    top: 6px;
    left: 6px;
    min-width: 31px;
    height: 17px;
    padding: 0 7px;
  }

  .pd-card-badge-top {
    font-size: 8px;
  }

  .pd-card-category {
    font-size: 10px;
  }

  .pd-card-meta {
    margin-top: 2px;
  }

  .pd-card-desc {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .pd-card-links {
    gap: 6px;
    padding: 7px 8px 9px;
  }

  .pd-card-icon {
    height: 33px;
    border-radius: 8px;
    font-size: 11px;
  }

  .pd-card-icon-image {
    width: 18px;
    height: 18px;
  }

  .pd-card-icon-image--tor {
    width: 21px;
    height: 21px;
  }
}

@keyframes pdInnerShimmer {

  0%,
  100% {
    --pd-shine-x: 14%;
    background-position: -120% 0, 0% 20%;
    opacity: .28;
  }

  50% {
    --pd-shine-x: 72%;
    background-position: 140% 0, 70% 10%;
    opacity: .48;
  }
}

@keyframes pdCrownShine {
  0% {
    background-position: 130% 50%;
  }

  100% {
    background-position: -120% 50%;
  }
}

@keyframes pdTopBadgeGlow {

  0%,
  100% {
    opacity: .96;
    transform: scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .05),
      0 0 8px rgba(0, 255, 255, .12);
  }

  50% {
    opacity: .99;
    transform: scale(1.02);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .08),
      0 0 12px rgba(0, 255, 255, .20);
  }
}

@keyframes pdVipBadgeBreath {

  0%,
  100% {
    filter: brightness(1) saturate(1);
  }

  50% {
    filter: brightness(1.16) saturate(1.16);
  }
}

@keyframes pdVipBadgeSweep {

  0%,
  18% {
    transform: translateX(-140%);
    opacity: 0;
  }

  28% {
    opacity: .45;
  }

  50% {
    transform: translateX(0%);
    opacity: .72;
  }

  68% {
    opacity: .42;
  }

  82%,
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

@keyframes pdSuperVipBadgePulse {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(1) saturate(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .07),
      0 0 12px rgba(0, 255, 255, .34),
      0 0 24px rgba(0, 255, 255, .18);
  }

  50% {
    transform: scale(1.13);
    filter: brightness(1.34) saturate(1.26);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .10),
      0 0 20px rgba(0, 255, 255, .58),
      0 0 38px rgba(0, 255, 255, .30);
  }
}
