/* ╔═══════════════════════════════════════════════════════════════════
   ║  PRADUMNA_FX — Plugins & Scripts Master Liquid Glass Card System
   ║  Visual Source of Truth: "C:\Users\Pradhuman Mali\Desktop\PradumnaFX\Card Desgine"
   ║  Variants:
   ║    1. ps-card--apple-ae           (macOS + After Effects)
   ║    2. ps-card--apple-pr           (macOS + Premiere Pro)
   ║    3. ps-card--apple-ae-pr        (macOS + After Effects + Premiere Pro)
   ║    4. ps-card--win-ae             (Windows + After Effects)
   ║    5. ps-card--win-pr             (Windows + Premiere Pro)
   ║    6. ps-card--win-ae-pr          (Windows + After Effects + Premiere Pro)
   ║    7. ps-card--win-apple-ae       (Windows + macOS + After Effects)
   ║    8. ps-card--win-apple-pr       (Windows + macOS + Premiere Pro)
   ║    9. ps-card--win-apple-ae-pr    (Windows + macOS + After Effects + Premiere Pro)
   ║  Strictly scoped to .plugins-scripts-page .ps-card
   ║  Optimized for 120Hz/60fps High Performance Rendering
   ╚═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   1. MASTER CARD CONTAINER & GLASS MATERIAL
   ═══════════════════════════════════════════════════════ */
.plugins-scripts-page .ps-card {
  width: 100%;
  max-width: 100%;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  contain: layout style;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 248, 250, 0.74) 55%, rgba(238, 239, 243, 0.80));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 34px 90px rgba(14, 18, 28, 0.15),
    0 10px 28px rgba(14, 18, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(0, 0, 0, 0.025);
  /* 120fps: Reduced from blur(28px) → 12px at idle — saves >60% fill-rate */
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  isolation: isolate;
  transform: translateZ(0);
  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    box-shadow .45s cubic-bezier(.22, 1, .36, 1),
    border-color .35s ease;
}

/* Hover-only GPU layer promotion — zero permanent compositor overhead */
.plugins-scripts-page .ps-card:hover {
  will-change: transform;
}

.plugins-scripts-page .ps-card:not(:hover) {
  will-change: auto;
}

.plugins-scripts-page .ps-card:hover {
  transform: translateY(-8px) scale(1.008);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 44px 105px rgba(14, 18, 28, 0.20),
    0 16px 36px rgba(14, 18, 28, 0.11),
    0 0 0 1px rgba(171, 190, 255, 0.22),
    0 0 40px rgba(150, 173, 255, 0.16),
    inset 0 1px 0 #ffffff;
}

/* Atmospheric card backdrop aura */
.plugins-scripts-page .ps-card::after {
  content: "";
  position: absolute;
  inset: 12% 10% -12%;
  z-index: -2;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 35%, rgba(129, 158, 255, 0.16), transparent 52%),
    radial-gradient(circle at 70% 60%, rgba(190, 198, 255, 0.12), transparent 42%);
  filter: blur(36px);
  opacity: 0.65;
  pointer-events: none;
}

/* Liquid Sheen Top Overlay */
.plugins-scripts-page .ps-card .liquid-sheen,
.plugins-scripts-page .ps-card .ps-card__liquid-sheen {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.plugins-scripts-page .ps-card .liquid-sheen::after,
.plugins-scripts-page .ps-card .ps-card__liquid-sheen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    100deg,
    transparent 0 44px,
    rgba(255, 255, 255, 0.016) 45px,
    transparent 46px 92px
  );
  opacity: 0.55;
}

/* Viewport containment for below-the-fold cards */
.plugins-scripts-page #plugin-grid .grid .ps-card:nth-child(n+7) {
  content-visibility: auto;
  contain-intrinsic-size: 0 540px;
}

/* ═══════════════════════════════════════════════════════
   2. PREVIEW AREA & CINEMATIC OVERLAYS
   ═══════════════════════════════════════════════════════ */
.plugins-scripts-page .ps-card .preview,
.plugins-scripts-page .ps-card .ps-card__preview {
  position: relative;
  width: 100%;
  height: 268px;
  min-height: 230px;
  overflow: hidden;
  background: #0e0f12;
  border-radius: 33px 33px 0 0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16);
  isolation: isolate;
}

.plugins-scripts-page .ps-card .main-preview,
.plugins-scripts-page .ps-card .ps-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.015);
  filter: saturate(0.94) contrast(1.02) brightness(1.015);
  transition:
    transform .75s cubic-bezier(.22, 1, .36, 1),
    filter .5s ease;
}

.plugins-scripts-page .ps-card:hover .main-preview,
.plugins-scripts-page .ps-card:hover .ps-card__img {
  transform: scale(1.05);
  filter: saturate(1.02) contrast(1.035) brightness(1.02);
}

/* Cinematic lighting layers */
.plugins-scripts-page .ps-card .preview::before,
.plugins-scripts-page .ps-card .ps-card__preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.20) 0%, transparent 22%, transparent 76%, rgba(133, 165, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%, rgba(0, 0, 0, 0.22) 100%);
  opacity: 0.9;
}

.plugins-scripts-page .ps-card .preview::after,
.plugins-scripts-page .ps-card .ps-card__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.55), transparent 18%),
    radial-gradient(circle at 92% 10%, rgba(181, 197, 255, 0.16), transparent 22%),
    linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.18));
}

/* Preview reflection sweep on hover */
.plugins-scripts-page .ps-card .preview-reflection,
.plugins-scripts-page .ps-card .ps-card__reflection {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg,
    transparent 28%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(255, 255, 255, 0.24) 48%,
    rgba(255, 255, 255, 0.07) 54%,
    transparent 68%);
  transform: translate3d(-120%, 0, 0);
}

.plugins-scripts-page .ps-card:hover .preview-reflection,
.plugins-scripts-page .ps-card:hover .ps-card__reflection {
  opacity: 1;
  animation: psPreviewSweep .85s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes psPreviewSweep {
  from { transform: translate3d(-120%, 0, 0); }
  to { transform: translate3d(120%, 0, 0); }
}

/* ═══════════════════════════════════════════════════════
   3. FLOATING STATUS BADGE
   ═══════════════════════════════════════════════════════ */
.plugins-scripts-page .ps-card .free,
.plugins-scripts-page .ps-card .ps-card__badge-free {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  color: #111215;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 249, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 20px rgba(206, 216, 255, 0.24),
    inset 0 1px 0 #ffffff;
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}

.plugins-scripts-page .ps-card:hover .free,
.plugins-scripts-page .ps-card:hover .ps-card__badge-free {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20), 0 0 24px rgba(195, 209, 255, 0.34), inset 0 1px 0 #ffffff;
}

.plugins-scripts-page .ps-card .free-dot,
.plugins-scripts-page .ps-card .ps-card__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20a84f;
  box-shadow: 0 0 0 3px rgba(32, 168, 79, 0.14), 0 0 12px rgba(32, 168, 79, 0.35);
}

/* ═══════════════════════════════════════════════════════
   4. CONTENT SECTION & TYPOGRAPHY
   ═══════════════════════════════════════════════════════ */
.plugins-scripts-page .ps-card .content,
.plugins-scripts-page .ps-card .ps-card__content {
  position: relative;
  padding: 26px 24px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 248, 246, 0.97));
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.plugins-scripts-page .ps-card .content::before,
.plugins-scripts-page .ps-card .ps-card__content::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 255, 0.34), rgba(255, 255, 255, 0.96), transparent);
  opacity: 0.9;
}

.plugins-scripts-page .ps-card .title,
.plugins-scripts-page .ps-card .ps-card__title {
  margin: 0 0 12px 0;
  font-size: clamp(19px, 1.35vw, 21.5px);
  line-height: 1.16;
  font-weight: 750;
  letter-spacing: -0.045em;
  color: #111215;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plugins-scripts-page .ps-card .desc,
.plugins-scripts-page .ps-card .ps-card__desc {
  margin: 0 0 20px 0;
  color: #72747c;
  font-size: clamp(14px, 1vw, 15.5px);
  line-height: 1.5;
  letter-spacing: -0.022em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.5em * 2);
}

/* ═══════════════════════════════════════════════════════
   5. METADATA ROW & PLATFORM ICONS
   ═══════════════════════════════════════════════════════ */
.plugins-scripts-page .ps-card .meta,
.plugins-scripts-page .ps-card .ps-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 58px;
}

.plugins-scripts-page .ps-card .logo-pair,
.plugins-scripts-page .ps-card .ps-card__logos {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  min-width: 0;
  flex-shrink: 0;
}

.plugins-scripts-page .ps-card .platform-icon,
.plugins-scripts-page .ps-card .ps-card__platform-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(228, 236, 250, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 7px 16px rgba(53, 72, 112, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

.plugins-scripts-page .ps-card .platform-icon img,
.plugins-scripts-page .ps-card .ps-card__platform-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), filter .3s ease;
}

.plugins-scripts-page .ps-card .platform-icon:hover,
.plugins-scripts-page .ps-card .ps-card__platform-icon:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 20px rgba(53, 72, 112, 0.15), inset 0 1px 0 #ffffff;
}

.plugins-scripts-page .ps-card .platform-icon:hover img,
.plugins-scripts-page .ps-card .ps-card__platform-icon:hover img {
  transform: scale(1.06);
}

/* Master-spec drop shadows for brand logos */
.plugins-scripts-page .ps-card .apple-logo,
.plugins-scripts-page .ps-card .ps-card__icon-apple {
  filter: drop-shadow(0 3px 5px rgba(20, 25, 35, 0.20));
}

.plugins-scripts-page .ps-card .aftereffects-logo,
.plugins-scripts-page .ps-card .ps-card__icon-ae {
  filter: drop-shadow(0 3px 6px rgba(42, 60, 170, 0.22));
}

.plugins-scripts-page .ps-card .premiere-logo,
.plugins-scripts-page .ps-card .ps-card__icon-pr {
  filter: drop-shadow(0 3px 6px rgba(31, 73, 170, 0.22));
}

.plugins-scripts-page .ps-card .windows-platform-logo,
.plugins-scripts-page .ps-card .ps-card__icon-win {
  filter: drop-shadow(0 3px 5px rgba(20, 70, 160, 0.20));
}

/* ═══════════════════════════════════════════════════════
   6. PREMIUM LIQUID GLASS OPEN BUTTON
   ═══════════════════════════════════════════════════════ */
.plugins-scripts-page .ps-card .open,
.plugins-scripts-page .ps-card .ps-card__action {
  width: 166px;
  height: 58px;
  flex: 0 0 166px;
  margin-left: auto;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: #1b1d22;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(232, 237, 247, 0.42) 48%, rgba(255, 255, 255, 0.56));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(119, 137, 173, 0.12),
    0 12px 26px rgba(44, 57, 84, 0.11),
    0 0 0 1px rgba(177, 197, 239, 0.14),
    0 0 24px rgba(162, 184, 255, 0.20);
  backdrop-filter: blur(26px) saturate(170%) contrast(1.02);
  -webkit-backdrop-filter: blur(26px) saturate(170%) contrast(1.02);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, background .28s ease;
  isolation: isolate;
}

.plugins-scripts-page .ps-card .liquid-button-lens,
.plugins-scripts-page .ps-card .ps-card__action-lens {
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 23% 20%, rgba(255, 255, 255, 0.45), transparent 20%),
    radial-gradient(circle at 72% 72%, rgba(181, 202, 255, 0.18), transparent 30%);
  opacity: 0.95;
}

.plugins-scripts-page .ps-card .open::before,
.plugins-scripts-page .ps-card .ps-card__action::before {
  content: "";
  position: absolute;
  top: -35%;
  left: -25%;
  width: 28%;
  height: 170%;
  transform: rotate(18deg) translateX(-170%);
  background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, 0.22) 35%, rgba(255, 255, 255, 0.65) 47%, rgba(255, 255, 255, 0.15) 58%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: blur(0.4px);
}

.plugins-scripts-page .ps-card .open::after,
.plugins-scripts-page .ps-card .ps-card__action::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(181, 204, 255, 0.16),
    0 0 7px rgba(255, 255, 255, 0.82),
    0 0 16px rgba(171, 196, 255, 0.46),
    0 0 34px rgba(171, 196, 255, 0.22),
    inset 0 0 9px rgba(255, 255, 255, 0.42);
  pointer-events: none;
  z-index: 1;
}

.plugins-scripts-page .ps-card .open:hover,
.plugins-scripts-page .ps-card .ps-card__action:hover {
  transform: translateY(-3px) scale(1.016);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(239, 243, 250, 0.52) 48%, rgba(255, 255, 255, 0.66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(119, 137, 173, 0.08),
    0 16px 32px rgba(44, 57, 84, 0.14),
    0 0 0 1px rgba(167, 190, 255, 0.24),
    0 0 30px rgba(170, 193, 255, 0.36),
    0 0 58px rgba(160, 184, 255, 0.18);
}

.plugins-scripts-page .ps-card .open:hover::before,
.plugins-scripts-page .ps-card .ps-card__action:hover::before {
  opacity: 1;
  animation: psButtonShine 0.72s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.plugins-scripts-page .ps-card .open:active,
.plugins-scripts-page .ps-card .ps-card__action:active {
  transform: translateY(0) scale(0.985);
}

.plugins-scripts-page .ps-card .open:focus-visible,
.plugins-scripts-page .ps-card .ps-card__action:focus-visible {
  outline: 2px solid rgba(70, 110, 255, 0.6);
  outline-offset: 3px;
}

.plugins-scripts-page .ps-card .open-label,
.plugins-scripts-page .ps-card .ps-card__action-label {
  position: relative;
  z-index: 2;
  margin-left: 21px;
  color: #1b1d22;
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.plugins-scripts-page .ps-card .open:hover .open-label,
.plugins-scripts-page .ps-card .ps-card__action:hover .ps-card__action-label {
  transform: translateX(-2px);
}

.plugins-scripts-page .ps-card .arrow,
.plugins-scripts-page .ps-card .ps-card__arrow {
  z-index: 2;
  position: absolute;
  top: 5px;
  right: 5px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(145deg, #4a4a4a, #272727 56%, #171717);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    0 6px 14px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  padding-bottom: 2px;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), background .22s ease, box-shadow .22s ease;
}

.plugins-scripts-page .ps-card .open:hover .arrow,
.plugins-scripts-page .ps-card .ps-card__action:hover .ps-card__arrow {
  transform: translateX(2px) scale(1.045);
  background: #242424;
}

@keyframes psButtonShine {
  from { transform: rotate(18deg) translateX(-170%); }
  to { transform: rotate(18deg) translateX(570%); }
}

/* ═══════════════════════════════════════════════════════
   7. VARIANT-SPECIFIC FINE-TUNING
   ═══════════════════════════════════════════════════════ */

/* ── 4 LOGOS: Windows + Apple + After Effects + Premiere Pro ── */
.plugins-scripts-page .ps-card--win-apple-ae-pr .platform-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  padding: 4px;
  border-radius: 11px;
}

.plugins-scripts-page .ps-card--win-apple-ae-pr .logo-pair {
  gap: 6px;
}

.plugins-scripts-page .ps-card--win-apple-ae-pr .open {
  width: 154px;
  flex: 0 0 154px;
}

.plugins-scripts-page .ps-card--win-apple-ae-pr .open .open-label {
  margin-left: 17px;
  font-size: 16px;
}

.plugins-scripts-page .ps-card--win-apple-ae-pr .open .arrow {
  width: 44px;
  height: 44px;
  top: 6px;
  right: 5px;
}

/* ── 3 LOGOS: Windows + Apple + AE / PR or Apple + AE + PR or Windows + AE + PR ── */
.plugins-scripts-page .ps-card--win-apple-ae .platform-icon,
.plugins-scripts-page .ps-card--win-apple-pr .platform-icon,
.plugins-scripts-page .ps-card--apple-ae-pr .platform-icon,
.plugins-scripts-page .ps-card--win-ae-pr .platform-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 5px;
  border-radius: 12px;
}

.plugins-scripts-page .ps-card--win-apple-ae .logo-pair,
.plugins-scripts-page .ps-card--win-apple-pr .logo-pair,
.plugins-scripts-page .ps-card--apple-ae-pr .logo-pair,
.plugins-scripts-page .ps-card--win-ae-pr .logo-pair {
  gap: 7px;
}

.plugins-scripts-page .ps-card--win-apple-ae .open,
.plugins-scripts-page .ps-card--win-apple-pr .open,
.plugins-scripts-page .ps-card--apple-ae-pr .open,
.plugins-scripts-page .ps-card--win-ae-pr .open {
  width: 162px;
  flex: 0 0 162px;
}

/* ── 2 LOGOS: Apple + AE / PR or Windows + AE / PR ── */
.plugins-scripts-page .ps-card--apple-ae .platform-icon,
.plugins-scripts-page .ps-card--apple-pr .platform-icon,
.plugins-scripts-page .ps-card--win-ae .platform-icon,
.plugins-scripts-page .ps-card--win-pr .platform-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
}

.plugins-scripts-page .ps-card--apple-ae .open,
.plugins-scripts-page .ps-card--apple-pr .open,
.plugins-scripts-page .ps-card--win-ae .open,
.plugins-scripts-page .ps-card--win-pr .open {
  width: 166px;
  flex: 0 0 166px;
}

/* ═══════════════════════════════════════════════════════
   8. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .plugins-scripts-page .ps-card {
    border-radius: 30px;
  }
  .plugins-scripts-page .ps-card .preview {
    height: 250px;
    border-radius: 29px 29px 0 0;
  }
}

@media (max-width: 440px) {
  .plugins-scripts-page .ps-card {
    border-radius: 26px;
  }
  .plugins-scripts-page .ps-card .preview {
    height: 225px;
    border-radius: 25px 25px 0 0;
  }
  .plugins-scripts-page .ps-card .content {
    padding: 20px 18px 18px;
  }
  .plugins-scripts-page .ps-card .title {
    font-size: 19px;
    margin-bottom: 10px;
  }
  .plugins-scripts-page .ps-card .desc {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .plugins-scripts-page .ps-card .meta {
    gap: 6px;
    min-height: 52px;
  }
  .plugins-scripts-page .ps-card .logo-pair {
    gap: 5px;
  }
  .plugins-scripts-page .ps-card .platform-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    padding: 4px;
    border-radius: 10px;
  }
  .plugins-scripts-page .ps-card .open {
    width: 138px;
    height: 50px;
    flex-basis: 138px;
  }
  .plugins-scripts-page .ps-card .open .open-label {
    margin-left: 13px;
    font-size: 15px;
  }
  .plugins-scripts-page .ps-card .open .arrow {
    width: 40px;
    height: 40px;
    top: 4px;
    right: 4px;
    font-size: 20px;
  }

  /* 4 logos on extra small mobile */
  .plugins-scripts-page .ps-card--win-apple-ae-pr .platform-icon {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
    padding: 3px;
    border-radius: 9px;
  }
  .plugins-scripts-page .ps-card--win-apple-ae-pr .logo-pair {
    gap: 4px;
  }
  .plugins-scripts-page .ps-card--win-apple-ae-pr .open {
    width: 128px;
    flex-basis: 128px;
  }
  .plugins-scripts-page .ps-card--win-apple-ae-pr .open .open-label {
    margin-left: 10px;
    font-size: 14px;
  }
  .plugins-scripts-page .ps-card--win-apple-ae-pr .open .arrow {
    width: 38px;
    height: 38px;
    top: 5px;
    right: 4px;
  }
}

/* ═══════════════════════════════════════════════════════
   9. ACCESSIBILITY & REDUCED MOTION
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .plugins-scripts-page .ps-card,
  .plugins-scripts-page .ps-card .main-preview,
  .plugins-scripts-page .ps-card .open,
  .plugins-scripts-page .ps-card .platform-icon,
  .plugins-scripts-page .ps-card .platform-icon img,
  .plugins-scripts-page .ps-card .arrow,
  .plugins-scripts-page .ps-card .open-label {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .plugins-scripts-page .ps-card .open::before,
  .plugins-scripts-page .ps-card .preview-reflection {
    display: none !important;
  }
}