/* ==========================================================================
   PreçoPlay BR — Light/Dark CSS Tokens, Multi-Store Scrollers, vBulletin Layout & CSS Rank Animations
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #EEF3FB;
  --bg-elevated: #FFFFFF;
  --border-color: #DCE5F2;
  --border-strong: #CBD5E1;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --accent-primary: #3B82F6;
  --accent-hover: #2563EB;
  --badge-discount-bg: #16A34A;
  --badge-low-bg: #D97706;
  --vb-header-bg: linear-gradient(180deg, #1E3A8A 0%, #172554 100%);
  --vb-subbar-bg: #EEF3FB;
  --vb-userbit-bg: #F8FAFC;
  --vb-quote-bg: #EEF3FB;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg-page: #0B1020;
  --bg-card: #141B2D;
  --bg-subtle: #1A233A;
  --bg-elevated: #1E2944;
  --border-color: #24304D;
  --border-strong: #344369;
  --text-primary: #EEF3FB;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --accent-primary: #3B82F6;
  --accent-hover: #60A5FA;
  --badge-discount-bg: #15803D;
  --badge-low-bg: #B45309;
  --vb-header-bg: linear-gradient(180deg, #141B2D 0%, #0B1020 100%);
  --vb-subbar-bg: #1A233A;
  --vb-userbit-bg: #1A233A;
  --vb-quote-bg: #16223D;
  color-scheme: dark;
}

body.pp-themed {
  background-color: var(--bg-page);
  color: var(--text-primary);
  transition: background-color 180ms ease, color 180ms ease;
}

.pp-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.pp-subtle {
  background-color: var(--bg-subtle);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.pp-select,
.pp-input {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .bg-white { background-color: var(--bg-card) !important; }
[data-theme="dark"] .bg-slate-50 { background-color: var(--bg-page) !important; }
[data-theme="dark"] .bg-slate-100 { background-color: var(--bg-subtle) !important; }
[data-theme="dark"] .border-slate-200,
[data-theme="dark"] .border-slate-300,
[data-theme="dark"] .border-slate-100 { border-color: var(--border-color) !important; }
[data-theme="dark"] .text-slate-900 { color: var(--text-primary) !important; }
[data-theme="dark"] .text-slate-800,
[data-theme="dark"] .text-slate-700 { color: var(--text-secondary) !important; }
[data-theme="dark"] .text-slate-600,
[data-theme="dark"] .text-slate-500 { color: var(--text-muted) !important; }
[data-theme="dark"] header.bg-white,
[data-theme="dark"] footer.bg-white { background-color: var(--bg-card) !important; }

/* Segmented Theme Toggle */
.pp-theme-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 0.5rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
}
.pp-theme-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}
.pp-theme-toggle button[aria-pressed="true"] {
  background-color: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

/* Horizontal Deal Scrollers (PSDeals / DekuDeals style) */
.pp-scroller-wrap {
  position: relative;
}
.pp-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pp-scroller::-webkit-scrollbar {
  display: none;
}
.pp-scroller > .pp-deal-card {
  flex: 0 0 228px;
  scroll-snap-align: start;
}
.pp-scroller-fade,
.pp-scroller-btn {
  display: none;
}
@media (min-width: 640px) {
  .pp-scroller > .pp-deal-card { flex: 0 0 248px; }
  .pp-scroller-fade {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3rem;
    pointer-events: none;
    z-index: 10;
    transition: opacity 180ms ease;
  }
  .pp-scroller-fade--left {
    left: 0;
    background: linear-gradient(to right, var(--bg-page), transparent);
  }
  .pp-scroller-fade--right {
    right: 0;
    background: linear-gradient(to left, var(--bg-page), transparent);
  }
  .pp-scroller-fade.is-hidden {
    opacity: 0;
  }
  .pp-scroller-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.22);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    cursor: pointer;
    transition: transform 150ms ease, border-color 150ms ease, color 150ms ease, opacity 180ms ease;
  }
  .pp-scroller-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-50%) scale(1.06);
  }
  .pp-scroller-btn--prev { left: 0.5rem; }
  .pp-scroller-btn--next { right: 0.5rem; }
  .pp-scroller-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
  }
}

.pp-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 0.55rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.pp-nav-chip:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.pp-nav-chip.is-active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 10px -2px rgba(59, 130, 246, 0.45);
}

/* ==========================================================================
   vBulletin Classic Forum Architecture
   ========================================================================== */
.vb-cat-box {
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  overflow: hidden;
  background-color: var(--bg-card);
  margin-bottom: 1.25rem;
}
.vb-cat-header {
  background: var(--vb-header-bg);
  color: #F8FAFC;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.vb-subbar {
  background-color: var(--vb-subbar-bg);
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.vb-board-row {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 120ms ease;
}
.vb-board-row:last-child { border-bottom: none; }
.vb-board-row:hover { background-color: var(--bg-subtle); }

.vb-postbit {
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  overflow: hidden;
  background-color: var(--bg-card);
  margin-bottom: 1rem;
}
.vb-postbit-head {
  background: var(--vb-header-bg);
  color: #E2E8F0;
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vb-postbit-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .vb-postbit-grid { grid-template-columns: 224px 1fr; }
}
.vb-userbit {
  background-color: var(--vb-userbit-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
}
@media (min-width: 768px) {
  .vb-userbit {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }
}

.vb-quote {
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--accent-primary);
  background-color: var(--vb-quote-bg);
  border-radius: 0 0.45rem 0.45rem 0;
  font-size: 0.875rem;
}
.vb-code {
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.45rem;
  background-color: #0F172A;
  color: #E2E8F0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  border: 1px solid #334155;
}
.vb-spoiler-box {
  margin: 0.65rem 0;
  border: 1px dashed var(--border-strong);
  border-radius: 0.45rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-subtle);
}
.vb-spoiler-content.is-hidden {
  display: none;
}

.vb-prefix {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 0.3rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-right: 0.4rem;
}
.vb-prefix-bug      { background-color: #DC2626; color: #FFFFFF; }
.vb-prefix-promo    { background-color: #16A34A; color: #FFFFFF; }
.vb-prefix-free     { background-color: #7C3AED; color: #FFFFFF; }
.vb-prefix-tip      { background-color: #0284C7; color: #FFFFFF; }
.vb-prefix-question { background-color: #D97706; color: #FFFFFF; }
.vb-prefix-official { background-color: #1E293B; color: #FDE047; border: 1px solid #F59E0B; }

/* ==========================================================================
   CSS3 Animated Forum Ranks & VIP Plates
   ========================================================================== */
@keyframes ppRankShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes ppAdminPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.72), 0 0 22px rgba(245, 158, 11, 0.55), 0 0 34px rgba(254, 240, 138, 0.35), inset 0 0 8px rgba(254, 240, 138, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.95), 0 0 32px rgba(245, 158, 11, 0.85), 0 0 46px rgba(254, 240, 138, 0.55), inset 0 0 14px rgba(254, 240, 138, 0.7);
    transform: scale(1.045);
  }
}
@keyframes ppHoloFlow {
  0% { background-position: 0% 50%; box-shadow: 0 0 12px rgba(217, 70, 239, 0.65), 0 0 22px rgba(6, 182, 212, 0.35); }
  50% { background-position: 100% 50%; box-shadow: 0 0 20px rgba(236, 72, 153, 0.88), 0 0 30px rgba(168, 85, 247, 0.55); }
  100% { background-position: 0% 50%; box-shadow: 0 0 12px rgba(217, 70, 239, 0.65), 0 0 22px rgba(6, 182, 212, 0.35); }
}
@keyframes ppCyanPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(6, 182, 212, 0.55), 0 0 16px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 0 16px rgba(14, 165, 233, 0.88), 0 0 26px rgba(56, 189, 248, 0.52); }
}
@keyframes ppEmeraldPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.45), 0 0 14px rgba(5, 150, 105, 0.25); }
  50% { box-shadow: 0 0 15px rgba(52, 211, 153, 0.78), 0 0 24px rgba(16, 185, 129, 0.45); }
}
@keyframes ppAmberPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.48), 0 0 14px rgba(217, 119, 6, 0.26); }
  50% { box-shadow: 0 0 16px rgba(251, 191, 36, 0.8), 0 0 24px rgba(245, 158, 11, 0.45); }
}
@keyframes ppSlatePulse {
  0%, 100% { box-shadow: 0 0 7px rgba(56, 189, 248, 0.38), 0 0 13px rgba(51, 65, 85, 0.35); }
  50% { box-shadow: 0 0 14px rgba(56, 189, 248, 0.72), 0 0 22px rgba(2, 132, 199, 0.42); }
}
@keyframes ppNeonPulse {
  0%, 100% { box-shadow: 0 0 9px rgba(139, 92, 246, 0.58), 0 0 18px rgba(217, 70, 239, 0.34); }
  50% { box-shadow: 0 0 17px rgba(168, 85, 247, 0.88), 0 0 28px rgba(217, 70, 239, 0.55); }
}
@keyframes ppRankSweep {
  0% { transform: translateX(-160%) skewX(-22deg); }
  55%, 100% { transform: translateX(260%) skewX(-22deg); }
}
@keyframes ppAdminEmber {
  0%, 100% { opacity: 0.35; transform: translateX(-30%) scale(1); }
  50% { opacity: 0.85; transform: translateX(30%) scale(1.06); }
}
@keyframes ppCrownBlaze {
  0%, 100% { transform: rotate(-11deg) translateY(0) scale(1.05); filter: drop-shadow(0 0 5px rgba(254, 240, 138, 0.95)); }
  25% { transform: rotate(8deg) translateY(-2px) scale(1.24); filter: drop-shadow(0 0 10px rgba(254, 240, 138, 1)); }
  50% { transform: rotate(-6deg) translateY(-1px) scale(1.16); filter: drop-shadow(0 0 7px rgba(253, 224, 71, 0.95)); }
  75% { transform: rotate(12deg) translateY(-2px) scale(1.26); filter: drop-shadow(0 0 11px rgba(255, 255, 255, 0.95)); }
}
@keyframes ppGemFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); filter: drop-shadow(0 0 4px rgba(244, 114, 182, 0.75)); }
  50% { transform: translateY(-1.5px) rotate(7deg) scale(1.18); filter: drop-shadow(0 0 9px rgba(103, 232, 249, 0.95)); }
}
@keyframes ppZapSurge {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 4px rgba(125, 211, 252, 0.75)); }
  35% { transform: scale(1.22) rotate(-10deg); filter: drop-shadow(0 0 9px rgba(224, 242, 254, 0.98)); }
  65% { transform: scale(1.1) rotate(8deg); filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.9)); }
}
@keyframes ppShieldGuard {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 3px rgba(167, 243, 208, 0.6)); }
  50% { transform: scale(1.16) rotate(-4deg); filter: drop-shadow(0 0 8px rgba(110, 231, 183, 0.92)); }
}
@keyframes ppSwordsClash {
  0%, 100% { transform: rotate(-9deg) scale(1); filter: drop-shadow(0 0 3px rgba(253, 230, 138, 0.65)); }
  50% { transform: rotate(9deg) scale(1.16); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.95)); }
}
@keyframes ppMedalSway {
  0%, 100% { transform: rotate(-6deg) translateY(0); filter: drop-shadow(0 0 3px rgba(186, 230, 253, 0.55)); }
  50% { transform: rotate(6deg) translateY(-1px) scale(1.12); filter: drop-shadow(0 0 7px rgba(125, 211, 252, 0.85)); }
}
@keyframes ppStarTwinkle {
  0%, 100% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 4px rgba(221, 214, 254, 0.75)); }
  50% { transform: rotate(18deg) scale(1.2); filter: drop-shadow(0 0 10px rgba(240, 171, 252, 0.98)); }
}
@keyframes ppVipHalo {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.55)); }
  50% { filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.9)); }
}

.rank-plate {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-size: 220% 220%;
}

.rank-staff-admin {
  background-image: linear-gradient(115deg, #991B1B 0%, #DC2626 25%, #F97316 50%, #FACC15 72%, #EA580C 88%, #991B1B 100%);
  background-size: 320% 320%;
  border: 1.5px solid #FEF08A;
  text-shadow: 0 0 10px rgba(254, 240, 138, 0.85), 0 1px 2px rgba(0, 0, 0, 0.65);
  animation: ppRankShimmer 1.9s linear infinite, ppAdminPulse 1.6s ease-in-out infinite;
}
.rank-staff-admin::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: ppRankSweep 2.1s ease-in-out infinite;
  pointer-events: none;
}
.rank-staff-supermod {
  background-image: linear-gradient(120deg, #0284C7 0%, #06B6D4 40%, #38BDF8 70%, #2563EB 100%);
  background-size: 260% 260%;
  border-color: #BAE6FD;
  animation: ppRankShimmer 2.8s ease infinite, ppCyanPulse 2.2s ease-in-out infinite;
}
.rank-staff-mod {
  background-image: linear-gradient(120deg, #047857 0%, #10B981 45%, #34D399 75%, #059669 100%);
  background-size: 260% 260%;
  border-color: #6EE7B7;
  animation: ppRankShimmer 3.4s ease infinite, ppEmeraldPulse 2.6s ease-in-out infinite;
}
.rank-vip-gold {
  background-image: linear-gradient(120deg, #92400E 0%, #F59E0B 45%, #FDE047 65%, #B45309 100%);
  color: #0F172A;
  border-color: #FEF08A;
  animation: ppRankShimmer 4s ease infinite, ppVipHalo 2.6s ease-in-out infinite;
}
.rank-prog-legendary {
  background-image: linear-gradient(120deg, #B45309 0%, #DC2626 50%, #F59E0B 100%);
  border-color: #FCD34D;
  animation: ppRankShimmer 5s ease infinite;
}
.rank-prog-baron {
  background-image: linear-gradient(120deg, #92400E 0%, #D97706 100%);
  border-color: #FBBF24;
}
.rank-prog-knight {
  background-image: linear-gradient(120deg, #5B21B6 0%, #6D28D9 100%);
  border-color: #A78BFA;
}
.rank-prog-warrior {
  background-image: linear-gradient(120deg, #1E40AF 0%, #2563EB 100%);
  border-color: #60A5FA;
}
.rank-prog-squire {
  background-image: linear-gradient(120deg, #115E59 0%, #0F766E 100%);
  border-color: #2DD4BF;
}
.rank-prog-plebeian {
  background-image: linear-gradient(120deg, #334155 0%, #475569 100%);
  border-color: #94A3B8;
}

.rank-staff-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 9999px;
  padding: 0.24rem 0.7rem;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #FFFFFF;
}
.rank-staff-icon,
.rank-staff-label {
  position: relative;
  z-index: 2;
}
.rank-staff-icon {
  display: inline-block;
  transform-origin: center;
}

.rank-staff-fire {
  padding: 0.28rem 0.8rem;
  background-image: linear-gradient(115deg, #991B1B, #DC2626, #F97316, #FACC15, #EA580C, #B91C1C);
  background-size: 320% 320%;
  border: 1.5px solid #FEF08A;
  text-shadow: 0 0 10px rgba(254, 240, 138, 0.85), 0 1px 2px rgba(0, 0, 0, 0.65);
  animation: ppRankShimmer 1.9s linear infinite, ppAdminPulse 1.6s ease-in-out infinite;
}
.rank-staff-fire::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 50%, rgba(254, 240, 138, 0.42), transparent 55%),
    radial-gradient(circle at 75% 50%, rgba(251, 146, 60, 0.42), transparent 55%);
  animation: ppAdminEmber 1.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.rank-staff-fire .rank-staff-icon {
  animation: ppCrownBlaze 1.4s ease-in-out infinite;
}

.rank-staff-holo {
  background-image: linear-gradient(120deg, #9333EA, #EC4899, #06B6D4, #A855F7, #DB2777);
  background-size: 320% 320%;
  border: 1px solid rgba(245, 208, 254, 0.88);
  animation: ppHoloFlow 2.5s ease infinite;
}
.rank-staff-holo .rank-staff-icon {
  animation: ppGemFloat 2s ease-in-out infinite;
}

.rank-staff-pulse-cyan {
  background-image: linear-gradient(120deg, #0284C7, #06B6D4, #38BDF8, #2563EB);
  background-size: 260% 260%;
  border: 1px solid rgba(186, 230, 253, 0.82);
  animation: ppRankShimmer 2.7s ease infinite, ppCyanPulse 2.1s ease-in-out infinite;
}
.rank-staff-pulse-cyan .rank-staff-icon {
  animation: ppZapSurge 1.8s ease-in-out infinite;
}

.rank-staff-shimmer-emerald {
  background-image: linear-gradient(120deg, #047857, #10B981, #34D399, #059669);
  background-size: 260% 260%;
  border: 1px solid rgba(167, 243, 208, 0.78);
  animation: ppRankShimmer 3.2s ease infinite, ppEmeraldPulse 2.4s ease-in-out infinite;
}
.rank-staff-shimmer-emerald .rank-staff-icon {
  animation: ppShieldGuard 2.3s ease-in-out infinite;
}

.rank-staff-shimmer-amber {
  background-image: linear-gradient(120deg, #B45309, #D97706, #FBBF24, #F59E0B);
  background-size: 260% 260%;
  border: 1px solid rgba(253, 230, 138, 0.78);
  animation: ppRankShimmer 3.2s ease infinite, ppAmberPulse 2.4s ease-in-out infinite;
}
.rank-staff-shimmer-amber .rank-staff-icon {
  animation: ppSwordsClash 2.1s ease-in-out infinite;
}

.rank-staff-pulse-slate {
  background-image: linear-gradient(120deg, #334155, #0284C7, #38BDF8, #475569);
  background-size: 260% 260%;
  border: 1px solid rgba(148, 163, 184, 0.78);
  animation: ppRankShimmer 3.5s ease infinite, ppSlatePulse 2.5s ease-in-out infinite;
}
.rank-staff-pulse-slate .rank-staff-icon {
  animation: ppMedalSway 2.4s ease-in-out infinite;
}

.rank-staff-neon-violet {
  background-image: linear-gradient(120deg, #4F46E5, #8B5CF6, #D946EF, #6366F1);
  background-size: 260% 260%;
  border: 1px solid rgba(221, 214, 254, 0.85);
  animation: ppRankShimmer 3s ease infinite, ppNeonPulse 2.2s ease-in-out infinite;
}
.rank-staff-neon-violet .rank-staff-icon {
  animation: ppStarTwinkle 2.2s ease-in-out infinite;
}

.rank-staff-pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 44%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: ppRankSweep 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.rank-staff-fire::after {
  width: 52%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation-duration: 2.05s;
}
.rank-staff-holo::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  animation-duration: 2.5s;
}

@media (prefers-reduced-motion: reduce) {
  .rank-plate,
  .rank-staff-admin,
  .rank-staff-admin::after,
  .rank-staff-supermod,
  .rank-staff-mod,
  .rank-staff-pill,
  .rank-staff-pill::after,
  .rank-staff-fire,
  .rank-staff-fire::before,
  .rank-staff-fire::after,
  .rank-staff-holo,
  .rank-staff-pulse-cyan,
  .rank-staff-shimmer-emerald,
  .rank-staff-shimmer-amber,
  .rank-staff-pulse-slate,
  .rank-staff-neon-violet,
  .rank-staff-icon {
    animation: none !important;
  }
}

/* ==========================================================================
   Preview-Parity Modern Forum UI (Light & Dark Mode)
   ========================================================================== */
.pp-global-notice {
  background-color: rgba(255, 251, 235, 0.96);
  border: 1px solid rgba(252, 211, 77, 0.85);
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #78350f;
}
[data-theme="dark"] .pp-global-notice {
  background-color: rgba(69, 26, 3, 0.35);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fde68a;
}
.pp-global-notice-tag {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pp-global-notice-link {
  font-weight: 700;
  color: inherit;
}
.pp-global-notice-link:hover { text-decoration: underline; }

/* Filter Strip */
.pp-forum-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
}
.pp-forum-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.pp-forum-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  transition: all 140ms ease;
  text-decoration: none;
  cursor: pointer;
}
.pp-forum-pill:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}
.pp-forum-pill.is-active {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  font-weight: 700;
}
[data-theme="dark"] .pp-forum-pill.is-active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}
.pp-pm-badge {
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  background-color: #fbbf24;
  color: #0f172a;
  font-size: 0.625rem;
  font-weight: 800;
}

/* Main 8 / 4 Forum Grid */
.pp-forum-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .pp-forum-layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }
}
.pp-forum-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}
.pp-forum-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

/* Thread Table */
.pp-thread-table {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pp-thread-table-head {
  background-color: #0f172a;
  color: #e2e8f0;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pp-col-status { display: none; }
.pp-col-topic  { grid-column: span 12 / span 12; }
.pp-col-last   { display: none; }
.pp-col-reps   { display: none; }
.pp-col-views  { display: none; }
@media (min-width: 640px) {
  .pp-col-status { display: flex; grid-column: span 1 / span 1; justify-content: center; }
  .pp-col-topic  { grid-column: span 7 / span 7; }
  .pp-col-reps   { display: block; grid-column: span 2 / span 2; text-align: center; }
  .pp-col-views  { display: block; grid-column: span 2 / span 2; text-align: center; }
}
@media (min-width: 768px) {
  .pp-col-topic  { grid-column: span 5 / span 5; }
  .pp-col-last   { display: block; grid-column: span 2 / span 2; min-width: 0; }
}

.pp-thread-row {
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid var(--border-color);
  transition: background-color 140ms ease;
}
.pp-thread-row:first-child { border-top: none; }
.pp-thread-row:hover { background-color: var(--bg-subtle); }
.pp-thread-row--sticky { background-color: rgba(254, 243, 199, 0.35); }
[data-theme="dark"] .pp-thread-row--sticky { background-color: rgba(120, 53, 15, 0.16); }

/* Status Circle */
.pp-status-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}
.pp-status-circle--official { background-color: #fffbeb; border-color: #fcd34d; color: #d97706; }
.pp-status-circle--bug      { background-color: #faf5ff; border-color: #d8b4fe; color: #9333ea; }
.pp-status-circle--question { background-color: #ecfdf5; border-color: #6ee7b7; color: #059669; }
.pp-status-circle--hot      { background-color: #fff1f2; border-color: #fda4af; color: #e11d48; }
[data-theme="dark"] .pp-status-circle--official { background-color: rgba(120, 53, 15, 0.4); border-color: rgba(245, 158, 11, 0.4); color: #fcd34d; }
[data-theme="dark"] .pp-status-circle--bug      { background-color: rgba(88, 28, 135, 0.4); border-color: rgba(168, 85, 247, 0.4); color: #d8b4fe; }
[data-theme="dark"] .pp-status-circle--question { background-color: rgba(6, 78, 59, 0.4); border-color: rgba(16, 185, 129, 0.4); color: #6ee7b7; }
[data-theme="dark"] .pp-status-circle--hot      { background-color: rgba(136, 19, 55, 0.4); border-color: rgba(244, 63, 94, 0.4); color: #fda4af; }

/* Author Avatar + Mini Rank Dot */
.pp-author-avatar {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: #1e293b;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #e2e8f0;
  transition: transform 140ms ease;
  text-decoration: none;
}
.pp-author-avatar:hover { transform: scale(1.05); }
[data-theme="dark"] .pp-author-avatar { background-color: #334155; box-shadow: 0 0 0 2px #475569; }
.pp-author-avatar--staff {
  background: linear-gradient(135deg, #f59e0b 0%, #c2410c 100%);
  box-shadow: 0 0 0 2px #fcd34d;
}
.pp-author-avatar-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 9999px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Prefix Pills */
.pp-prefix-pill {
  display: inline-block;
  padding: 0.125rem 0.42rem;
  border-radius: 0.3rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pp-prefix-bug      { background-color: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }
.pp-prefix-promo    { background-color: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; }
.pp-prefix-free     { background-color: #f0fdfa; color: #115e59; border: 1px solid #5eead4; }
.pp-prefix-tip      { background-color: #eef2ff; color: #3730a3; border: 1px solid #a5b4fc; }
.pp-prefix-question { background-color: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.pp-prefix-official { background-color: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
[data-theme="dark"] .pp-prefix-bug      { background-color: rgba(124, 45, 18, 0.5); color: #fed7aa; border-color: rgba(249, 115, 22, 0.4); }
[data-theme="dark"] .pp-prefix-promo    { background-color: rgba(30, 58, 138, 0.5); color: #bfdbfe; border-color: rgba(59, 130, 246, 0.4); }
[data-theme="dark"] .pp-prefix-free     { background-color: rgba(19, 78, 74, 0.5); color: #99f6e4; border-color: rgba(20, 184, 166, 0.4); }
[data-theme="dark"] .pp-prefix-tip      { background-color: rgba(49, 46, 129, 0.5); color: #c7d2fe; border-color: rgba(99, 102, 241, 0.4); }
[data-theme="dark"] .pp-prefix-question { background-color: rgba(6, 78, 59, 0.5); color: #a7f3d0; border-color: rgba(16, 185, 129, 0.4); }
[data-theme="dark"] .pp-prefix-official { background-color: rgba(120, 53, 15, 0.5); color: #fde68a; border-color: rgba(245, 158, 11, 0.4); }

.pp-pinned-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.42rem;
  border-radius: 0.3rem;
  font-size: 0.625rem;
  font-weight: 800;
  background-color: #fef3c7;
  color: #78350f;
  border: 1px solid #fcd34d;
  white-space: nowrap;
}
[data-theme="dark"] .pp-pinned-pill {
  background-color: rgba(120, 53, 15, 0.6);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.4);
}
.pp-board-chip {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.pp-board-chip:hover { color: var(--text-primary); }

/* 20 Medieval Badges, Staff Compact & Stars */
.rank-staff-pill--compact {
  font-size: 0.625rem !important;
  padding: 0.14rem 0.5rem !important;
}
.pp-medieval-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.72rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}
.pp-medieval-badge--compact {
  padding: 0.14rem 0.6rem;
  font-size: 0.6875rem;
}
.pp-medieval-badge--truncate {
  max-width: 100%;
  overflow: hidden;
  flex-shrink: 1;
}
.pp-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}
.pp-star { font-size: 0.75rem; line-height: 1; }
.pp-star--on  { color: #fbbf24; }
.pp-star--off { color: #cbd5e1; }
[data-theme="dark"] .pp-star--off { color: #475569; }

.pp-rep-bar-wrap {
  width: 100%;
  max-width: 160px;
  height: 0.4rem;
  border-radius: 9999px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin: 0 auto;
}
.pp-rep-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 55%, #fbbf24 100%);
  border-radius: 9999px;
}

/* Sidebar Cards & Legend */
.pp-forum-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pp-forum-card-head {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.pp-forum-card-head h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.pp-forum-card-body { padding: 0.75rem; }
.pp-cta-head {
  background: linear-gradient(90deg, #0d2248 0%, #0f1f3d 55%, #0f172a 100%);
  color: #ffffff;
  padding: 1rem 1.25rem;
}
.pp-count-badge {
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.pp-count-badge--amber {
  border-color: rgba(251, 191, 36, 0.6);
  background-color: rgba(245, 158, 11, 0.15);
  color: #b45309;
}
[data-theme="dark"] .pp-count-badge--amber { color: #fcd34d; }

.pp-rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pp-medieval-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 430px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pp-medieval-scroll::-webkit-scrollbar { display: none; }

.pp-rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
}
.pp-rank-item--active {
  border-color: var(--accent-primary);
  background-color: rgba(37, 99, 235, 0.08);
}
.pp-rank-item-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}
.pp-rank-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-rank-item-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  flex-shrink: 0;
}
.pp-rank-item-meta strong { color: var(--text-primary); }

.pp-tier-tag {
  padding: 0.1rem 0.38rem;
  border-radius: 0.25rem;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.pp-tier-tag--prestige {
  border: 1px solid rgba(251, 191, 36, 0.7);
  background-color: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
.pp-tier-tag--mythic {
  border: 1px solid rgba(129, 140, 248, 0.65);
  background-color: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}
[data-theme="dark"] .pp-tier-tag--prestige { color: #fcd34d; }
[data-theme="dark"] .pp-tier-tag--mythic { color: #a5b4fc; }

/* Bottom Stats Card */
.pp-stats-head {
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pp-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.75rem;
  transition: border-color 140ms ease;
}
.pp-online-pill:hover { border-color: var(--accent-primary); }

/* Postbit & BBCode Parity */
.vb-postbit-modern {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .vb-postbit-modern {
    grid-template-columns: minmax(210px, 3fr) minmax(0, 9fr);
  }
}
.vb-userbit-modern {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .vb-userbit-modern {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }
}
.vb-userbit-avatar {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.vb-userbit-dot {
  position: absolute;
  bottom: -0.25rem;
  right: -0.25rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 9999px;
  border: 2px solid var(--bg-subtle);
}
.vb-userbit-dl {
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-variant-numeric: tabular-nums;
}
.vb-userbit-dl-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.vb-quote-header {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--accent-primary);
}
.vb-spoiler {
  margin: 0.65rem 0;
  border: 1px dashed var(--border-strong);
  border-radius: 0.5rem;
  padding: 0.45rem 0.75rem;
  background-color: var(--bg-subtle);
}
.vb-spoiler-toggle {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}
.vb-spoiler-body {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}
.vb-link {
  color: var(--accent-primary);
  text-decoration: underline;
  font-weight: 600;
}
.vb-inline-img {
  max-width: 100%;
  max-height: 420px;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  margin: 0.5rem 0;
}
.vb-video-wrap {
  margin: 0.75rem 0;
  position: relative;
  width: 100%;
  max-width: 36rem;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.vb-video-frame {
  width: 100%;
  height: 100%;
  border: 0;
}
.pp-multiquote-btn.is-active {
  background-color: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
  color: #ffffff !important;
}

/* PM & Member Grids */
.pp-pm-grid,
.pp-member-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .pp-pm-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (min-width: 1024px) {
  .pp-member-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.pp-pm-item {
  width: 100%;
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.pp-pm-item:last-child { border-bottom: none; }
.pp-pm-item:hover,
.pp-pm-item.is-selected { background-color: var(--bg-subtle); }

/* ==========================================================================
   Dark Mode Safety Overrides & Preview-Parity Components
   ========================================================================== */
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: var(--bg-subtle) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}
[data-theme="dark"] .bg-blue-50 { background-color: rgba(30, 58, 138, 0.35) !important; }
[data-theme="dark"] .bg-emerald-50 { background-color: rgba(6, 78, 59, 0.35) !important; }
[data-theme="dark"] .bg-amber-50 { background-color: rgba(120, 53, 15, 0.35) !important; }
[data-theme="dark"] .bg-red-50 { background-color: rgba(127, 29, 29, 0.35) !important; }
[data-theme="dark"] .border-blue-200 { border-color: rgba(59, 130, 246, 0.45) !important; }
[data-theme="dark"] .border-emerald-200,
[data-theme="dark"] .border-emerald-300 { border-color: rgba(16, 185, 129, 0.45) !important; }
[data-theme="dark"] .border-amber-200,
[data-theme="dark"] .border-amber-300 { border-color: rgba(245, 158, 11, 0.45) !important; }
[data-theme="dark"] .border-red-200 { border-color: rgba(239, 68, 68, 0.45) !important; }
[data-theme="dark"] .text-blue-900,
[data-theme="dark"] .text-blue-700 { color: #93c5fd !important; }
[data-theme="dark"] .text-emerald-800,
[data-theme="dark"] .text-emerald-700,
[data-theme="dark"] .text-emerald-900 { color: #6ee7b7 !important; }
[data-theme="dark"] .text-amber-900,
[data-theme="dark"] .text-amber-800,
[data-theme="dark"] .text-amber-700 { color: #fde68a !important; }
[data-theme="dark"] .text-red-700,
[data-theme="dark"] .text-red-900 { color: #fca5a5 !important; }
[data-theme="dark"] .text-purple-700 { color: #d8b4fe !important; }
[data-theme="dark"] .hover\:bg-slate-50:hover { background-color: var(--bg-subtle) !important; }

/* Account Dropdown Menu */
.pp-dropdown {
  position: relative;
  display: inline-block;
}
.pp-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 15.5rem;
  border-radius: 0.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.3);
  z-index: 60;
  overflow: hidden;
}
.pp-dropdown-head {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
}
.pp-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.58rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 120ms ease;
}
.pp-dropdown-item:hover {
  background-color: var(--bg-subtle);
  color: var(--accent-primary);
}
.pp-dropdown-item--danger {
  color: #dc2626;
}
[data-theme="dark"] .pp-dropdown-item--danger {
  color: #f87171;
}

/* Mobile Nav Strip */
.pp-mobile-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  scrollbar-width: none;
}
.pp-mobile-nav::-webkit-scrollbar { display: none; }
.pp-mobile-nav .pp-nav-link {
  font-size: 0.78rem;
  padding: 0.25rem 0.1rem;
}
.pp-mobile-nav .pp-nav-link::after {
  bottom: -0.35rem;
}
@media (min-width: 1024px) {
  .pp-mobile-nav { display: none; }
}

/* Hero Banner */
.pp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #0369a1 100%);
  color: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
  .pp-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.25rem;
  }
}

/* Deals Layout with Sidebar */
.pp-deals-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .pp-deals-shell {
    grid-template-columns: 272px minmax(0, 1fr);
  }
}
.pp-deals-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.15rem;
}
@media (min-width: 640px) {
  .pp-deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .pp-deals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Floating Offline Indicator & PWA Install */
.pp-offline-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  background-color: #78350f;
  color: #fef3c7;
  border: 1px solid #f59e0b;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
.pp-offline-banner.hidden {
  display: none !important;
}

/* Interactive Platform Tabs on Game Detail */
.pp-plat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
}
.pp-plat-tab.is-active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

/* Admin & Social Studio Helpers */
.pp-social-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
}
.pp-share-telegram { background-color: #0284c7; }
.pp-share-whatsapp { background-color: #16a34a; }
.pp-share-x        { background-color: #0f172a; border: 1px solid var(--border-color); }

/* ==========================================================================
   Utility Polyfills (Complementing static app.css for Preview-Parity Views)
   ========================================================================== */
.brand-text {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}
.btn-primary-theme {
  background-color: var(--accent-primary, #2563eb);
  color: #ffffff;
}
.btn-primary-theme:hover {
  filter: brightness(1.08);
}

/* Missing Spacing & Sizing Utilities */
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-1\.5 { margin-left: 0.375rem; }
.p-3\.5 { padding: 0.875rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2\.5 { padding-bottom: 0.625rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pr-3 { padding-right: 0.75rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.space-y-10 > :not(:first-child) { margin-top: 2.5rem; }

.w-px { width: 1px; }
.w-16 { width: 4rem; }
.w-28 { width: 7rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }
.w-1\/2 { width: 50%; }
.h-64 { height: 16rem; }
.max-h-48 { max-height: 12rem; }
.max-h-56 { max-height: 14rem; }
.max-h-96 { max-height: 24rem; }
.max-w-xs { max-width: 20rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* Positioning & Layering */
.top-2 { top: 0.5rem; }
.left-2 { left: 0.5rem; }
.bottom-2 { bottom: 0.5rem; }
.z-\[80\] { z-index: 80; }

/* Borders, Radius, Text & Lists */
.rounded-2xl { border-radius: 1rem; }
.list-decimal { list-style-type: decimal; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Colors & Effects */
.bg-blue-600 { background-color: #2563eb; }
.bg-emerald-600 { background-color: #059669; }
.hover\:bg-emerald-700:hover { background-color: #047857; }
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15); }
.hover\:bg-white\/25:hover { background-color: rgba(255, 255, 255, 0.25); }
.border-white\/25 { border-color: rgba(255, 255, 255, 0.25); }
.text-amber-500 { color: #f59e0b; }
.text-blue-500 { color: #3b82f6; }
.hover\:text-blue-500:hover { color: #3b82f6; }
.text-emerald-500 { color: #10b981; }
.text-red-600 { color: #dc2626; }
.hover\:opacity-80:hover { opacity: 0.8; }
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }

/* Grid & Responsive Base */
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

/* ==========================================================================
   PS Deals-Grade Game Detail Layout (Hero, HLTB, Trophies, Gallery, Modals)
   ========================================================================== */
.pp-gd-hero {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}
.pp-gd-hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  filter: blur(28px) saturate(1.15);
  pointer-events: none;
  transform: scale(1.08);
}
[data-theme="light"] .pp-gd-hero-backdrop {
  opacity: 0.08;
}
.pp-gd-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
}
@media (min-width: 1024px) {
  .pp-gd-hero-inner {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 2rem;
    padding: 1.75rem;
  }
}
.pp-gd-cover-box {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  aspect-ratio: 4 / 3;
}
.pp-gd-discount-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 0.45rem;
  background-color: #16a34a;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pp-gd-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.28));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 800;
}
[data-theme="light"] .pp-gd-sub-badge {
  color: #b45309;
  background: #fef3c7;
}
.pp-gd-discount-tag.hidden,
.pp-gd-sub-badge.hidden {
  display: none !important;
}
.pp-gd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .pp-gd-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.pp-gd-kpi-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  padding: 0.65rem 0.85rem;
}

/* HLTB Horizontal Bars */
.pp-gd-hltb-track {
  width: 100%;
  height: 0.42rem;
  border-radius: 9999px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-top: 0.35rem;
}
.pp-gd-hltb-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* Trophy Tiers & List */
.pp-trophy-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pp-trophy-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  display: inline-block;
  flex-shrink: 0;
}
.pp-trophy-dot--platinum { background: linear-gradient(135deg, #e0f2fe, #38bdf8); }
.pp-trophy-dot--gold     { background: linear-gradient(135deg, #fef08a, #eab308); }
.pp-trophy-dot--silver   { background: linear-gradient(135deg, #f1f5f9, #94a3b8); }
.pp-trophy-dot--bronze   { background: linear-gradient(135deg, #fed7aa, #c2410c); }

.pp-gd-trophy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

/* Screenshots Strip & Lightbox */
.pp-gd-shots-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
}
.pp-gd-shot-btn {
  flex: 0 0 240px;
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  scroll-snap-align: start;
  cursor: pointer;
  padding: 0;
  transition: transform 150ms ease, border-color 150ms ease;
}
.pp-gd-shot-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}
.pp-gd-shot-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Editions Grid */
.pp-gd-editions-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .pp-gd-editions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .pp-gd-editions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Modals (Price Analysis, Trophies Full List, Lightbox) */
.pp-gd-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  background-color: rgba(6, 10, 22, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pp-gd-modal.hidden {
  display: none;
}
.pp-gd-modal-panel {
  width: 100%;
  max-width: 46rem;
  max-height: 88vh;
  overflow-y: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

/* Utilities needed in new partials */
.h-72 { height: 18rem; }
.aspect-\[16\/9\] { aspect-ratio: 16 / 9; }
.text-sky-400 { color: #38bdf8; }
.text-yellow-400 { color: #facc15; }
.bg-blue-500\/10 { background-color: rgba(59, 130, 246, 0.1); }
.border-blue-500\/30 { border-color: rgba(59, 130, 246, 0.3); }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.h-12 { height: 3rem; }
.pr-2 { padding-right: 0.5rem; }
.pt-2\.5 { padding-top: 0.625rem; }
.space-y-1 > :not(:first-child) { margin-top: 0.25rem; }
.leading-tight { line-height: 1.25; }
.opacity-85 { opacity: 0.85; }
.items-baseline { align-items: baseline; }
.list-disc { list-style-type: disc; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.18), 0 2px 4px -2px rgba(0, 0, 0, 0.12); }
.focus\:ring-blue-500:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 1px;
}

/* ==========================================================================
   Modern Navigation, Hidden Native Scrollbars & Floating Rail Controls
   ========================================================================== */
.pp-hide-scrollbar,
.pp-gd-shots-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pp-hide-scrollbar::-webkit-scrollbar,
.pp-gd-shots-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pp-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.15rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 150ms ease;
}
.pp-nav-link:hover,
.pp-nav-link.is-active {
  color: var(--text-primary);
}
.pp-nav-link.is-active {
  font-weight: 700;
}
.pp-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  border-radius: 9999px;
  background-color: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pp-nav-link:hover::after,
.pp-nav-link.is-active::after {
  transform: scaleX(1);
}

.pp-subnav-bar {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-page);
}
.pp-subnav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
@media (min-width: 1024px) {
  .pp-subnav-inner {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }
}

.pp-seg-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 0.65rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
}
.pp-seg-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.72rem;
  border-radius: 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.pp-seg-item:hover {
  color: var(--text-primary);
}
.pp-seg-item.is-active {
  background-color: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
[data-theme="dark"] .pp-seg-item.is-active {
  background-color: var(--accent-primary);
  color: #FFFFFF;
}

/* Horizontal Rail with Sleek Floating Chevrons (No Ugly Scrollbar) */
.pp-rail-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.pp-rail {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.15rem 0.25rem;
  flex: 1;
  min-width: 0;
}
.pp-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.pp-rail-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.75rem;
  pointer-events: none;
  z-index: 5;
  transition: opacity 150ms ease;
}
.pp-rail-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--rail-fade-bg, var(--bg-page)) 20%, transparent);
}
.pp-rail-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--rail-fade-bg, var(--bg-page)) 20%, transparent);
}
.pp-rail-fade.is-hidden {
  opacity: 0;
}
.pp-rail-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.22);
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease, border-color 150ms ease, color 150ms ease;
}
.pp-rail-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-50%) scale(1.06);
}
.pp-rail-btn--prev { left: 0.15rem; }
.pp-rail-btn--next { right: 0.15rem; }
.pp-rail-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Platform Grouped Popover */
.pp-platform-dropdown {
  position: relative;
  flex-shrink: 0;
}
.pp-platform-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.78rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}
.pp-platform-trigger:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}
.pp-platform-trigger.has-active {
  border-color: var(--accent-primary);
  background-color: rgba(59, 130, 246, 0.12);
  color: var(--text-primary);
}
.pp-platform-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(26rem, calc(100vw - 1.5rem));
  padding: 0.9rem;
  border-radius: 0.85rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 22px 44px -12px rgba(2, 6, 23, 0.42);
  z-index: 65;
}
.pp-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 480px) {
  .pp-platform-grid {
    grid-template-columns: 1fr;
  }
}
.pp-platform-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.pp-plat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.58rem;
  border-radius: 0.42rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 140ms ease;
}
.pp-plat-pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}
.pp-plat-pill.is-active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   Global Responsive Safeguards, Hero Dark-Mode CTAs & Multi-Viewport Mobile Polish
   ========================================================================== */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

/* Dedicated Hero CTAs (Immune to [data-theme="dark"] .bg-white override) */
.pp-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 0.55rem;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.22);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.pp-hero-cta:hover {
  background-color: #f1f5f9 !important;
  color: #020617 !important;
  transform: translateY(-1px);
}
[data-theme="dark"] .pp-hero-cta {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
}
[data-theme="dark"] .pp-hero-cta:hover {
  background-color: #e2e8f0 !important;
  color: #020617 !important;
}

.pp-hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 0.55rem;
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.32);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.pp-hero-cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.52);
  color: #ffffff !important;
}

/* Mobile & Tablet Viewport Polish (320px / 360px / 375px / 430px / 640px / 768px) */
.pp-thread-row > *,
.vb-postbit-modern > * {
  min-width: 0;
}
.vb-postbit-modern,
.pp-global-notice,
.pp-forum-card,
.pp-card {
  overflow-wrap: anywhere;
}
.vb-quote-body {
  font-size: 0.875rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 639px) {
  .pp-rail-btn {
    display: none !important;
  }
  .pp-hero {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  .pp-subnav-inner {
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
  .pp-platform-trigger {
    padding: 0.36rem 0.65rem;
    font-size: 0.72rem;
  }
  .pp-seg-item {
    padding: 0.34rem 0.62rem;
    font-size: 0.73rem;
  }
  .pp-gd-hero-inner {
    padding: 0.9rem;
    gap: 1rem;
  }
  .pp-gd-shot-btn {
    flex: 0 0 185px;
  }
  .pp-gd-modal {
    padding: 0.625rem;
  }
  .pp-gd-modal-panel {
    max-height: 92vh;
  }
  .pp-theme-toggle button {
    padding: 0.22rem 0.4rem;
    font-size: 0.7rem;
  }
  .pp-dropdown-menu {
    right: 0;
    width: min(15.5rem, calc(100vw - 1.5rem));
  }
  .pp-scroller > .pp-deal-card {
    flex: 0 0 220px;
  }
}

@media (max-width: 399px) {
  .pp-scroller > .pp-deal-card {
    flex: 0 0 205px;
  }
  .pp-offline-banner {
    left: 0.625rem;
    right: 0.625rem;
    bottom: 0.625rem;
    justify-content: center;
  }
}

/* ==========================================================================
   Complete Static Utility Coverage (Syncing php-src templates without build step)
   ========================================================================== */
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[16\/9\] { aspect-ratio: 16 / 9; }

.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }

.-bottom-1 { bottom: -0.25rem; }
.-right-1 { right: -0.25rem; }
.z-\[70\] { z-index: 70; }
.z-\[100\] { z-index: 100; }

.w-2 { width: 0.5rem; }
.w-3\.5 { width: 0.875rem; }
.w-\[calc\(100\%-2rem\)\] { width: calc(100% - 2rem); }
.h-2 { height: 0.5rem; }
.h-3\.5 { height: 0.875rem; }
.h-56 { height: 14rem; }
.max-w-full { max-width: 100%; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-h-\[75vh\] { max-height: 75vh; }

.gap-1\.5 { gap: 0.375rem; }
.gap-2\.5 { gap: 0.625rem; }
.space-y-0\.5 > :not(:first-child) { margin-top: 0.125rem; }
.space-y-1\.5 > :not(:first-child) { margin-top: 0.375rem; }
.space-y-2\.5 > :not(:first-child) { margin-top: 0.625rem; }

.p-1\.5 { padding: 0.375rem; }
.p-2\.5 { padding: 0.625rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.py-0\.2 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.pt-0\.5 { padding-top: 0.125rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mr-1 { margin-right: 0.25rem; }

.text-\[10px\] { font-size: 10px; line-height: 1.3; }
.text-\[11px\] { font-size: 11px; line-height: 1.35; }
.leading-none { line-height: 1; }
.italic { font-style: italic; }
.break-all { word-break: break-all; }
.break-words { overflow-wrap: break-word; word-break: break-word; }
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opacity-75 { opacity: 0.75; }
.opacity-80 { opacity: 0.8; }

.bg-amber-500 { background-color: #f59e0b; }
.bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2); }
.bg-blue-500 { background-color: #3b82f6; }
.bg-emerald-500 { background-color: #10b981; }
.bg-rose-600 { background-color: #e11d48; }
.bg-rose-500\/10 { background-color: rgba(244, 63, 94, 0.1); }
.bg-slate-950\/60 { background-color: rgba(2, 6, 23, 0.6); }
.bg-slate-950\/65 { background-color: rgba(2, 6, 23, 0.65); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }

.border-amber-400\/60 { border-color: rgba(251, 191, 36, 0.6); }
.border-current\/20 { border-color: currentColor; }
.border-rose-500\/30 { border-color: rgba(244, 63, 94, 0.3); }
.border-rose-500\/40 { border-color: rgba(244, 63, 94, 0.4); }
.border-slate-200\/70 { border-color: rgba(226, 232, 240, 0.7); }

.text-amber-950 { color: #451a03; }
.text-rose-500 { color: #f43f5e; }
.text-rose-600 { color: #e11d48; }

.hover\:bg-amber-600:hover { background-color: #d97706; }
.hover\:bg-blue-800:hover { background-color: #1e40af; }
.hover\:bg-red-100:hover { background-color: #fee2e2; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }
.hover\:bg-slate-200\/70:hover { background-color: rgba(226, 232, 240, 0.7); }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:bg-slate-700:hover { background-color: #334155; }
.hover\:bg-slate-800:hover { background-color: #1e293b; }
.hover\:border-amber-500:hover { border-color: #f59e0b; }
.hover\:border-blue-500:hover { border-color: #3b82f6; }
.hover\:text-slate-900:hover { color: #0f172a; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:underline:hover { text-decoration-line: underline; }

.focus\:bg-white:focus { background-color: #ffffff; }
.focus\:border-blue-600:focus { border-color: #2563eb; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35); }
.focus\:ring-blue-600:focus { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.45); }
.focus\:ring-blue-600\/20:focus { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2); }

.placeholder\:text-slate-400::placeholder { color: #94a3b8; }
.placeholder\:text-slate-500::placeholder { color: #64748b; }
.disabled\:opacity-60:disabled { opacity: 0.6; }
.pr-12 { padding-right: 3rem; }

@media (min-width: 640px) {
  .sm\:hidden { display: none; }
  .sm\:inline-block { display: inline-block; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-nowrap { flex-wrap: nowrap; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-end { justify-content: flex-end; }
  .sm\:w-auto { width: auto; }
  .sm\:h-16 { height: 4rem; }
  .sm\:h-72 { height: 18rem; }
  .sm\:right-9 { right: 2.25rem; }
  .sm\:right-14 { right: 3.5rem; }
  .sm\:gap-2 { gap: 0.5rem; }
  .sm\:gap-3 { gap: 0.75rem; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:col-span-1 { grid-column: span 1 / span 1; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:col-span-3 { grid-column: span 3 / span 3; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sm\:px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-0 { padding-top: 0; padding-bottom: 0; }
  .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .sm\:pr-20 { padding-right: 5rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:pt-10 { padding-top: 2.5rem; }
  .sm\:text-left { text-align: left; }
  .sm\:text-xs { font-size: 0.75rem; line-height: 1rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

@media (min-width: 768px) {
  .md\:sticky { position: sticky; }
  .md\:top-0 { top: 0px; }
  .md\:order-none { order: 0; }
  .md\:flex-nowrap { flex-wrap: nowrap; }
  .md\:flex-1 { flex: 1 1 0%; }
  .md\:w-auto { width: auto; }
  .md\:h-16 { height: 4rem; }
  .md\:py-0 { padding-top: 0; padding-bottom: 0; }
  .md\:gap-4 { gap: 1rem; }
  .md\:max-w-md { max-width: 28rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:justify-center { justify-content: center; }
}

@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
  .lg\:order-none { order: 0; }
  .lg\:w-64 { width: 16rem; }
  .lg\:w-\[380px\] { width: 380px; }
  .lg\:max-w-\[calc\(100vw-2rem\)\] { max-width: calc(100vw - 2rem); }
  .lg\:left-auto { left: auto; }
  .lg\:right-0 { right: 0px; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:gap-6 { gap: 1.5rem; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
}

@media (min-width: 1280px) {
  .xl\:inline { display: inline; }
  .xl\:w-80 { width: 20rem; }
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}



