.ph-line-accent {
  background: linear-gradient(120deg, #ff003c 0%, #ff5e00 50%, #ffa600 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: ph-line-up .9s var(--ease, ease) .4s both, ph-shimmer 6s ease-in-out infinite;
}
@keyframes ph-line-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ph-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes ph-pill-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pricing-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--fg-dim);
  max-width: 580px;
  line-height: 1.6;
  margin: 0;
  animation: ph-line-up .9s var(--ease, ease) .55s both;
}
.pricing-hero-stats {
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: ph-line-up .9s var(--ease, ease) .7s both;
}
.ph-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 110px;
}
.ph-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--accent-light, #ffa600);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.ph-stat-label {
  font-size: 0.82rem;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pricing-hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
  animation: ph-line-up .9s var(--ease, ease) .85s both;
}
.pricing-hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 166, 0, 0.35);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.7;
  transition: opacity .25s var(--ease);
}
.pricing-hero-scroll:hover { opacity: 1; }
.pricing-hero-scroll span {
  display: block;
  width: 4px; height: 8px;
  background: #ffa600;
  border-radius: 999px;
  animation: ph-scroll-wheel 1.8s ease-in-out infinite;
}
@keyframes ph-scroll-wheel {
  0%   { transform: translateY(0);  opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.pricing-v2-section {
  padding: clamp(48px, 8vh, 96px) 0;
}
.pricing-v2-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.pricing-v2-section-head .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
}
.pricing-v2-section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.pricing-v2-section-head p {
  color: var(--fg-dim);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.pricing-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-grid-v2 .pricing-card {
  position: relative;
  background: rgba(10, 12, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  transition: transform .35s var(--ease, ease), border-color .35s var(--ease, ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.pricing-grid-v2 .pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 60, 40, 0.18), transparent 40%);
  opacity: 0;
  transition: opacity .35s var(--ease, ease);
  pointer-events: none;
  z-index: 0;
}
.pricing-grid-v2 .pricing-card:hover::before { opacity: 1; }
.pricing-grid-v2 .pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 166, 0, 0.3);
}
.pricing-grid-v2 .pricing-card > * { position: relative; z-index: 1; }

.pricing-grid-v2 .pricing-card.pricing-featured {
  background: linear-gradient(180deg, rgba(255, 60, 40, 0.07), rgba(10, 12, 18, 0.65));
  border-color: rgba(255, 60, 40, 0.45);
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 60px -30px rgba(255, 60, 40, 0.35);
}
.pricing-grid-v2 .pricing-card.pricing-featured:hover {
  transform: translateY(-16px) scale(1.04);
}

.pricing-grid-v2 .pricing-card.pricing-featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  padding: 1.5px;
  background: conic-gradient(from 0deg, transparent 0deg, #ffa600 30deg, #ff5e00 60deg, transparent 120deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pricing-border-beam 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes pricing-border-beam {
  to { transform: rotate(360deg); }
}

.pricing-grid-v2 .pricing-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.pricing-grid-v2 .pricing-card .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 14px;
}
.pricing-grid-v2 .pricing-card .price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff, var(--accent-light, #ffa600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}
.pricing-grid-v2 .pricing-card .price-period {
  color: var(--fg-mute);
  font-size: 0.92rem;
  font-weight: 500;
}
.pricing-grid-v2 .pricing-card .pricing-desc {
  color: var(--fg-dim);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 22px;
  min-height: 3em;
}
.pricing-grid-v2 .pricing-card .pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-grid-v2 .pricing-card .pricing-features li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--fg);
}
.pricing-grid-v2 .pricing-card .pricing-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  background: rgba(255, 60, 40, 0.15);
  border: 1px solid rgba(255, 60, 40, 0.35);
  border-radius: 50%;
}
.pricing-grid-v2 .pricing-card .pricing-features li::after {
  content: '';
  position: absolute;
  left: 5px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid #ff5e00;
  border-bottom: 2px solid #ff5e00;
  transform: rotate(-45deg);
}
.pricing-grid-v2 .pricing-card .pricing-features li.muted {
  color: var(--fg-mute);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.18);
}
.pricing-grid-v2 .pricing-card .pricing-features li.muted::before {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.pricing-grid-v2 .pricing-card .pricing-features li.muted::after {
  content: '';
  left: 4px; top: 9px;
  width: 10px; height: 2px;
  border: none;
  background: rgba(255,255,255,0.25);
  transform: none;
}
.pricing-grid-v2 .pricing-card .badge-popular {
  position: absolute;
  top: 18px; right: 18px;
  padding: 5px 11px;
  background: linear-gradient(135deg, #ff5e00, #ff2d2d);
  color: #04040a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(255, 60, 40, 0.6);
  z-index: 2;
}
.pricing-grid-v2 .pricing-card .btn {
  position: relative;
  z-index: 2;
}

.trust-marquee {
  position: relative;
  padding: 28px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border, rgba(255,255,255,0.06));
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  overflow: hidden;
  isolation: isolate;
}
.trust-marquee-track {
  display: flex;
  width: max-content;
  animation: trust-marquee-scroll 32s linear infinite;
  will-change: transform;
}

.trust-marquee-row {
  display: flex;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
}

.trust-marquee:hover .trust-marquee-track { animation-play-state: paused; }
.trust-marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s var(--ease, ease);
}
.trust-marquee-item:hover { color: var(--accent-light, #ffa600); }
@keyframes trust-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trust-marquee-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}
.trust-marquee-fade-left {
  left: 0;
  background: linear-gradient(90deg, var(--bg, #04040a), transparent);
}
.trust-marquee-fade-right {
  right: 0;
  background: linear-gradient(-90deg, var(--bg, #04040a), transparent);
}

.pricing-faq-section {
  padding: clamp(48px, 8vh, 96px) 0;
}
.faq-grid {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.faq-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s var(--ease, ease), background .25s var(--ease, ease);
}
.faq-card[open] {
  border-color: rgba(255, 166, 0, 0.32);
  background: rgba(255, 60, 40, 0.04);
}
.faq-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  font-weight: 600;
  user-select: none;
  transition: background .2s var(--ease, ease);
}
.faq-card > summary::-webkit-details-marker { display: none; }
.faq-card > summary:hover { background: rgba(255, 255, 255, 0.02); }
.faq-q {
  font-size: 1.02rem;
  color: var(--fg);
}
.faq-chev {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-light, #ffa600);
  transition: transform .3s var(--ease, ease);
}
.faq-card[open] .faq-chev { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px 22px;
  color: var(--fg-dim);
  font-size: 0.94rem;
  line-height: 1.7;
}

.pricing-final-cta {
  padding: clamp(48px, 8vh, 96px) 0 clamp(64px, 10vh, 120px);
}
.pricing-final-card {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 60, 40, 0.08), rgba(10, 12, 18, 0.6));
  border: 1px solid rgba(255, 60, 40, 0.22);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  overflow: hidden;
}
.pricing-final-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255, 60, 40, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.pricing-final-card .eyebrow { display: inline-block; margin-bottom: 8px; }
.pricing-final-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.2;
}
.pricing-final-card p {
  color: var(--fg-dim);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}
.pricing-final-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .pricing-hero { padding-top: 60px; padding-bottom: 32px; }
  .pricing-hero-stats { gap: 22px; }
  .ph-stat { min-width: 88px; }
  .pricing-grid-v2 .pricing-card.pricing-featured { transform: none; }
  .pricing-grid-v2 .pricing-card.pricing-featured:hover { transform: translateY(-4px); }
  .pricing-final-card { flex-direction: column; align-items: flex-start; text-align: left; }
}

.field-hint {
  font-size: 0.78rem;
  color: var(--fg-mute);
  margin: 6px 0 0;
  min-height: 1.05em;
  transition: color .2s var(--ease);
}
.field-hint.field-hint-ok { color: var(--success, #22c55e); }
.field-hint.field-hint-err { color: #fca5a5; }
.pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.pw-strength-bar {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.pw-strength-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: #ef4444;
  border-radius: inherit;
  transition: width .25s var(--ease), background .25s var(--ease);
}
.pw-strength-label {
  font-size: 0.78rem;
  color: var(--fg-mute);
  white-space: nowrap;
  min-width: 110px;
  text-align: right;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--fg-mute);
  margin: 6px 0 0;
  transition: color .2s var(--ease);
}
.field-hint-ok  { color: #22c55e; font-weight: 500; }
.field-hint-err { color: #f87171; font-weight: 500; }
.pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
}
.pw-strength-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.pw-strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #ef4444;
  border-radius: 999px;
  transition: width .25s var(--ease), background .25s var(--ease);
}
.pw-strength-label {
  font-size: 0.78rem;
  color: var(--fg-mute);
  min-width: 130px;
  text-align: right;
}

.nav-cta-prefix { opacity: 0.85; margin-right: 4px; }
.nav-cta {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.settings-card[open] {
  border-color: rgba(255, 166, 0, 0.35);
  background: rgba(255, 60, 40, 0.04);
}
.settings-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  user-select: none;
  transition: background .25s var(--ease);
}
.settings-card > summary::-webkit-details-marker { display: none; }
.settings-card > summary:hover { background: rgba(255, 255, 255, 0.03); }
.settings-card .settings-icon {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 60, 40, 0.12);
  border: 1px solid rgba(255, 60, 40, 0.28);
  border-radius: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.settings-card .settings-label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-card .settings-label strong {
  font-size: 1rem;
  color: var(--fg);
  font-weight: 600;
}
.settings-card .settings-label .settings-sub {
  font-size: 0.82rem;
  color: var(--fg-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.settings-card .settings-chevron {
  font-size: 1.1rem;
  color: var(--fg-mute);
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.settings-card[open] .settings-chevron { transform: rotate(180deg); }
.settings-card-body {
  padding: 4px 20px 20px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.settings-card-body label {
  font-size: 0.82rem;
  color: var(--fg-dim);
}
.settings-card-body input[type="text"],
.settings-card-body input[type="email"],
.settings-card-body input[type="tel"],
.settings-card-body input[type="password"] {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 9px 12px;
  width: 100%;
  box-sizing: border-box;
}

.plugin-card-price.is-discounted {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding: 5px 12px;
  line-height: 1.1;
}
.plugin-card-price.is-discounted .plugin-card-price-orig {
  font-size: 0.7rem;
  color: var(--fg-mute);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.7);
  font-weight: 500;
}
.plugin-card-price.is-discounted strong {
  font-size: 0.95rem;
  color: var(--accent-light, #ffa600);
  font-weight: 700;
}
.plugin-card-discount-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 11px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  border: 1px solid rgba(251, 146, 60, 0.55);
  color: #1c1004;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 6px 20px -8px rgba(249, 115, 22, 0.65);
  z-index: 2;
  animation: discount-pulse 2.6s ease-in-out infinite;
}
@keyframes discount-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.04); }
}
.plugin-card.has-discount {
  border-color: rgba(251, 146, 60, 0.35);
}
.plugin-card.has-discount:hover {
  border-color: rgba(251, 146, 60, 0.6);
}

.buy-block.has-discount {
  border-color: rgba(251, 146, 60, 0.45);
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.06), rgba(4, 4, 10, 0.4));
}
.buy-price-discounted {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 6px;
}
.buy-price-discounted .buy-price-orig {
  font-size: 1.1rem;
  color: var(--fg-mute);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.75);
  font-weight: 500;
  opacity: 0.5;
}
.buy-price-discounted strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, var(--accent-soft, #ffa600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.buy-price-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 11px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #1c1004;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 14px -4px rgba(249, 115, 22, 0.5);
}

.pricing-card.has-discount {
  border-color: rgba(251, 146, 60, 0.4);
}
.pricing-card .badge-discount {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 11px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  border: 1px solid rgba(251, 146, 60, 0.55);
  color: #1c1004;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 6px 20px -8px rgba(249, 115, 22, 0.55);
  z-index: 2;
}
.pricing-card .price.price-discounted {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.pricing-card .price.price-discounted .price-amount-orig {
  font-size: 1.05rem;
  color: var(--fg-mute);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.75);
  font-weight: 500;
}
.pricing-card .price.price-discounted .price-amount {
  color: var(--accent-light, #ffa600);
}

.price-discounted { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-discounted .price-original {
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.75);
  color: var(--fg-mute);
  font-weight: 500;
}
.price-discounted .price-now { color: var(--accent-light, #ffa600); font-weight: 700; }
.price-discounted .price-discount-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #1c1004;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}
.price-discounted-lg .price-now { font-size: 1.6rem; }

.user-edit-tabs {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0;
  max-width: 760px;
}
.user-edit-tablist {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.user-edit-tab {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--fg-dim);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 7px 12px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.user-edit-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
}
.user-edit-tab.is-active {
  background: rgba(255, 60, 40, 0.12);
  border-color: rgba(255, 60, 40, 0.35);
  color: var(--accent-light);
}
.user-edit-tab-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.user-edit-tab-panel.is-active { display: flex; }
.user-edit-form-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.user-edit-form-compact label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--fg-dim);
  margin: 0;
}
.user-edit-form-compact label > span:first-child { font-weight: 500; }
.user-edit-form-compact label.user-edit-checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.user-edit-form-compact input[type="text"],
.user-edit-form-compact input[type="email"],
.user-edit-form-compact input[type="number"],
.user-edit-form-compact input[type="password"],
.user-edit-form-compact input[type="datetime-local"],
.user-edit-form-compact textarea,
.user-edit-form-compact select {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
}
.user-edit-form-compact textarea { resize: vertical; min-height: 50px; font-family: inherit; }
.user-edit-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 540px) {
  .user-edit-row-2 { grid-template-columns: 1fr; }
}
.user-edit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 2px;
}

@media (max-width: 720px) {
  .modern-hero-scroll,
  .pricing-hero-scroll {
    display: none !important;
  }
}

@media (min-width: 1024px) and (min-height: 720px) {
  .fit-viewport-page {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .fit-viewport-page .modern-hero,
  .fit-viewport-page .modern-hero-sm {
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .fit-viewport-page .pricing-grid-fit .pricing-card {
    padding: 22px 20px;
    max-height: 520px;
  }
  .fit-viewport-page .pricing-grid-fit .pricing-card .pricing-features,
  .fit-viewport-page .pricing-grid-fit .pricing-card ul,
  .fit-viewport-page .pricing-grid-fit .pricing-card .feature-list {
    gap: 6px;
  }
  .fit-viewport-page .pricing-grid-fit .pricing-card .pricing-features li,
  .fit-viewport-page .pricing-grid-fit .pricing-card ul li,
  .fit-viewport-page .pricing-grid-fit .pricing-card .feature-list li {
    margin-bottom: 6px;
  }
  .fit-viewport-page .pricing-grid-fit .pricing-card .price,
  .fit-viewport-page .pricing-grid-fit .pricing-card .price-amount,
  .fit-viewport-page .pricing-grid-fit .pricing-card .pricing-price {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  }
}

.modern-hero-sm {
  padding-bottom: clamp(8px, 2vh, 20px);
}
.page-screen.pt-tight {
  padding-top: clamp(12px, 2vh, 24px);
}
.modern-hero-sm .modern-hero-scroll {
  display: none;
}

.modern-hero-sm {
  padding-top: clamp(32px, 6vh, 64px);
  padding-bottom: 4px;
}
.page-screen.pt-tight {
  padding-top: 8px;
}

.plugin-grid.plugin-grid-compact { gap: 14px; }

.fit-viewport-page .trust-marquee {
  padding: 12px 0;
  border-top: none;
  margin-top: 0;
}
.fit-viewport-page .trust-marquee .trust-marquee-item {
  font-size: 0.84rem;
}

@media (min-width: 1024px) and (min-height: 720px) {
  .fit-viewport-page {
    justify-content: flex-start;
    padding-top: 16px;
  }

  .fit-viewport-page .hero-pro {
    height: auto !important;
    min-height: 0 !important;
    align-items: flex-start !important;
    padding-top: 16px !important;
    padding-bottom: 24px !important;
  }
  .fit-viewport-page .hero-pro-inner {
    margin-top: 0;
  }

  body .page-screen.pt-tight {
    padding-top: 0;
  }
  body .page-screen.pt-tight > .wrap {
    padding-top: 0;
  }
}

.modern-hero-sm {
  padding-top: clamp(20px, 4vh, 40px);
  padding-bottom: 0;
}
.modern-hero-sm .modern-hero-sub {
  margin-bottom: 0;
}
.page-screen.pt-tight {
  padding-top: 0;
}
.page-screen.pt-tight > .wrap {
  padding-top: 4px;
}

@media (min-width: 1024px) and (min-height: 720px) {
  body.home-fit {
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
  }

  body.home-fit > nav { grid-row: 1; align-self: start; }
  body.home-fit > main { grid-row: 2; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
  body.home-fit > footer { grid-row: 3; align-self: end; }

  body.home-fit > footer {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
  body.home-fit > footer .footer-inner,
  body.home-fit > footer > .wrap {
    gap: 12px !important;
  }

  body.home-fit .fit-viewport-page {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 0;
  }
  body.home-fit .fit-viewport-page .hero-pro {
    /* Don't let the hero grow to fill + vertically center the whole first screen —
       that pushed the running trust band to the bottom edge. Natural height + top
       alignment lets the band ride up directly beneath the hero. */
    flex: 0 1 auto;
    min-height: 0;
    height: auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: clamp(8px, 2vh, 28px) !important;
    padding-bottom: 0 !important;
  }

  body.home-fit .fit-viewport-page > #trust-band,
  body.home-fit .fit-viewport-page .trust-marquee {
    flex: 0 0 auto;
  }

  /* Visual polish: keep the centered hero calm and never let the "Latest" pill
     collide with the trust marquee below it. */
  body.home-fit .fit-viewport-page .hero-pro {
    gap: clamp(16px, 2.4vh, 30px);
    padding-bottom: clamp(16px, 3vh, 42px) !important;
  }
  body.home-fit .fit-viewport-page .hero-pro-live {
    margin-top: clamp(6px, 1.4vh, 18px);
    margin-bottom: 0;
  }
  body.home-fit .fit-viewport-page > #trust-band {
    margin-top: clamp(16px, 3vh, 34px);
  }
}

/* ------------------------------------------------------------------
   HOME landing — full-viewport first screen.
   renderHome wraps the hero + trust band in a single .home-screen flex
   column that fills the viewport: the hero flexes to fill and centers
   vertically, while the trust band is pinned to the BOTTOM edge of that
   first screen via margin-top:auto. Below it, the normal one-page
   sections (plugins/pricing/…) continue to scroll.

   This REPLACES the earlier "main > .hero-pro:has(+ #trust-band)" cap
   that pinned the hero to clamp(560px,80vh,760px) — that made the hero
   too short and the band ride too high. The base hero is height:100vh
   (hero.css) and onepage.css adds main>.hero-pro{min-height:100vh} for
   scroll-snap; both are overridden inside .home-screen below so the
   hero sizes to its flex track instead of a full viewport on its own.
   The marquee track animation + prefers-reduced-motion handling live
   elsewhere and are not touched here. svh fallback keeps mobile correct. */
.home-screen {
  display: flex;
  flex-direction: column;
  /* The sticky .nav (base.css: top:16px + ~62px tall = ~78px) sits in normal
     flow at the top of <main>, so the first screen must subtract it to occupy
     exactly the REMAINING viewport. Without this, hero(~998px)+band(82px)
     overflowed and the band spilled ~30px below the fold, reading as the top
     strip of the plugins area. Clamping to (viewport - nav) keeps the hero +
     band as one fold-height unit, with the band pinned to its LOWER area via
     margin-top:auto (below). --nav-flow falls back to 78px. */
  --nav-flow: 78px;
  min-height: calc(100vh - var(--nav-flow));
  min-height: calc(100svh - var(--nav-flow));
  max-height: calc(100vh - var(--nav-flow));
  max-height: calc(100svh - var(--nav-flow));
  /* Snap the whole first screen as one unit (onepage.css uses scroll-snap). */
  scroll-snap-align: start;
}
.home-screen > .hero-pro {
  /* Override base .hero-pro height:100vh AND the previous :has cap.
     min-height:0 lets the hero shrink within the clamped first screen so the
     band always fits; the trimmed vertical padding pulls the hero content up
     and frees the lower band area without crowding the wordmark/CTAs. */
  flex: 1 1 auto;
  height: auto !important;
  min-height: 0 !important;
  /* Trim the base hero's oversized vertical padding (layout.css uses
     clamp(96px,15vh,150px)/clamp(80px,13vh,130px)) so the hero content + the
     pinned band fit together inside the clamped first screen. Without this the
     hero's min-content (~638px) left no room for the 82px band, so the band
     overflowed the fold. Centered content keeps the wordmark/CTAs visually
     balanced; min-height:0 lets the flex track absorb any remainder. */
  padding-top: clamp(48px, 7vh, 96px) !important;
  padding-bottom: clamp(16px, 2.5vh, 36px) !important;
}
.home-screen > #trust-band {
  /* Pin the trust band to the bottom edge of the first screen. The hero above
     is flex:1 1 auto and absorbs all remaining vertical space, so this fixed
     (flex:0 0 auto) band lands flush against the hero's bottom at the lower
     edge of the fold. We deliberately do NOT use margin-top:auto here — paired
     with the grow hero it introduced a phantom gap that pushed the band below
     the fold; flex-grow on the hero already does the pinning cleanly. */
  flex: 0 0 auto;
}
/* The trust band lives ABOVE the fold in the home first screen, so it must NOT
   depend on the below-fold cinematic scroll-reveal (bk-motion.js adds .bk-cine,
   whose base.css hidden state is opacity:0 + translateY(34px) until an
   IntersectionObserver flips .bk-cine-in). At the very bottom edge of the fold
   that observer often never fires, leaving the band invisible / offset down by
   34px so it read as the top strip of the plugins area. Force the first-screen
   band to its settled, visible state. The marquee scroll animation lives on
   .trust-marquee-track and is untouched; prefers-reduced-motion already keeps
   the band static, so this only un-hides the above-fold instance. */
.home-screen > #trust-band.bk-cine,
.home-screen > #trust-band {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

@media (min-width: 1024px) and (min-height: 720px) {
  body.plugins-fit {
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
  }
  body.plugins-fit > nav { grid-row: 1; align-self: start; }
  body.plugins-fit > main {
    grid-row: 2;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
  body.plugins-fit > footer {
    grid-row: 3;
    align-self: end;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
  body.plugins-fit > footer .footer-inner,
  body.plugins-fit > footer > .wrap {
    gap: 12px !important;
  }

  body.plugins-fit .modern-hero,
  body.plugins-fit .modern-hero-sm {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body.plugins-fit .plugins-mini-grid {
    gap: 14px;
    max-width: min(1400px, 100%) !important;
    padding-inline: 8px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
  }
  body.plugins-fit .plugins-mini-grid > .plugin-mini-link {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  body.plugins-fit .plugin-mini-body { padding: 10px 12px 12px; }
  body.plugins-fit .plugin-mini-title { font-size: 0.92rem; }
  body.plugins-fit .plugin-mini-price { font-size: 0.74rem; padding: 3px 9px; }
  /* In the single-screen "fit" layout the 1:1 media is too tall and pushed the
     title/price row out of the grid cell (it was clipping under the footer).
     Use a shorter, landscape media frame here so the full card — image, title,
     price — always stays within the viewport. The normal scrollable layout
     keeps the square 1:1 frame, so there is no CLS there. object-fit still
     handles real plugin images inside the shorter frame. */
  body.plugins-fit .plugin-mini-media { aspect-ratio: 16 / 10; }

  body.plugins-fit .page-screen.pt-tight {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    padding-top: 0 !important;
  }
  body.plugins-fit .page-screen.pt-tight > .wrap {
    width: 100%;
    padding-top: 0 !important;
  }
}

@media (min-width: 1024px) and (max-width: 1379px) and (min-height: 720px) {
  body.plugins-fit .plugins-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1380px) and (min-height: 720px) {
  body.plugins-fit .plugins-mini-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) and (min-height: 720px) {
  body.pricing-fit {
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
  }
  body.pricing-fit > nav { grid-row: 1; align-self: start; }
  body.pricing-fit > main { grid-row: 2; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
  body.pricing-fit > footer { grid-row: 3; align-self: end; padding-top: 14px !important; padding-bottom: 14px !important; }
  body.pricing-fit > footer .footer-inner { gap: 12px !important; }
  body.pricing-fit .fit-viewport-page {
    flex: 1; min-height: 0;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }
  body.pricing-fit .modern-hero { padding: 8px 0 !important; }
  body.pricing-fit .modern-hero-sub { margin: 0; }
  body.pricing-fit .pricing-grid-fit .pricing-card {
    padding: 18px 18px !important;
    max-height: none;
  }
  body.pricing-fit .pricing-grid-fit .pricing-card .pricing-features { gap: 4px; }
  body.pricing-fit .pricing-grid-fit .pricing-card .pricing-features li { font-size: 0.84rem; }
  body.pricing-fit .pricing-grid-fit .pricing-card .pricing-desc { font-size: 0.84rem; margin-bottom: 12px; min-height: auto; }
  body.pricing-fit .pricing-note { font-size: 0.78rem; margin-top: 8px; }
}

/* ------------------------------------------------------------------
   DETAIL PAGE LAYOUT (clean vertical + 2-col sticky sidebar).
   The old 3-row grid-template-areas + the 1024/720 viewport lock that
   caused the cut-off tab strip and inner scrollbars are intentionally
   NEUTRALIZED here so the detail page scrolls naturally. bodyClass stays
   'plugin-fit' (markup unchanged) — we just turn off its height/overflow
   lock and the content-cramping squeeze overrides.
   ------------------------------------------------------------------ */
@media (min-width: 1024px) and (min-height: 720px) {
  body.plugin-fit {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    display: block;
  }
  body.plugin-fit > nav,
  body.plugin-fit > footer { grid-row: auto; align-self: auto; }
  body.plugin-fit > main {
    min-height: 0;
    overflow: visible;
    display: block;
  }
}

@media (max-width: 767px) {
  .pdv3-install-steps { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pdv3-install-steps { grid-template-columns: repeat(2, 1fr); }
}

.pdv3-step strong {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.plugins-mini-grid {
  --card-radius: 20px;
  display: grid;
  gap: 22px;
  /* Cap at 3 comfortable columns on wide screens (6 plugins -> tidy 3×2).
     min 280px keeps each card large; the column cap stops auto-fit from
     packing all six into one tiny row. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1080px;
  margin-inline: auto;
  align-items: stretch;
}
@media (min-width: 1024px) {
  /* Desktop cap: 6 plugins -> tidy 3 columns x 2 rows of BIG cards.
     Self-qualified (.plugins-mini-grid.plugins-mini-grid) to raise specificity
     above any later-loading single-class generic rule (e.g. admin.css overflow
     guards) so this wins without resorting to !important. The 1080px max-width +
     auto margins on the base rule keep the grid comfortably centered. */
  .plugins-mini-grid.plugins-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.plugin-mini-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  outline-offset: 4px;
  border-radius: var(--card-radius, 20px);
}

.plugin-mini {
  position: relative;
  background: rgba(10, 12, 20, 0.55);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--card-radius, 20px);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out, ease), border-color .35s var(--ease-out, ease), box-shadow .35s var(--ease-out, ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 30px -20px rgba(0, 0, 0, 0.8);
}

/* Ambient hover glow */
.plugin-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 60, 40, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity .35s var(--ease-out, ease);
  pointer-events: none;
  z-index: 0;
}
/* Brand gradient top-hairline (CSS-only, no markup) */
.plugin-mini::after {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--accent-gradient, linear-gradient(135deg, #ff003c, #ff5e00));
  opacity: 0.45;
  transition: opacity .35s var(--ease-out, ease);
  pointer-events: none;
  z-index: 2;
}
.plugin-mini > * { position: relative; z-index: 1; }

.plugin-mini-link:hover .plugin-mini,
.plugin-mini-link:focus-visible .plugin-mini {
  transform: translateY(-5px);
  border-color: rgba(255, 166, 0, 0.45);
  box-shadow: 0 22px 55px -18px var(--accent-glow, rgba(255, 60, 40, 0.42));
}
.plugin-mini-link:hover .plugin-mini::before,
.plugin-mini-link:focus-visible .plugin-mini::before {
  opacity: 1;
}
.plugin-mini-link:hover .plugin-mini::after,
.plugin-mini-link:focus-visible .plugin-mini::after {
  opacity: 1;
}

.plugin-mini-media {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -40px 40px -30px rgba(0, 0, 0, 0.6);
}

.plugin-mini-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0a0a14;
  display: block;
  transition: transform 0.45s var(--ease-out, ease);
}

.plugin-mini-link:hover .plugin-mini-image,
.plugin-mini-link:focus-visible .plugin-mini-image {
  transform: scale(1.05);
}

.plugin-mini-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 60, 40, 0.10), rgba(10, 12, 20, 0.6));
}
.plugin-mini-placeholder .plugin-icon {
  width: 56px;
  height: 56px;
  opacity: 0.85;
  filter: drop-shadow(0 0 18px var(--accent-glow, rgba(255, 60, 40, 0.42)));
}

/* Headline row — sits ABOVE the image so the name is never clipped/overlapped. */
.plugin-mini-head {
  padding: 16px 18px 12px;
}

.plugin-mini-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  /* Brand gradient-red headline */
  background: var(--accent-gradient, linear-gradient(135deg, #ff003c, #ff5e00 55%, #ffa600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* No clamp / ellipsis — the name reads in full and wraps if needed. */
}

/* Full-width footer row holding the price / abo status chip. */
.plugin-mini-body {
  margin-top: auto;
  padding: 13px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.plugin-mini-body .plugin-mini-price {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.plugin-mini-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  background: rgba(255, 60, 40, 0.10);
  border: 1px solid rgba(255, 60, 40, 0.28);
  border-radius: var(--radius-pill, 999px);
  color: var(--accent-soft, #ffa600);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Free reads calmer / neutral vs paid */
.plugin-mini-price.is-free {
  color: var(--fg-dim, rgba(255, 255, 255, 0.72));
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.plugin-mini-price.is-included {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.plugin-mini-price.is-discounted {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}

.plugin-mini-price-orig {
  text-decoration: line-through;
  opacity: 0.55;
  font-size: 0.72rem;
}

.plugin-mini-price.is-discounted strong {
  color: #fcd34d;
  font-weight: 700;
}

.plugin-mini-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  pointer-events: none;
  padding: 4px 9px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #1a1308;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  animation: discount-pulse 2.4s ease-in-out infinite;
}

/* "Bald verfügbar" (coming soon) — admin-controlled per plugin */
.plugin-mini-price.is-coming-soon {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.plugin-mini-coming-soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  pointer-events: none;
  padding: 4px 9px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #f5f3ff;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.plugin-mini.is-coming-soon {
  opacity: 0.92;
}

.plugin-mini.is-coming-soon .plugin-mini-image {
  filter: grayscale(0.35) brightness(0.9);
}

.plugin-mini-core-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 3px 9px;
  background: rgba(255, 60, 40, 0.16);
  border: 1px solid rgba(255, 60, 40, 0.4);
  border-radius: 999px;
  color: var(--accent-soft, #ffa600);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Reduced-motion: stop card lift/zoom and the discount badge pulse */
@media (prefers-reduced-motion: reduce) {
  .plugin-mini-link:hover .plugin-mini,
  .plugin-mini-link:focus-visible .plugin-mini { transform: none; }
  .plugin-mini-link:hover .plugin-mini-image,
  .plugin-mini-link:focus-visible .plugin-mini-image { transform: none; }
  .plugin-mini-discount-badge { animation: none; }
}

.pdv3 {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 28px) clamp(16px, 3vw, 32px) clamp(40px, 5vw, 64px);
  box-sizing: border-box;
}

/* ---- 2-col body grid: MAIN (fluid) | SIDEBAR (sticky, fixed-width) ---- */
.pdv3-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 380px);
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}
.pdv3-main {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
  min-width: 0;
}
.pdv3-aside {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  scrollbar-width: thin;
}
.pdv3-aside::-webkit-scrollbar { width: 8px; }
.pdv3-aside::-webkit-scrollbar-thumb {
  background: var(--border-strong, rgba(255, 255, 255, 0.16));
  border-radius: 999px;
}

/* ---- Calm section header (replaces the loud angled ribbon on detail) ---- */
.pdv3-sechead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 4px;
}
.pdv3-sechead::before {
  content: "";
  flex-shrink: 0;
  width: 3px;
  height: 1em;
  border-radius: 2px;
  background: var(--accent-gradient, linear-gradient(135deg, #ff003c, #ff5e00, #ffa600));
}
.pdv3-sechead-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim, rgba(255, 255, 255, 0.72));
  line-height: 1;
}
.pdv3-sechead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border, rgba(255, 255, 255, 0.08));
}

/* ---- Hero header polish: one-line title + meta chips row ------------- */
.pdv3-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pdv3-resource-tagline {
  margin: 0;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.5;
  color: var(--fg-dim, rgba(255, 255, 255, 0.72));
}
.pdv3-meta-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pdv3-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--glass, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--fg-dim, rgba(255, 255, 255, 0.72));
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.pdv3-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ------------------------------------------------------------------
   Reduced-motion safety for page-level animations. The trust marquee
   and any decorative loops stop entirely; content stays fully visible.
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .trust-marquee-track { animation: none !important; transform: none !important; }
}

/* Refined marquee polish: soft edge mask + gentle item lift on hover. */
.trust-marquee-item {
  transition: color .25s var(--ease, ease), transform .25s var(--ease-out, ease), text-shadow .25s var(--ease, ease);
}
.trust-marquee-item:hover {
  transform: translateY(-1px);
  text-shadow: 0 6px 18px rgba(255, 94, 0, 0.35);
}

/* ====================================================================
   SpigotMC-style plugin detail — resource head, tab bar, ribbon-led
   sections, features grid, useful links, reviews. All on the OLED canvas
   with the signature angled red-gradient ribbon banners. Lives with the
   other .pdv3-* rules so it inherits plugin-fit + the 1024/1180/767 media
   breakpoints already defined above.
   ==================================================================== */

/* ---- Resource header row (icon + title + version + CTA) ------------ */
.pdv3-resource-head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  flex-wrap: wrap;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 24px);
  background: rgba(10, 12, 20, 0.6);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 24px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px -42px rgba(0, 0, 0, 0.85);
}
.pdv3-resource-icon {
  flex-shrink: 0;
  width: clamp(56px, 8vw, 76px);
  height: clamp(56px, 8vw, 76px);
  border-radius: var(--radius-md, 16px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: #0a0a14;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.pdv3-resource-icon img,
.pdv3-resource-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pdv3-resource-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.pdv3-resource-title h1,
.pdv3-resource-title .pdv3-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.pdv3-resource-meta {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pdv3-version-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 60, 40, 0.1);
  border: 1px solid rgba(255, 60, 40, 0.3);
  color: var(--accent-soft, #ffa600);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.pdv3-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent-gradient, linear-gradient(135deg, #ff003c, #ff5e00));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 12px 30px -12px var(--accent-glow, rgba(255, 60, 40, 0.42));
  transition: transform 0.25s var(--ease-out, ease), box-shadow 0.25s var(--ease, ease), filter 0.2s ease;
}
.pdv3-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px var(--accent-glow, rgba(255, 60, 40, 0.42));
  filter: saturate(1.06);
}
.pdv3-cta:active { transform: translateY(0); }
.pdv3-cta:focus-visible { outline: 2px solid var(--accent-soft, #ffa600); outline-offset: 3px; }
.pdv3-cta svg { width: 16px; height: 16px; }

/* ---- Rating strip / gradient stars -------------------------------- */
.pdv3-rating-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--fg-dim, #cbd5e1);
}
.pdv3-stars {
  display: inline-flex;
  gap: 2px;
  line-height: 1;
}
.pdv3-star {
  width: 16px;
  height: 16px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.pdv3-star.is-filled {
  background: var(--accent-gradient, linear-gradient(135deg, #ff003c, #ff5e00, #ffa600));
}

/* ---- Tab bar (in-page anchor nav) --------------------------------- */
.pdv3-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.pdv3-tab {
  position: relative;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 9px;
  color: var(--fg-dim, #cbd5e1);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease, ease), background 0.2s var(--ease, ease);
}
.pdv3-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff003c, #ff5e00, #ffa600);
  opacity: 0;
  transition: left 0.28s var(--ease-out, ease), right 0.28s var(--ease-out, ease), opacity 0.2s var(--ease, ease);
}
.pdv3-tab:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}
.pdv3-tab.is-active,
.pdv3-tab[aria-current="true"] {
  color: var(--fg);
  background: rgba(255, 60, 40, 0.1);
}
.pdv3-tab.is-active::after,
.pdv3-tab[aria-current="true"]::after {
  left: 14px;
  right: 14px;
  opacity: 0.95;
}

/* ---- Ribbon-led section wrapper + stagger reveal ------------------ */
.pdv3-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 96px;
  opacity: 0;
  transform: translateY(14px);
  animation: pdv3-section-reveal 0.7s cubic-bezier(.16, 1, .3, 1) forwards;
}
.pdv3-section:nth-of-type(1) { animation-delay: 0.04s; }
.pdv3-section:nth-of-type(2) { animation-delay: 0.1s; }
.pdv3-section:nth-of-type(3) { animation-delay: 0.16s; }
.pdv3-section:nth-of-type(4) { animation-delay: 0.22s; }
.pdv3-section:nth-of-type(5) { animation-delay: 0.28s; }
.pdv3-section:nth-of-type(6) { animation-delay: 0.34s; }
@keyframes pdv3-section-reveal {
  to { opacity: 1; transform: none; }
}

/* ---- Signature angled notched ribbon banner ----------------------- */
.pdv3-ribbon {
  position: relative;
  display: flex;
  align-items: center;
  align-self: flex-start;
  min-width: clamp(180px, 36%, 320px);
  padding: 10px 38px 10px 18px;
  background: var(--accent-gradient, linear-gradient(135deg, #ff003c, #ff5e00, #ffa600));
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  box-shadow: 0 10px 30px -12px var(--accent-glow, rgba(255, 60, 40, 0.42));
  isolation: isolate;
}
/* thin top gloss highlight */
.pdv3-ribbon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  pointer-events: none;
}
/* hairline running across the section for the "banner header" feel */
.pdv3-ribbon::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 100vw;
  max-width: 60%;
  height: 1px;
  background: var(--border-strong, rgba(255, 255, 255, 0.16));
  pointer-events: none;
}
.pdv3-ribbon-label {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
}

/* ---- Features grid (built from all specs) ------------------------- */
.pdv3-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.pdv3-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--glass, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 14px);
  color: var(--fg);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: border-color 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease), transform 0.25s var(--ease-out, ease);
}
.pdv3-feature:hover {
  border-color: var(--border-strong, rgba(255, 255, 255, 0.16));
  box-shadow: 0 14px 34px -22px var(--accent-glow, rgba(255, 60, 40, 0.42));
  transform: translateY(-2px);
}
.pdv3-feature-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 60, 40, 0.16);
  color: var(--accent-soft, #ffa600);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---- Useful links grid -------------------------------------------- */
.pdv3-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.pdv3-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--glass, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 14px);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease), transform 0.25s var(--ease-out, ease);
}
.pdv3-link-card:hover {
  border-color: var(--border-strong, rgba(255, 255, 255, 0.16));
  box-shadow: 0 14px 34px -22px var(--accent-glow, rgba(255, 60, 40, 0.42));
  transform: translateY(-2px);
}

/* ---- Reviews section ---------------------------------------------- */
.pdv3-reviews {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pdv3-reviews-summary {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  flex-wrap: wrap;
  padding: clamp(14px, 2vw, 20px);
  background: var(--glass, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 14px);
}
.pdv3-reviews-avg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'Space Grotesk', sans-serif;
}
.pdv3-reviews-avg strong {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, var(--accent-soft, #ffa600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.pdv3-reviews-count {
  color: var(--fg-mute);
  font-size: 0.82rem;
}
.pdv3-reviews-empty {
  padding: 22px;
  text-align: center;
  color: var(--fg-mute);
  font-style: italic;
  background: var(--glass, rgba(255, 255, 255, 0.03));
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 14px);
}
.pdv3-review {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  padding: 16px;
  background: var(--glass, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 14px);
  transition: border-color 0.25s var(--ease, ease);
}
.pdv3-review:hover { border-color: var(--border-strong, rgba(255, 255, 255, 0.16)); }
.pdv3-review-avatar {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient, linear-gradient(135deg, #ff003c, #ff5e00));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.pdv3-review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pdv3-review-author {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--fg);
}
.pdv3-review-date {
  color: var(--fg-mute);
  font-size: 0.78rem;
}
.pdv3-review-body {
  grid-column: 2;
  margin: 0;
  color: var(--fg-dim, #cbd5e1);
  font-size: 0.92rem;
  line-height: 1.55;
}
.pdv3-review-reply {
  grid-column: 2;
  margin-top: 4px;
  padding: 10px 12px;
  background: rgba(255, 60, 40, 0.05);
  border-left: 2px solid var(--accent-light, #ff5e00);
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
  color: var(--fg-dim, #cbd5e1);
}
.pdv3-review-reply strong { color: var(--accent-soft, #ffa600); }
.pdv3-review-title {
  grid-column: 2;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* ---- Write-review form (modern card) ------------------------------ */
.pdv3-review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--glass, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 14px);
}
.pdv3-review-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}
.pdv3-review-field > span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg-dim, #cbd5e1);
}
.pdv3-review-select,
.pdv3-review-input,
.pdv3-review-textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease, ease), box-shadow 0.2s var(--ease, ease), background 0.2s var(--ease, ease);
}
.pdv3-review-textarea {
  min-height: 120px;
  resize: vertical;
}
.pdv3-review-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffa600' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.pdv3-review-select option {
  background: #14110a;
  color: var(--fg);
}
.pdv3-review-input::placeholder,
.pdv3-review-textarea::placeholder { color: var(--fg-mute, rgba(255, 255, 255, 0.48)); }
.pdv3-review-select:hover,
.pdv3-review-input:hover,
.pdv3-review-textarea:hover { border-color: var(--border-strong, rgba(255, 255, 255, 0.16)); }
.pdv3-review-select:focus-visible,
.pdv3-review-input:focus-visible,
.pdv3-review-textarea:focus-visible {
  outline: none;
  border-color: var(--accent-soft, #ffa600);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 60, 40, 0.18);
}
.pdv3-review-form .btn { align-self: flex-start; }
.pdv3-review-status {
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--glass, rgba(255, 255, 255, 0.03));
  color: var(--fg-dim, #cbd5e1);
}
.pdv3-review-status.is-success {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
}
.pdv3-review-status.is-error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}
.pdv3-reviews-note {
  margin: 0;
  padding: 18px 20px;
  text-align: center;
  color: var(--fg-dim, #cbd5e1);
  font-size: 0.92rem;
  background: var(--glass, rgba(255, 255, 255, 0.03));
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 14px);
}
.pdv3-reviews-note a {
  color: var(--accent-soft, #ffa600);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 166, 0, 0.4);
}
.pdv3-reviews-note a:hover { border-bottom-color: var(--accent-soft, #ffa600); }
@media (prefers-reduced-motion: reduce) {
  .pdv3-review,
  .pdv3-review-select,
  .pdv3-review-input,
  .pdv3-review-textarea { transition: none; }
}

/* ---- Per-artifact version chip ------------------------------------ */
.pdv3-artifact-ver {
  display: inline-block;
  padding: 1px 7px;
  margin-right: 2px;
  border-radius: 999px;
  background: rgba(255, 60, 40, 0.12);
  border: 1px solid rgba(255, 60, 40, 0.28);
  color: var(--accent-soft, #ffa600);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ---- Sidebar buy panel: prominent decision zone ------------------- */
.pdv3-aside .pdv3-buy {
  padding: clamp(18px, 2vw, 24px);
  background: rgba(10, 12, 20, 0.6);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 24px);
  box-shadow: 0 30px 70px -42px rgba(0, 0, 0, 0.85);
}
/* Price gradient-clipped in the brand red for the sidebar decision zone. */
.pdv3-aside .pdv3-buy .buy-price,
.pdv3-aside .pdv3-buy .buy-price-discounted strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--accent-gradient, linear-gradient(135deg, #ff003c, #ff5e00, #ffa600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.pdv3-aside .pdv3-buy .btn-block { width: 100%; }
/* Single, full-width Core notice in the sidebar. */
.pdv3-aside .pdv3-core-banner {
  display: flex;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

/* ---- Responsive: stack head + collapse grids ---------------------- */
/* Tablet & below: single column, sidebar (buy + downloads) on top. */
@media (max-width: 1023px) {
  .pdv3-layout { grid-template-columns: 1fr; }
  .pdv3-aside {
    position: static;
    max-height: none;
    overflow: visible;
    order: -1;
  }
  .pdv3-main { order: 0; }
}

@media (max-width: 720px) {
  .pdv3-resource-head { flex-direction: column; align-items: stretch; text-align: center; }
  .pdv3-resource-title { align-items: center; }
  .pdv3-resource-meta { justify-content: center; }
  .pdv3-meta-chips { justify-content: center; }
  .pdv3-cta { justify-content: center; width: 100%; }
  .pdv3-features,
  .pdv3-links { grid-template-columns: 1fr; }
  .pdv3-ribbon { min-width: 0; width: 100%; }
}

/* ---- Reduced-motion: skip the section reveal, show everything ----- */
@media (prefers-reduced-motion: reduce) {
  .pdv3-section {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ---- Light theme contrast touch-ups (ribbon stays gradient) ------- */
html[data-theme="light"] .pdv3-resource-head,
html[data-theme="light"] .pdv3-tabs {
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--border);
}
html[data-theme="light"] .pdv3-feature,
html[data-theme="light"] .pdv3-link-card,
html[data-theme="light"] .pdv3-reviews-summary,
html[data-theme="light"] .pdv3-review,
html[data-theme="light"] .pdv3-review-form,
html[data-theme="light"] .pdv3-reviews-note,
html[data-theme="light"] .pdv3-reviews-empty {
  background: var(--surface-2);
  border-color: var(--border);
}
html[data-theme="light"] .pdv3-review-select,
html[data-theme="light"] .pdv3-review-input,
html[data-theme="light"] .pdv3-review-textarea {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border);
  color: var(--fg);
}
html[data-theme="light"] .pdv3-review-select option { background: #fffaf0; color: var(--fg); }
html[data-theme="light"] .pdv3-star { background: rgba(28, 23, 8, 0.16); }
html[data-theme="light"] .pdv3-reviews-avg strong {
  background: linear-gradient(135deg, #1c1708 0%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Light theme parity for the new detail surfaces --------------- */
html[data-theme="light"] .pdv3-aside .pdv3-buy {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border);
}
html[data-theme="light"] .pdv3-meta-chip {
  background: var(--surface-2, rgba(255, 252, 242, 0.7));
  border-color: var(--border);
  color: var(--fg-dim);
}
html[data-theme="light"] .pdv3-sechead-label,
html[data-theme="light"] .pdv3-resource-tagline { color: var(--fg-dim); }
html[data-theme="light"] .pdv3-sechead::after { background: var(--border); }

/* ====================================================================
   2026 premium page pass
   Fluid, clean, resilient page surfaces. These rules intentionally sit at the
   end of pages.css so they refine the existing system without touching route
   logic or markup.
   ==================================================================== */

:root {
  --page-max: 1180px;
  --page-max-wide: 1320px;
  --page-pad: clamp(16px, 4vw, 34px);
  --page-section-gap: clamp(22px, 4vw, 38px);
}

.wrap {
  width: min(var(--page-max), calc(100% - (var(--page-pad) * 2)));
}

main > .section > .wrap,
main > .page-screen > .wrap {
  width: min(var(--page-max), calc(100% - (var(--page-pad) * 2)));
}

.section-header {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--page-section-gap);
  text-align: center;
}

.section-header h2,
.modern-hero-title,
.pdv3-title,
.plugin-mini-title,
.pricing-card h3,
.pricing-card-v2 h3 {
  letter-spacing: 0;
  text-wrap: balance;
}

.section-header h2 {
  font-size: 2.35rem;
  line-height: 1.08;
}

.section-header p {
  max-width: 620px;
  margin-inline: auto;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .section-header {
    margin-bottom: 24px;
    text-align: left;
  }

  .section-header h2 {
    font-size: 1.85rem;
  }

  .section-header p {
    margin-inline: 0;
  }
}

/* Home hero: centered, modern, and not dependent on a single monitor height. */
.home-screen > .hero-pro .hero-pro-inner {
  width: min(940px, calc(100% - 32px));
  max-width: 940px;
  gap: clamp(16px, 3vh, 26px);
  min-width: 0;
}

.hero-pro-wordmark {
  letter-spacing: 0 !important;
}

.home-screen .hero-pro-wordmark {
  font-size: 5.7rem;
  line-height: 1.02;
}

.home-screen .hero-pro-tagline {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.08rem;
  line-height: 1.7;
}

.home-screen .hero-pro-cta {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.home-screen .hero-pro-live {
  max-width: min(100%, 560px);
  white-space: normal;
  justify-content: center;
  text-align: center;
}

@media (max-width: 920px) {
  .home-screen .hero-pro-wordmark {
    font-size: 4.25rem;
  }
}

@media (max-width: 620px) {
  .home-screen .hero-pro-wordmark {
    font-size: 3rem;
  }

  .home-screen .hero-pro-badge {
    width: min(100%, 300px);
    max-width: min(calc(100vw - 56px), 300px);
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
    white-space: normal;
    padding-inline: 12px;
  }

  .home-screen .hero-pro-tagline {
    width: min(100%, 300px);
    max-width: min(calc(100vw - 56px), 300px);
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .home-screen .hero-pro-cta .btn {
    width: min(100%, 300px);
    max-width: min(calc(100vw - 56px), 300px);
    box-sizing: border-box;
    justify-content: center;
  }

  .home-screen .hero-pro-live {
    width: min(100%, 300px);
    max-width: min(calc(100vw - 56px), 300px);
    box-sizing: border-box;
    padding-inline: 12px;
    gap: 7px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .home-screen .hero-pro-live svg {
    display: none;
  }
}

/* Plugin overview grid: predictable, balanced and never clipped. */
.plugins-mini-grid.plugins-mini-grid {
  width: min(100%, 1120px);
  gap: clamp(16px, 2.4vw, 24px);
  align-items: stretch;
}

@media (min-width: 1040px) {
  .plugins-mini-grid.plugins-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 620px) and (max-width: 1039px) {
  .plugins-mini-grid.plugins-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 619px) {
  .plugins-mini-grid.plugins-mini-grid {
    grid-template-columns: 1fr;
    width: min(100%, 420px);
  }
}

.plugin-mini {
  min-height: 0;
  height: 100%;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    rgba(8, 10, 16, 0.76);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 26px 60px -42px rgba(0, 0, 0, 0.92);
}

.plugin-mini-media {
  aspect-ratio: 16 / 9;
  min-height: 150px;
}

.plugin-mini-head {
  padding: 18px 18px 12px;
}

.plugin-mini-title {
  font-size: 1.18rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.plugin-mini-body {
  padding: 14px 18px 18px;
}

.plugin-mini-price {
  min-height: 36px;
  white-space: normal;
  line-height: 1.2;
}

@media (max-width: 619px) {
  .plugin-mini-media {
    aspect-ratio: 16 / 8.8;
  }

  .plugin-mini-title {
    font-size: 1.12rem;
  }
}

/* Pricing cards: equal rhythm, readable feature lists, no badge collisions. */
.pricing-grid,
.pricing-grid-v2,
.pricing-grid-fit {
  align-items: stretch;
  gap: clamp(16px, 2.4vw, 24px);
}

.pricing-grid .pricing-card,
.pricing-grid-v2 .pricing-card,
.pricing-grid-fit .pricing-card {
  height: 100%;
  min-width: 0;
  border-radius: 18px;
  padding: 46px 22px 24px;
  display: flex;
  flex-direction: column;
}

.pricing-card .pricing-features,
.pricing-card ul,
.pricing-card .feature-list {
  flex: 1 1 auto;
}

.pricing-card .btn,
.pricing-card .pricing-cta {
  margin-top: auto;
}

@media (max-width: 760px) {
  .pricing-grid,
  .pricing-grid-v2,
  .pricing-grid-fit {
    grid-template-columns: 1fr;
    width: min(100%, 430px);
    margin-inline: auto;
  }
}

/* Plugin detail page: cleaner resource page with natural page scroll. */
.pdv3 {
  width: min(var(--page-max-wide), calc(100% - (var(--page-pad) * 2)));
  padding: clamp(18px, 3vw, 34px) 0 clamp(54px, 7vw, 88px);
  gap: clamp(18px, 3vw, 30px);
}

.pdv3-resource-head,
.pdv3-card,
.pdv3-aside .pdv3-buy,
.pdv3-feature,
.pdv3-review,
.pdv3-review-form,
.pdv3-reviews-summary,
.pdv3-install,
.pdv3-step {
  border-radius: 18px;
}

.pdv3-resource-head {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255,166,0,0.08), transparent 42%),
    rgba(8, 10, 16, 0.74);
}

.pdv3-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: clamp(22px, 3vw, 36px);
}

.pdv3-aside {
  top: 88px;
  max-height: none;
  overflow: visible;
}

.pdv3-main {
  gap: clamp(24px, 3.4vw, 38px);
}

.pdv3-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  padding: clamp(16px, 2.6vw, 28px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018)),
    rgba(8, 10, 16, 0.68);
  border: 1px solid var(--border);
}

.pdv3-image {
  aspect-ratio: 16 / 10;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
}

.pdv3-summary {
  font-size: 1rem;
  line-height: 1.72;
}

.pdv3-highlights {
  display: grid;
  gap: 10px;
}

.pdv3-feature,
.pdv3-step,
.pdv3-review {
  min-width: 0;
}

.pdv3-feature span:last-child,
.pdv3-step span,
.pdv3-review-body,
.pdv3-review-title {
  overflow-wrap: anywhere;
}

.pdv3-downloads {
  display: grid;
  gap: 10px;
}

.pdv3-aside .pdv3-buy {
  background:
    linear-gradient(135deg, rgba(255,166,0,0.09), transparent 46%),
    rgba(8, 10, 16, 0.82);
}

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

  .pdv3-aside {
    position: static;
    order: -1;
  }

  .pdv3-aside .pdv3-buy {
    display: grid;
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .pdv3 {
    width: min(100% - 32px, 720px);
  }

  .pdv3-resource-head {
    align-items: flex-start;
    text-align: left;
  }

  .pdv3-resource-title {
    align-items: flex-start;
  }

  .pdv3-resource-meta,
  .pdv3-meta-chips {
    justify-content: flex-start;
  }

  .pdv3-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .pdv3-card {
    grid-template-columns: 1fr;
  }

  .pdv3-image {
    min-height: 180px;
  }
}

@media (max-width: 520px) {
  .pdv3 {
    width: min(100% - 24px, 430px);
  }

  .pdv3-resource-head {
    padding: 16px;
  }

  .pdv3-resource-icon {
    width: 58px;
    height: 58px;
  }

  .pdv3-resource-title .pdv3-title {
    font-size: 1.55rem;
  }

  .pdv3-rating-strip,
  .pdv3-resource-meta {
    width: 100%;
  }

  .pdv3-feature,
  .pdv3-review,
  .pdv3-review-form,
  .pdv3-reviews-summary,
  .pdv3-step {
    padding: 14px;
  }

  .pdv3-review {
    grid-template-columns: 1fr;
  }

  .pdv3-review-avatar,
  .pdv3-review-head,
  .pdv3-review-title,
  .pdv3-review-body,
  .pdv3-review-reply {
    grid-column: 1;
  }

  .pdv3-review-form .btn {
    width: 100%;
    justify-content: center;
  }
}

html[data-theme="light"] .plugin-mini,
html[data-theme="light"] .pdv3-card,
html[data-theme="light"] .pdv3-resource-head,
html[data-theme="light"] .pdv3-aside .pdv3-buy {
  background:
    linear-gradient(135deg, rgba(184,134,11,0.08), transparent 44%),
    rgba(255, 253, 247, 0.84);
  box-shadow: 0 24px 58px -44px rgba(90, 70, 10, 0.34);
}

/* Animation-safe hero fallback: the premium look must not depend on JS timing. */
.home-screen .hpw-line.hpw-accent,
.home-screen .hero-pro-tagline,
.home-screen .hero-pro-cta,
.home-screen .hero-pro-live {
  opacity: 1 !important;
  transform: none !important;
}

.home-screen .hpw-char {
  opacity: 1 !important;
  transform: none !important;
}

.home-screen .hpw-line.hpw-accent {
  animation: none !important;
}

.home-screen .hero-pro-tagline,
.home-screen .hero-pro-cta,
.home-screen .hero-pro-live {
  animation: none !important;
}

/* Final page-flow guard: all public pages keep natural document scrolling. */
body.home-fit,
body.plugins-fit,
body.pricing-fit,
body.plugin-fit {
  height: auto !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: block !important;
}

body.home-fit > main,
body.plugins-fit > main,
body.pricing-fit > main,
body.plugin-fit > main {
  min-height: 0 !important;
  overflow: visible !important;
  display: block !important;
}

.fit-viewport-page {
  min-height: auto !important;
  display: block !important;
  justify-content: initial !important;
  padding-top: clamp(22px, 4vw, 46px) !important;
}

.fit-viewport-page .modern-hero,
.fit-viewport-page .modern-hero-sm {
  padding-top: clamp(54px, 8vw, 88px) !important;
  padding-bottom: clamp(22px, 4vw, 42px) !important;
}

.page-screen.pt-tight {
  padding-top: clamp(24px, 4vw, 46px) !important;
}

@media (max-width: 620px) {
  .fit-viewport-page {
    padding-top: 18px !important;
  }

  .fit-viewport-page .modern-hero,
  .fit-viewport-page .modern-hero-sm {
    padding-top: 48px !important;
    padding-bottom: 20px !important;
  }
}

@media (max-width: 620px) {
  .pdv3 {
    width: min(calc(100vw - 24px), 342px) !important;
    margin-inline: auto !important;
  }

  .pdv3,
  .pdv3-layout,
  .pdv3-aside,
  .pdv3-main,
  .pdv3-card,
  .pdv3-aside .pdv3-buy {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .pdv3-aside .pdv3-buy {
    width: 100% !important;
    padding: 18px !important;
  }

  .pdv3-aside .pdv3-buy .btn,
  .pdv3-aside .pdv3-buy .btn-block {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    text-align: center;
  }
}
