/* ========================================================================
   The Private Wing - Premium Archive (Archive & Ink Aesthetic)
   ======================================================================== */

:root {
  --pw-bg: color-mix(in srgb, #fbfaee 85%, black 15%);
  --pw-ink: #1b1c15;
  --pw-ink-soft: #4a4c44;
  --pw-stone: #727973;
  --pw-bone: color-mix(in srgb, #f2f1e4 85%, black 15%);
  --pw-border: rgba(27, 28, 21, 0.1);
  --manrope: "Manrope", sans-serif;
  --newsreader: "Newsreader", serif;

  /* Global Token Fallbacks - Mapped for Scholarly Discourse Consistency */
  --tf-max-w: 1240px;
  --tf-shadow-md: 0 12px 24px rgba(27, 28, 21, 0.06);
  --tf-accent: var(--pw-ink);
  --tf-accent-dark: #000000;
  --tf-accent-glow: rgba(27, 28, 21, 0.1);
  --tf-border-mid: var(--pw-border);
  --tf-border: var(--pw-border);
  --tf-text: var(--pw-ink);
  --tf-text-soft: var(--pw-ink-soft);
  --tf-text-dim: var(--pw-stone);
  --tf-bg-mid: var(--pw-bone);
  --tf-font-head: var(--newsreader);
  --tf-font-body: var(--manrope);
  --tf-t: 0.3s;
  --tf-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tf-r-sm: 2px;
}

html {
  overflow-x: clip;
  scrollbar-gutter: stable;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.pw-body {
  background: var(--pw-bg);
  min-height: 100vh;
  color: var(--pw-ink);
  font-family: var(--newsreader);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  overflow-x: clip;
}

.pw-body a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--pw-border);
}

.pw-body a:hover {
    color: var(--pw-ink);
}

.pw-shell {
  width: 100%;
  max-width: var(--tf-max-w);
  margin: 0 auto;
  padding: 0 min(1200px, 5vw) 32px;
  overflow-x: clip;
}

/* Checkout wing breaks out of shell to fill viewport */
.pw-shell:has(.pw-checkout-wing) {
  max-width: 100%;
  padding: 0;
}

/* ------------------------------
   Header & Poetic Branding
   ------------------------------ */
.pw-header {
  /* fixed spans the full 100vw including scrollbar gutter — no cuts */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  /* No horizontal padding here — pw-nav handles alignment */
  margin-bottom: 0;
  background:
    linear-gradient(115deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.42) 46%, rgba(255, 247, 218, 0.72) 50%, rgba(255, 255, 255, 0.36) 54%, transparent 62%, transparent 100%) -180% 0 / 140% 100% no-repeat,
    radial-gradient(circle at 28% 0%, rgba(185, 130, 43, 0.16), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, #fbfaee 84%, #d5c392 16%), color-mix(in srgb, #fbfaee 72%, #9ca18f 28%));
  border-bottom: 1px solid rgba(185, 130, 43, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.46) inset,
    0 14px 32px rgba(27, 28, 21, 0.045);
  backdrop-filter: blur(14px);
  animation: pw-topbar-gold-sweep 5s ease-in-out infinite;
}

/* Push body content below the fixed header */
.pw-body {
  padding-top: 66px;
}


.pw-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 130, 43, 0.72), transparent);
  opacity: 0.78;
  pointer-events: none;
}

@keyframes pw-topbar-gold-sweep {
  0%, 28% {
    background-position: -180% 0, 0 0, 0 0;
  }
  58%, 100% {
    background-position: 180% 0, 0 0, 0 0;
  }
}

.pw-nav {
  /* Exact mirror of .pw-shell so nav items align pixel-perfectly with card edges:
     .pw-shell: max-width:1240px + margin:0 auto + padding:0 min(1200px,5vw)
     .pw-nav:   max-width:1240px + margin:0 auto + padding:0 min(1200px,5vw)  ← same */
  max-width: var(--tf-max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  border-bottom: 0;
}

.pw-nav-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.pw-nav-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 52px;
  transition: opacity 0.3s;
}

.pw-nav-brand:hover { opacity: 0.65; }

.pw-brand-img {
  width: 122px;
  height: auto;
  filter: brightness(0); /* Converts white logo to pure archival ink */
  display: block;
}

.pw-nav-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pw-stone);
  text-decoration: none;
  margin-right: 28px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: all 0.2s;
}

.pw-nav-left .pw-nav-link:first-of-type,
.pw-link--highlight {
  --premium-gold: #b9822b;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(185, 130, 43, 0.24);
  border-bottom-color: rgba(185, 130, 43, 0.42);
  border-radius: 4px;
  padding: 8px 12px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.58) 48%, transparent 100%) -180% 0 / 160% 100% no-repeat,
    linear-gradient(180deg, rgba(185, 130, 43, 0.13), rgba(185, 130, 43, 0.05));
  color: color-mix(in srgb, var(--pw-ink) 78%, var(--premium-gold) 22%) !important;
  animation: pw-premium-gold-breathe 4.8s ease-in-out infinite;
}

.pw-nav-left .pw-nav-link:first-of-type::before,
.pw-link--highlight::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--premium-gold);
  box-shadow: 0 0 0 4px rgba(185, 130, 43, 0.12);
}

.pw-nav-left .pw-nav-link:first-of-type::after,
.pw-link--highlight::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 25px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--premium-gold), transparent);
  opacity: 0.62;
}

.pw-nav-left .pw-nav-link:first-of-type:hover,
.pw-nav-left .pw-nav-link:first-of-type.is-active,
.pw-nav-left .pw-nav-link:first-of-type[aria-current="page"],
.pw-link--highlight:hover,
.pw-link--highlight.is-active,
.pw-link--highlight[aria-current="page"] {
  border-color: rgba(185, 130, 43, 0.54);
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.66) 48%, transparent 100%) 180% 0 / 160% 100% no-repeat,
    linear-gradient(180deg, rgba(185, 130, 43, 0.2), rgba(185, 130, 43, 0.08));
  box-shadow: 0 8px 22px rgba(27, 28, 21, 0.08);
  color: var(--pw-ink) !important;
}

@keyframes pw-premium-gold-breathe {
  0%, 100% {
    border-color: rgba(185, 130, 43, 0.24);
    box-shadow: 0 0 0 rgba(185, 130, 43, 0);
  }
  50% {
    border-color: rgba(185, 130, 43, 0.44);
    box-shadow: 0 0 18px rgba(185, 130, 43, 0.1);
  }
}

.pw-nav-link:hover,
.pw-nav-link.is-active,
.pw-nav-link[aria-current="page"] {
  color: var(--pw-ink);
}

.pw-nav-link.is-active,
.pw-nav-link[aria-current="page"] {
  border-bottom-color: var(--pw-ink);
}

.pw-link--highlight {
  margin-right: 0 !important;
}

.pw-link--highlight:hover { color: var(--pw-ink); }

/* ------------------------------
   Archivist Dossier (Auth Block)
   ------------------------------ */
.pw-auth-block {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pw-user-dossier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid rgba(27, 29, 22, 0.14);
}

.pw-mini-avatar {
  width: 34px;
  height: 34px;
  background: var(--pw-bone);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.9rem;
}

.pw-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

.pw-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pw-username {
  font-family: var(--manrope);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pw-stone);
}

.pw-username strong { color: var(--pw-ink); }

.pw-profile-link {
  font-family: var(--manrope);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pw-ink-soft);
  text-decoration: none;
  opacity: 0.85;
}

.pw-profile-link:hover { opacity: 1; text-decoration: underline; color: var(--pw-ink); }

.pw-sign-out { margin-right: 0 !important; }

/* ------------------------------
   Header & Poetic Branding
   ------------------------------ */
.pw-branding {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.pw-title {
  font-family: var(--newsreader);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.85;
  margin-bottom: 32px;
}

.pw-manifesto {
  font-family: var(--newsreader);
  font-style: italic;
  font-size: 1.8rem;
  line-height: 1.4;
  color: var(--pw-ink-soft);
  margin-bottom: 60px;
}

.pw-divider {
  width: 120px;
  height: 4px;
  background: var(--pw-ink);
  margin: 0 auto;
}

/* ------------------------------
   Fellowship Tiers (Pricing)
   ------------------------------ */
.pw-tiers-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 30px;
  margin-bottom: 64px;
}

.pw-tier-card {
  background: var(--pw-bone);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  min-height: 472px;
  border: 1px solid transparent;
  box-shadow: 0 18px 36px rgba(27, 28, 21, 0.06);
  transition:
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.pw-tier-card:hover { 
  transform: translateY(-4px);
  border-color: var(--pw-ink);
}

.pw-tier-card.is-active {
  background: #ffffff;
  border-color: var(--pw-ink);
}

.pw-tier-card > * {
  position: relative;
  z-index: 1;
}

/* ── Metallic Glint: background-position sweep across a full-card layer ──
   Both endpoints (0% and 100%) park the bright spot OUTSIDE the visible
   area, so the loop-restart snap is completely invisible.
   Sweep direction: left → right (background-position 100% → 0%). */
@keyframes metallic-glint {
  0%   { background-position: 100% 0; }  /* glint hidden off-screen left  */
  22%  { background-position: 100% 0; }  /* pause                          */
  72%  { background-position:   0% 0; }  /* glint hidden off-screen right  */
  100% { background-position:   0% 0; }  /* pause, loop snaps → invisible  */
}

/* ── Silver (Premium) ── */
@keyframes metallic-glint {
  0%, 30% { transform: translateX(-145%) skewX(-18deg); opacity: 0; }
  42% { opacity: 0.72; }
  68% { opacity: 0.18; }
  86%, 100% { transform: translateX(145%) skewX(-18deg); opacity: 0; }
}

@keyframes metal-luster {
  0%, 100% { background-position: 0 0, 0 0, 18% 0, 0 0, 0 0; }
  50% { background-position: 0 0, 0 0, 62% 0, 0 0, 0 0; }
}

.pw-tier-card--silver {
  background:
    /* Layer 1 — finer micro brushed lines */
    repeating-linear-gradient(
      135deg,
      transparent            0px,
      transparent            2px,
      rgba(0,0,0,0.028)       2px,
      rgba(0,0,0,0.028)       3px),
    /* Layer 2 — deeper macro reflection bands */
    repeating-linear-gradient(
      135deg,
      rgba(0,0,0,0.07)   0px,
      rgba(255,255,255,0.25) 55px,
      rgba(0,0,0,0.05)   110px,
      rgba(255,255,255,0.18) 155px,
      rgba(0,0,0,0.06)   210px),
    /* Layer 3 — refined brushed aluminum base (from Stitch project) */
    linear-gradient(
      135deg,
      #e0e0e2 0%,
      #ffffff 15%,
      #d1d1d4 35%,
      #a8a9ad 50%,
      #bdbec1 75%,
      #e0e0e2 100%);

  border-top:    1px solid rgba(255, 255, 255, 0.3);
  border-left:   1px solid rgba(255, 255, 255, 0.2);
  border-right:  1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);

  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.1),
    0 4px 12px rgba(0,0,0,0.12),
    0 20px 50px rgba(130,140,155,0.32);

  position: relative;
  overflow: hidden;
  isolation: isolate;
}


/* Glint: full-card overlay, bright band lives in center of 400%-wide image.
   background-position moves from 100% (band off-left) → 0% (band off-right). */
.pw-tier-card--silver::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent  0%,
    transparent 42%,
    rgba(255, 255, 255, 0.00) 44%,
    rgba(255, 255, 255, 0.48) 48%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.48) 52%,
    rgba(255, 255, 255, 0.00) 56%,
    transparent 58%,
    transparent 100%
  );
  background-size: 400% 100%;
  background-position: 100% 0;
  animation: metallic-glint 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* ── Silver hover: pulsing aura glow ── */
@keyframes silver-hover-glow {
  0%, 100% {
    box-shadow:
      inset 0  1px 0 rgba(255, 255, 255, 0.45),
      inset 0 -1px 0 rgba(0,   0,   0,   0.14),
      0  8px 20px rgba(0,   0,   0,   0.12),
      0 28px 60px rgba(130, 140, 155, 0.40),
      0  0   28px rgba(200, 215, 235, 0.40),
      0  0    0px rgba(210, 225, 245, 0.00);
  }
  50% {
    box-shadow:
      inset 0  1px 0 rgba(255, 255, 255, 0.55),
      inset 0 -1px 0 rgba(0,   0,   0,   0.14),
      0  8px 20px rgba(0,   0,   0,   0.13),
      0 28px 60px rgba(130, 140, 155, 0.55),
      0  0   50px rgba(200, 215, 235, 0.65),
      0  0   90px rgba(210, 225, 245, 0.22);
  }
}

.pw-tier-card--silver:hover {
  transform: translateY(-6px);
  border-top-color: rgba(255, 255, 255, 0.5);
  animation: silver-hover-glow 2s ease-in-out infinite;
}

/* Speed up the metallic glint on hover */
.pw-tier-card--silver:hover::before {
  animation-duration: 2s;
  animation-delay: 0s;
}

/* Expanding ring flash on hover activation */
.pw-tier-card--silver::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(220, 230, 245, 0);
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.0, 0.5, 0.5, 1), border-color 0.25s ease;
  pointer-events: none;
  z-index: 2;
}
.pw-tier-card--silver:hover::after {
  opacity: 1;
  border-color: rgba(230, 240, 255, 0.85);
  transform: scale(1.035);
}


/* ── Gold (Premium+) ── */
.pw-tier-card--gold {
  background:
    /* Layer 1 — finer brushed lines */
    repeating-linear-gradient(
      135deg,
      transparent           0px,
      transparent           2px,
      rgba(0,0,0,0.025)      2px,
      rgba(0,0,0,0.025)      3px),
    /* Layer 2 — warm macro reflection bands */
    repeating-linear-gradient(
      135deg,
      rgba(120,70,0,0.10)    0px,
      rgba(255,250,180,0.30) 55px,
      rgba(140,85,0,0.08)   110px,
      rgba(255,242,160,0.22)155px,
      rgba(120,70,0,0.09)   210px),
    /* Layer 3 — polished gold & brass base (from Stitch project) */
    linear-gradient(
      135deg,
      #f1d382 0%,
      #fef4b0 20%,
      #d4af37 45%,
      #b49235 65%,
      #c5a028 85%,
      #f1d382 100%);

  border-top:    1px solid rgba(255, 255, 255, 0.3);
  border-left:   1px solid rgba(255, 255, 255, 0.2);
  border-right:  1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);

  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 4px 12px rgba(80,40,0,0.12),
    0 20px 50px rgba(180,130,30,0.28);

  position: relative;
  overflow: hidden;
  isolation: isolate;
}


/* Glint: same approach, warm gold-tinted beam */
.pw-tier-card--gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent  0%,
    transparent 42%,
    rgba(255, 255, 210, 0.00) 44%,
    rgba(255, 252, 200, 0.52) 48%,
    rgba(255, 255, 225, 0.70) 50%,
    rgba(255, 252, 200, 0.52) 52%,
    rgba(255, 255, 210, 0.00) 56%,
    transparent 58%,
    transparent 100%
  );
  background-size: 400% 100%;
  background-position: 100% 0;
  animation: metallic-glint 8s ease-in-out infinite;
  animation-delay: 4s;
  z-index: 0;
  pointer-events: none;
}

/* ── Gold hover: pulsing amber aura glow ── */
@keyframes gold-hover-glow {
  0%, 100% {
    box-shadow:
      inset 0  1px 0 rgba(255, 255, 255, 0.45),
      inset 0 -1px 0 rgba(80,  40,  0,   0.22),
      0  8px 20px rgba(80,  40,  0,   0.14),
      0 28px 60px rgba(180, 130, 30,  0.40),
      0  0   30px rgba(240, 200, 80,  0.35),
      0  0    0px rgba(255, 220, 90,  0.00);
  }
  50% {
    box-shadow:
      inset 0  1px 0 rgba(255, 255, 255, 0.55),
      inset 0 -1px 0 rgba(80,  40,  0,   0.22),
      0  8px 20px rgba(80,  40,  0,   0.16),
      0 28px 60px rgba(180, 130, 30,  0.55),
      0  0   55px rgba(240, 200, 80,  0.62),
      0  0   95px rgba(255, 220, 90,  0.24);
  }
}

.pw-tier-card--gold:hover {
  transform: translateY(-6px);
  border-top-color: rgba(255, 255, 255, 0.5);
  animation: gold-hover-glow 2s ease-in-out infinite;
}

/* Speed up the metallic glint on hover */
.pw-tier-card--gold:hover::before {
  animation-duration: 2s;
  animation-delay: 0s;
}

/* Expanding ring flash on hover activation */
.pw-tier-card--gold::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 220, 100, 0);
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.0, 0.5, 0.5, 1), border-color 0.25s ease;
  pointer-events: none;
  z-index: 2;
}
.pw-tier-card--gold:hover::after {
  opacity: 1;
  border-color: rgba(255, 230, 120, 0.90);
  transform: scale(1.035);
}



.pw-tier-card--silver,
.pw-tier-card--gold {
  overflow: hidden;
  isolation: isolate;
  animation: metal-luster 9s ease-in-out infinite;
}

.pw-tier-card--silver {
  background:
    radial-gradient(circle at 16% 4%, rgba(255, 255, 255, 0.96), transparent 24%),
    radial-gradient(circle at 92% 96%, rgba(74, 84, 92, 0.18), transparent 32%),
    linear-gradient(112deg, transparent 0%, transparent 32%, rgba(255, 255, 255, 0.86) 43%, rgba(146, 157, 166, 0.24) 50%, rgba(255, 255, 255, 0.62) 58%, transparent 70%, transparent 100%) 18% 0 / 240% 100% no-repeat,
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 3px, rgba(25, 31, 37, 0.035) 3px, rgba(25, 31, 37, 0.035) 4px),
    linear-gradient(138deg, #f9fbfb 0%, #d9dee2 17%, #ffffff 28%, #aeb8c0 48%, #f5f7f8 64%, #c7cdd2 81%, #f6f8f8 100%);
  border-top-color: rgba(255, 255, 255, 0.92);
  border-left-color: rgba(255, 255, 255, 0.8);
  border-right-color: rgba(86, 96, 104, 0.28);
  border-bottom-color: rgba(56, 63, 70, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 10px 0 22px rgba(255, 255, 255, 0.36),
    inset -16px -14px 32px rgba(74, 84, 92, 0.14),
    0 18px 34px rgba(75, 84, 93, 0.2),
    0 34px 68px rgba(27, 28, 21, 0.08);
}

.pw-tier-card--gold {
  background:
    radial-gradient(circle at 18% 6%, rgba(255, 255, 218, 0.92), transparent 22%),
    radial-gradient(circle at 88% 96%, rgba(95, 54, 0, 0.2), transparent 34%),
    linear-gradient(112deg, transparent 0%, transparent 28%, rgba(255, 249, 178, 0.72) 40%, rgba(154, 91, 5, 0.16) 49%, rgba(255, 237, 130, 0.52) 59%, transparent 72%, transparent 100%) 22% 0 / 245% 100% no-repeat,
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 3px, rgba(72, 42, 0, 0.035) 3px, rgba(72, 42, 0, 0.035) 4px),
    linear-gradient(138deg, #fff0a2 0%, #d6a72b 16%, #fff5b8 28%, #b57c10 48%, #f0ca59 64%, #936012 82%, #f6db75 100%);
  border-top-color: rgba(255, 251, 194, 0.94);
  border-left-color: rgba(255, 244, 157, 0.84);
  border-right-color: rgba(103, 63, 4, 0.36);
  border-bottom-color: rgba(76, 45, 0, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 251, 190, 0.96),
    inset 11px 0 24px rgba(255, 246, 170, 0.28),
    inset -18px -16px 34px rgba(86, 50, 0, 0.18),
    0 18px 34px rgba(132, 87, 14, 0.24),
    0 34px 70px rgba(27, 28, 21, 0.1);
}

.pw-tier-card--silver::before,
.pw-tier-card--gold::before {
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: 44%;
  z-index: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 18%, rgba(255, 255, 255, 0.84) 48%, rgba(198, 210, 220, 0.18) 72%, transparent 100%);
  background-size: auto;
  background-position: 0 0;
  filter: blur(0.2px);
  transform: translateX(-145%) skewX(-18deg);
  animation: metallic-glint 6.5s ease-in-out infinite;
  pointer-events: none;
}

.pw-tier-card--gold::before {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 238, 116, 0.2) 18%, rgba(255, 255, 220, 0.78) 48%, rgba(142, 82, 0, 0.14) 72%, transparent 100%);
  animation-delay: 1.4s;
}

.pw-tier-card--silver::after,
.pw-tier-card--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 0;
  opacity: 1;
  transform: none;
  transition: none;
  box-shadow:
    inset 0 0 0 1px rgba(92, 104, 114, 0.14),
    inset 0 18px 28px rgba(255, 255, 255, 0.36),
    inset 0 -20px 34px rgba(67, 77, 88, 0.12);
  pointer-events: none;
}

.pw-tier-card--gold::after {
  border-color: rgba(255, 241, 141, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(104, 61, 0, 0.16),
    inset 0 18px 28px rgba(255, 246, 166, 0.32),
    inset 0 -22px 34px rgba(88, 51, 0, 0.16);
}

.pw-tier-card--silver:hover::after,
.pw-tier-card--gold:hover::after {
  opacity: 1;
  transform: none;
}

.pw-tier-card--silver:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 250, 255, 0.96);
  animation: metal-luster 5.2s ease-in-out infinite;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 10px 0 24px rgba(255, 255, 255, 0.42),
    inset -16px -14px 32px rgba(74, 84, 92, 0.16),
    0 24px 42px rgba(70, 82, 94, 0.25),
    0 0 48px rgba(218, 229, 238, 0.52);
}

.pw-tier-card--gold:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 241, 142, 0.94);
  animation: metal-luster 5.2s ease-in-out infinite;
  box-shadow:
    inset 0 1px 0 rgba(255, 251, 194, 0.98),
    inset 11px 0 24px rgba(255, 246, 170, 0.34),
    inset -18px -16px 34px rgba(86, 50, 0, 0.2),
    0 24px 44px rgba(145, 91, 9, 0.3),
    0 0 54px rgba(239, 196, 69, 0.42);
}

.pw-tier-card--silver:hover::before,
.pw-tier-card--gold:hover::before {
  animation-duration: 3.2s;
  animation-delay: 0s;
}

.pw-tier-card--silver .pw-tier-title,
.pw-tier-card--gold .pw-tier-title {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.pw-tier-card--gold .pw-tier-desc,
.pw-tier-card--gold .pw-tier-features li {
  color: rgba(42, 31, 10, 0.78);
}

.pw-tier-card--gold .pw-price-period,
.pw-tier-card--gold .pw-tier-inclusions__label {
  color: rgba(42, 31, 10, 0.84);
}

.pw-tier-card--silver .pw-btn--ink,
.pw-tier-card--gold .pw-btn--ink {
  position: relative;
  z-index: 2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 12px 22px rgba(27, 28, 21, 0.18);
}

/* Clean Metallic Pricing Pass: neutralizes older heavy glow layers. */
@keyframes pw-metal-entry-sheen {
  0% {
    opacity: 0;
    transform: translateX(-145%) skewX(-18deg);
  }
  28% {
    opacity: 0;
  }
  52% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translateX(145%) skewX(-18deg);
  }
}

@keyframes pw-metal-hover-sheen {
  0% {
    opacity: 0;
    transform: translateX(-130%) skewX(-18deg);
  }
  44% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translateX(130%) skewX(-18deg);
  }
}

.pw-tier-card--silver,
.pw-tier-card--gold {
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  animation: none !important;
  transform: none;
  background-position: 0 0 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 18px 34px rgba(27, 28, 21, 0.12);
}

.pw-tier-card--silver {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.86) 0%, transparent 26%, rgba(255, 255, 255, 0.48) 42%, transparent 58%),
    repeating-linear-gradient(135deg, rgba(27, 32, 36, 0.026) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #fbfcfb 0%, #e2e6e7 22%, #ffffff 38%, #cfd6d8 62%, #f4f6f6 100%);
  border: 1px solid rgba(126, 137, 142, 0.34);
}

.pw-tier-card--gold {
  background:
    linear-gradient(110deg, rgba(255, 255, 216, 0.62) 0%, transparent 25%, rgba(255, 246, 166, 0.42) 43%, transparent 60%),
    repeating-linear-gradient(135deg, rgba(86, 50, 0, 0.026) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #fff1a8 0%, #e3ba43 22%, #fff4b4 38%, #c79a28 64%, #f2d36c 100%);
  border: 1px solid rgba(139, 96, 18, 0.32);
}

.pw-tier-card--silver::before,
.pw-tier-card--gold::before {
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: 36%;
  z-index: 0;
  width: 32%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 16%,
    rgba(255, 255, 255, 0.68) 48%,
    rgba(255, 255, 255, 0.12) 76%,
    transparent 100%
  );
  background-size: auto;
  background-position: 0 0;
  filter: none;
  transform: translateX(-145%) skewX(-18deg);
  opacity: 0;
  animation: pw-metal-entry-sheen 1.35s ease-out 0.35s 1 both !important;
  pointer-events: none;
}

.pw-tier-card--gold::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 238, 128, 0.1) 16%,
    rgba(255, 255, 220, 0.66) 48%,
    rgba(255, 225, 92, 0.16) 76%,
    transparent 100%
  );
  animation-delay: 0.55s !important;
}

.pw-tier-card--silver::after,
.pw-tier-card--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.56);
  opacity: 1;
  transform: none;
  transition: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(27, 28, 21, 0.08);
  pointer-events: none;
}

.pw-tier-card--gold::after {
  border-color: rgba(255, 244, 166, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 251, 196, 0.72),
    inset 0 -1px 0 rgba(86, 50, 0, 0.1);
}

.pw-tier-card--silver:hover,
.pw-tier-card--gold:hover {
  transform: translateY(-4px);
  animation: none !important;
}

.pw-tier-card--silver:hover {
  border-color: rgba(112, 124, 130, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.76) inset,
    0 22px 42px rgba(78, 88, 94, 0.2);
}

.pw-tier-card--gold:hover {
  border-color: rgba(132, 88, 12, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 251, 196, 0.74) inset,
    0 22px 42px rgba(130, 84, 12, 0.22);
}

.pw-tier-card--silver:hover::before,
.pw-tier-card--gold:hover::before {
  animation: pw-metal-hover-sheen 0.88s ease-out 1 both !important;
}

.pw-tier-card--silver:hover::after,
.pw-tier-card--gold:hover::after {
  opacity: 1;
  transform: none;
}

.pw-tier-card--silver .pw-tier-title,
.pw-tier-card--gold .pw-tier-title {
  text-shadow: none;
}

.pw-tier-card--silver .pw-tier-desc,
.pw-tier-card--silver .pw-tier-features li,
.pw-tier-card--silver .pw-price-period,
.pw-tier-card--silver .pw-tier-inclusions__label {
  color: rgba(27, 28, 21, 0.72);
}

.pw-tier-card--gold .pw-tier-desc,
.pw-tier-card--gold .pw-tier-features li,
.pw-tier-card--gold .pw-price-period,
.pw-tier-card--gold .pw-tier-inclusions__label {
  color: rgba(42, 31, 10, 0.76);
}

.pw-tier-card--silver .pw-btn--ink,
.pw-tier-card--gold .pw-btn--ink {
  box-shadow: none;
}

.pw-tier-label {
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pw-stone);
  margin-bottom: 20px;
}

.pw-tier-title {
  font-family: var(--newsreader);
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.pw-tier-desc {
  font-size: 0.92rem;
  color: var(--pw-ink-soft);
  margin-bottom: 18px;
  min-height: 48px;
}

/* Pricing Specific Buttons */
.pw-tier-btn, .pw-btn {
  margin-top: auto;
  padding: 15px 20px;
  border-radius: 2px;
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.pw-btn--ink { 
    background: var(--pw-ink) !important; 
    color: #ffffff !important; 
    border: 1px solid var(--pw-ink);
}

.pw-btn--ink:hover {
    background: var(--pw-ink-soft) !important;
    transform: translateY(-2px);
}

.pw-btn--stone { 
    background: #ffffff !important; 
    color: var(--pw-ink) !important; 
    border: 1.5px solid var(--pw-ink) !important;
    box-shadow: 4px 4px 0 var(--pw-border);
}

.pw-tier-price {
  font-family: var(--newsreader);
  font-size: 2.1rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--pw-ink);
}

.pw-price-period {
  font-family: var(--manrope);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pw-stone);
}

.pw-tier-inclusions {
  margin: 0 0 24px 0;
}

.pw-tier-inclusions__label {
  margin: 0 0 12px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(27, 29, 22, 0.12);
  color: var(--pw-ink);
  font-family: var(--manrope);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pw-tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pw-tier-features li {
  font-family: var(--newsreader);
  font-size: 1rem;
  color: var(--pw-ink-soft);
  position: relative;
  padding-left: 26px;
  line-height: 1.45;
}

.pw-tier-features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--pw-border);
}

.pw-tier-actions {
  margin-top: auto;
}

.pw-tier-btn {
  display: block;
  width: 100%;
}

.pw-tier-inclusions .pw-tier-features li::before {
  content: "\2713";
  top: 0.05em;
  color: var(--pw-ink);
  font-family: var(--manrope);
  font-size: 0.9rem;
  font-weight: 800;
}

/* ------------------------------
   Vaults Section (Categories)
   ------------------------------ */
.pw-library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  max-width: 1240px;
  margin: 26px auto 26px;
  padding: 22px 0 24px;
  border-bottom: 1px solid rgba(27, 29, 22, 0.14);
  background: transparent;
}

.pw-library-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--pw-stone);
  font-family: var(--manrope);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pw-library-hero h1 {
  margin: 0;
  color: var(--pw-ink);
  font-family: var(--newsreader);
  font-size: clamp(2.15rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 0.98;
}

.pw-library-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--pw-ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pw-library-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  gap: 8px;
  margin: 0;
}

.pw-library-stats div {
  min-width: 88px;
  padding: 10px 14px;
  border-left: 1px solid rgba(27, 29, 22, 0.18);
}

.pw-library-stats dt {
  margin: 0 0 3px;
  color: var(--pw-ink);
  font-family: var(--newsreader);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
}

.pw-library-stats dd {
  margin: 0;
  color: var(--pw-stone);
  font-family: var(--manrope);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pw-library-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74) inset,
    0 12px 30px rgba(27, 28, 21, 0.035);
  color: var(--pw-ink-soft);
  font-family: var(--manrope);
  font-size: 0.78rem;
  backdrop-filter: blur(12px);
}

.pw-library-toolbar p {
  margin: 0;
}

.pw-library-query {
  margin-top: 4px !important;
  color: var(--pw-stone);
  font-size: 0.72rem;
}

.pw-library-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.pw-library-toolbar a {
  color: var(--pw-ink);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.pw-library-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.pw-library-search input {
  width: min(300px, 30vw);
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(27, 29, 22, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--pw-ink);
  font-family: var(--manrope);
  font-size: 0.76rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.76) inset;
}

.pw-library-search input:focus {
  outline: none;
  border-color: rgba(27, 29, 22, 0.42);
  background: rgba(255, 255, 255, 0.62);
}

.pw-library-search button {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--pw-ink);
  border-radius: 4px;
  background: var(--pw-ink);
  color: #fff;
  cursor: pointer;
  font-family: var(--manrope);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pw-library-search__clear {
  color: var(--pw-stone) !important;
  font-size: 0.68rem;
}

.pw-vaults-title {
  font-family: var(--newsreader);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 32px;
  text-align: center;
}

.pw-vaults-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto 120px;
}

@media (max-width: 1200px) {
  .pw-vaults-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .pw-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 12px 0;
  }

  .pw-nav-left,
  .pw-auth-block,
  .pw-auth-actions {
    flex-wrap: wrap;
    gap: 14px;
  }

  .pw-nav-brand {
    margin-right: 24px;
  }

  .pw-nav-link {
    margin-right: 18px;
  }

  .pw-library-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
  }

  .pw-library-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .pw-library-stats div {
    min-width: 0;
    padding: 12px 10px;
    border-left: 0;
    border-top: 1px solid rgba(27, 29, 22, 0.18);
  }

  .pw-library-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pw-library-toolbar__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .pw-library-search {
    width: 100%;
  }

  .pw-library-search input {
    width: 100%;
  }

  .pw-vaults-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .pw-library-stats {
    grid-template-columns: 1fr;
  }

  .pw-vaults-grid { grid-template-columns: 1fr; }
}

.pw-vault-item {
  --vault-accent: #b9822b;
  --vault-accent-rgb: 185, 130, 43;
  --vault-shadow-rgb: 120, 130, 135;
  --vault-paper: rgba(231, 236, 237, 0.54);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 44%),
    rgba(255, 255, 255, 0.24);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74) inset,
    0 20px 36px rgba(27, 28, 21, 0.12),
    0 8px 16px rgba(27, 28, 21, 0.07),
    0 -10px 24px rgba(255, 255, 255, 0.2);
  transition: transform 0.28s var(--tf-ease), border-color 0.28s var(--tf-ease), box-shadow 0.28s var(--tf-ease), background 0.28s var(--tf-ease);
  position: relative;
  min-height: 292px;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
}

.pw-vault-item--theme-archive {
  --vault-accent: #b9822b;
  --vault-accent-rgb: 185, 130, 43;
  --vault-shadow-rgb: 124, 103, 72;
  --vault-paper: rgba(238, 230, 209, 0.58);
}

.pw-vault-item--theme-technical {
  --vault-accent: #315f74;
  --vault-accent-rgb: 49, 95, 116;
  --vault-shadow-rgb: 84, 113, 126;
  --vault-paper: rgba(225, 233, 235, 0.62);
}

.pw-vault-item--theme-living {
  --vault-accent: #476b4f;
  --vault-accent-rgb: 71, 107, 79;
  --vault-shadow-rgb: 82, 116, 88;
  --vault-paper: rgba(226, 234, 220, 0.62);
}

.pw-vault-item--theme-open {
  --vault-accent: #8b7858;
  --vault-accent-rgb: 139, 120, 88;
  --vault-shadow-rgb: 132, 122, 100;
  --vault-paper: rgba(241, 236, 219, 0.62);
}

.pw-vault-item--theme-rare {
  --vault-accent: #8c4f3d;
  --vault-accent-rgb: 140, 79, 61;
  --vault-shadow-rgb: 124, 88, 78;
  --vault-paper: rgba(237, 224, 218, 0.62);
}

.pw-vault-item--theme-celestial {
  --vault-accent: #394a73;
  --vault-accent-rgb: 57, 74, 115;
  --vault-shadow-rgb: 82, 91, 125;
  --vault-paper: rgba(225, 227, 237, 0.62);
}

.pw-vault-item:hover {
  transform: translateY(-3px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 44%),
    rgba(255, 255, 255, 0.3);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 26px 44px rgba(27, 28, 21, 0.15),
    0 10px 20px rgba(27, 28, 21, 0.08),
    0 -12px 28px rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.68);
}

.pw-vault-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  height: auto;
  background:
    linear-gradient(108deg, transparent 0%, transparent 45%, rgba(255, 255, 255, 0.24) 50%, transparent 56%, transparent 100%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.36), transparent 34%);
  border-radius: inherit;
  transform: none;
  pointer-events: none;
}

.pw-vault-item::after {
  display: none;
}

.pw-vault-item--collection::before {
  background:
    linear-gradient(108deg, transparent 0%, transparent 45%, rgba(255, 255, 255, 0.24) 50%, transparent 56%, transparent 100%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.36), transparent 34%);
}

.pw-vault-mark {
  display: none;
}

.pw-vault-item:hover .pw-vault-mark {
  display: none;
}

.pw-vault-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 16px;
}

.pw-vault-card-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  text-decoration: none !important;
}

.pw-vault-card-link:focus-visible {
  outline: 2px solid var(--pw-ink);
  outline-offset: 4px;
}

.pw-vault-link {
    text-decoration: none !important;
    color: inherit !important;
}

.pw-vault-header-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(27, 29, 22, 0.08);
}

.pw-vault-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.pw-vault-title-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.pw-vault-icon {
  --category-icon: var(--vault-accent);
  --category-icon-rgb: var(--vault-accent-rgb);
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--category-icon);
  border: 1px solid rgba(var(--category-icon-rgb), 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.18) 38%, transparent 68%),
    linear-gradient(145deg, rgba(var(--category-icon-rgb), 0.2), rgba(var(--category-icon-rgb), 0.07));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 10px 18px rgba(var(--category-icon-rgb), 0.12);
}

.pw-vault-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pw-vault-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.pw-vault-item--visual-python .pw-vault-icon {
  --category-icon: #2f6fa8;
  --category-icon-rgb: 47, 111, 168;
}

.pw-vault-item--visual-django .pw-vault-icon {
  --category-icon: #146b45;
  --category-icon-rgb: 20, 107, 69;
}

.pw-vault-item--visual-free .pw-vault-icon {
  --category-icon: #b9822b;
  --category-icon-rgb: 185, 130, 43;
}

.pw-vault-item--visual-zodiac .pw-vault-icon {
  --category-icon: #5b54a3;
  --category-icon-rgb: 91, 84, 163;
}

.pw-vault-item--visual-owned .pw-vault-icon {
  --category-icon: #8c4f3d;
  --category-icon-rgb: 140, 79, 61;
}

.pw-vault-item--visual-general .pw-vault-icon {
  --category-icon: #476b4f;
  --category-icon-rgb: 71, 107, 79;
}

.pw-vault-title {
  min-width: 0;
  font-family: var(--newsreader);
  font-size: 1.28rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--pw-ink) 82%, var(--vault-accent) 18%);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.025em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.58),
    0 10px 24px rgba(var(--vault-accent-rgb), 0.08);
  transition: color 0.3s, text-shadow 0.3s;
}

.pw-vault-item:hover .pw-vault-title {
    color: color-mix(in srgb, var(--pw-ink) 64%, var(--vault-accent) 36%);
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.68),
      0 12px 26px rgba(var(--vault-accent-rgb), 0.14);
}

.pw-vault-tag {
  width: fit-content;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(var(--vault-accent-rgb), 0.46);
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: color-mix(in srgb, var(--pw-ink) 54%, var(--vault-accent) 46%);
}

.pw-vault-state {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(var(--vault-accent-rgb), 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: color-mix(in srgb, var(--vault-accent) 82%, var(--pw-ink) 18%);
  font-family: var(--manrope);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.68) inset;
}

.pw-vault-item.is-empty {
  opacity: 0.88;
}

.pw-vault-item.has-living .pw-vault-state {
  background: rgba(var(--vault-accent-rgb), 0.1);
}

.pw-vault-desc {
  font-family: var(--manrope);
  font-size: 0.76rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--pw-ink-soft) 86%, var(--vault-accent) 14%);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.pw-vault-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 0 16px;
  border-top: 1px solid rgba(27, 29, 22, 0.1);
  border-bottom: 1px solid rgba(27, 29, 22, 0.08);
}

.pw-vault-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 0;
}

.pw-vault-meta div + div {
  border-top: 1px solid rgba(27, 29, 22, 0.08);
}

.pw-vault-meta dt {
  margin: 0;
  color: color-mix(in srgb, var(--pw-ink) 86%, var(--vault-accent) 14%);
  font-family: var(--newsreader);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
}

.pw-vault-meta dd {
  margin: 0;
  color: color-mix(in srgb, var(--pw-stone) 76%, var(--vault-accent) 24%);
  font-family: var(--manrope);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pw-vault-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 29, 22, 0.08);
  position: relative;
  z-index: 2;
}

.pw-vault-item--collection .pw-vault-footer {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.pw-vault-score {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  color: color-mix(in srgb, var(--pw-stone) 84%, var(--vault-accent) 16%);
  font-family: var(--manrope);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.pw-vault-reactions {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pw-vault-action {
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffffff !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.28);
  padding: 6px 8px 5px;
  border-radius: 3px;
  text-align: left;
  transition: all 0.2s var(--tf-ease);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--pw-ink) !important;
  border: 1px solid rgba(var(--vault-accent-rgb), 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.62) inset;
}

.pw-vault-action::after {
  content: "";
  width: 18px;
  height: 1px;
  margin-left: 8px;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(0.72);
  transition: transform 0.2s var(--tf-ease);
}

.pw-vault-item:hover .pw-vault-action {
  border-color: rgba(var(--vault-accent-rgb), 0.36);
  background: rgba(var(--vault-accent-rgb), 0.08);
  color: color-mix(in srgb, var(--pw-ink) 58%, var(--vault-accent) 42%) !important;
}

.pw-vault-item:hover .pw-vault-action::after {
  transform: scaleX(1);
}

.pw-vault-action:hover {
  transform: translateY(-2px);
  color: color-mix(in srgb, var(--pw-ink) 58%, var(--vault-accent) 42%) !important;
}

.pw-empty-state--library {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 44px;
  border: 1px solid rgba(27, 29, 22, 0.14);
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.pw-empty-state--library h2 {
  margin: 0 0 10px;
  font-family: var(--newsreader);
  font-size: 2rem;
  font-weight: 600;
}

.pw-empty-state--library p {
  margin: 0;
  color: var(--pw-ink-soft);
  line-height: 1.6;
}

/* Reactions inside Vaults - Scholarly Polish */
.pw-vault-reactions .tf-reactions-curated {
  display: flex !important;
  align-items: center;
  gap: 16px;
}

.pw-vault-reactions .reaction-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.pw-vault-reactions .reaction-btn:hover {
  background: var(--pw-bone);
  border-color: var(--pw-border);
}

.pw-vault-reactions .reaction-icon svg { width: 14px; height: 14px; }
.pw-vault-reactions .reaction-label { font-family: var(--manrope); font-weight: 800; font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pw-stone); }
.pw-vault-reactions .reaction-count { font-family: var(--newsreader); font-weight: 700; font-size: 0.9rem; color: var(--pw-ink); }

/* ------------------------------
   Archival Pagination
   ------------------------------ */
.pw-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 60px 0;
  border-top: 1px solid var(--pw-border);
}

.pw-page-indicator {
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pw-stone);
}

/* ------------------------------
   Footer
   ------------------------------ */
.pw-footer {
  margin-top: 100px;
  padding: 60px 0;
  border-top: 1.5px solid var(--pw-border);
}

.pw-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.pw-footer-logo {
  font-family: var(--newsreader);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pw-footer-links {
  display: flex;
  gap: 32px;
}

.pw-footer-links a {
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pw-stone);
  text-decoration: none;
}

.pw-footer-links a:hover { color: var(--pw-ink); }

.pw-footer-copy {
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pw-stone);
}

/* ------------------------------
   Fellowship Tiers Header
   ------------------------------ */
.pw-tiers-header {
  text-align: center;
  margin-bottom: 40px;
}

/* ------------------------------
   Checkout & Result Paywall
   ------------------------------ */
.pw-checkout-wing {
  max-width: 600px;
  margin: 0 auto 120px;
}

.pw-checkout-card {
  background: white;
  border: 1px solid var(--pw-border);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--tf-shadow-md);
}

.pw-checkout-card h2 {
  font-family: var(--newsreader);
  font-size: 2.8rem;
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.pw-checkout-price {
  font-family: var(--newsreader);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--pw-ink);
}

.pw-checkout-meta {
  border-top: 1px solid var(--pw-border);
  border-bottom: 1px solid var(--pw-border);
  padding: 32px 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pw-checkout-info-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pw-checkout-info-label {
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pw-stone);
}

.pw-checkout-info-value {
  font-family: var(--newsreader);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pw-ink);
}

.pw-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pw-checkout-btn--solid {
  background: var(--pw-ink);
  color: white;
  border: none;
  padding: 18px;
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  cursor: pointer;
  transition: all 220ms var(--tf-ease-spring);
  border-radius: 2px;
}

.pw-checkout-btn--solid:hover:not(:disabled) {
  background: var(--pw-ink-soft);
  transform: translateY(-2px);
}

.pw-checkout-btn--solid:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pw-checkout-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--pw-border);
  color: var(--pw-stone);
  padding: 16px;
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  transition: all 220ms var(--tf-ease-spring);
  border-radius: 2px;
}

.pw-checkout-btn--ghost:hover {
  border-color: var(--pw-ink);
  color: var(--pw-ink);
}

.pw-checkout-muted {
  font-family: var(--manrope);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--pw-stone);
  text-align: center;
  margin-top: 32px;
}

/* ------------------------------
   Premium Paywall
   ------------------------------ */
.premium-paywall {
  width: min(760px, 100%);
  margin: clamp(42px, 7vw, 86px) auto clamp(70px, 9vw, 112px);
  padding: 0 20px;
}

.premium-paywall__card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: clamp(32px, 5vw, 54px);
  border: 1px solid rgba(27, 29, 22, 0.16);
  background:
    linear-gradient(90deg, rgba(185, 130, 43, 0.18), transparent 44%) 0 0 / 100% 3px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 250, 0.62), rgba(242, 242, 232, 0.42));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 58px rgba(27, 28, 21, 0.08);
}

.premium-paywall__card h2 {
  margin: 0;
  color: var(--pw-ink);
  font-family: var(--newsreader);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 0.96;
}

.premium-paywall__card p {
  max-width: 62ch;
  margin: 0;
  color: var(--pw-ink-soft);
  font-size: 1rem;
  line-height: 1.62;
}

.premium-paywall__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(27, 29, 22, 0.12);
  border-bottom: 1px solid rgba(27, 29, 22, 0.12);
}

.premium-paywall__details div {
  display: grid;
  gap: 5px;
  padding: 16px 18px 16px 0;
}

.premium-paywall__details div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(27, 29, 22, 0.12);
}

.premium-muted {
  color: var(--pw-stone);
  font-family: var(--manrope);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.premium-paywall__details strong {
  color: var(--pw-ink);
  font-family: var(--newsreader);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.1;
}

.premium-paywall__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.premium-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 2px;
  font-family: var(--manrope);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition:
    background 0.2s var(--tf-ease),
    border-color 0.2s var(--tf-ease),
    color 0.2s var(--tf-ease),
    transform 0.2s var(--tf-ease);
}

.premium-btn--solid {
  border: 1px solid var(--pw-ink);
  background: var(--pw-ink);
  color: #fff !important;
}

.premium-btn--solid:hover {
  background: #173124;
  border-color: #173124;
  transform: translateY(-1px);
}

.premium-btn--ghost {
  border: 1px solid rgba(27, 29, 22, 0.18);
  background: transparent;
  color: var(--pw-ink) !important;
}

.premium-btn--ghost:hover {
  border-color: var(--pw-ink);
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
}

/* ── Badge / Pill override for Checkout ── */
.pw-checkout-card .premium-pill {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(0, -100%) translateY(-12px);
  background: var(--pw-stone);
  font-size: 0.6rem;
  padding: 6px 12px;
}

/* ------------------------------
   Included Elements (Flash Messages)
   ------------------------------ */
.tf-flash-stack {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 5000;
  width: min(760px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  transform: translateX(-50%);
}

.tf-flash {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--manrope);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.02em;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid rgba(27, 29, 22, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 250, 0.92), rgba(246, 246, 238, 0.86)),
    var(--pw-bone);
  color: var(--pw-ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 18px 44px rgba(27, 28, 21, 0.12);
  animation: pw-flash-toast 4.8s ease forwards;
  pointer-events: auto;
}

.tf-flash::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--pw-ink);
  box-shadow: 0 0 0 4px rgba(23, 49, 36, 0.08);
}

.tf-flash--success {
  border-color: rgba(23, 49, 36, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 250, 0.94), rgba(242, 247, 240, 0.86)),
    white;
}

.tf-flash--warning,
.tf-flash--error {
  border-color: rgba(185, 130, 43, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 250, 0.94), rgba(249, 243, 232, 0.86)),
    var(--pw-bone);
  color: #6f3517;
}

.tf-flash--warning::before,
.tf-flash--error::before {
  background: #b9822b;
  box-shadow: 0 0 0 4px rgba(185, 130, 43, 0.11);
}

@keyframes pw-flash-toast {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  10%, 78% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
  }
}

/* Responsiveness */
@media (max-width: 900px) {
  .pw-body {
    padding-top: 148px;
  }

  .pw-header {
    max-width: 100vw;
    overflow-x: clip;
  }

  .pw-branding {
    max-width: 100%;
    padding: 0 20px;
    overflow: hidden;
  }

  .pw-nav {
    flex-direction: column;
    gap: 18px;
    max-width: 100vw;
    padding: 14px 16px 18px;
  }

  .pw-nav-left,
  .pw-nav-right,
  .pw-auth-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    row-gap: 14px;
  }

  .pw-nav-brand {
    margin-right: 24px;
  }

  .pw-nav-link { margin: 0 12px; }
  .pw-manifesto { overflow-wrap: anywhere; }
  .pw-vaults-title,
  .pw-manifesto {
    max-width: min(320px, calc(100vw - 48px));
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    white-space: normal;
  }

  .pw-vaults-title {
    font-size: clamp(1.6rem, 8vw, 1.95rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .pw-manifesto {
    font-size: clamp(1.35rem, 7vw, 1.7rem);
    line-height: 1.35;
  }

  .pw-tier-card p,
  .pw-tier-card li,
  .pw-tier-desc {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .pw-btn,
  .pw-btn--ink {
    max-width: 100%;
    white-space: normal;
  }

  .pw-tiers-section { grid-template-columns: 1fr; }
  .pw-vaults-grid { grid-template-columns: 1fr; }
  .pw-checkout-wing { padding: 0 20px; }
  .pw-checkout-card { padding: 40px 24px; }
  .pw-checkout-meta { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .premium-paywall {
    width: 100%;
    max-width: 100vw;
    margin: 34px auto 70px;
    padding-inline: 20px;
    overflow-x: clip;
  }

  .premium-paywall__card {
    width: auto;
    max-width: calc(100vw - 40px);
    padding: 32px 24px;
  }

  .premium-paywall__details {
    grid-template-columns: 1fr;
  }

  .premium-paywall__details div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(27, 29, 22, 0.12);
  }

  .premium-paywall__actions,
  .premium-btn {
    width: 100%;
  }
}

/* -------------------------------------------------------------------------- */
/* PREMIUM DASHBOARD LAYOUT (Archive & Ink) */
/* -------------------------------------------------------------------------- */

/* Legacy Dashboard Layout Removed - Centered Editorial Focus Applied */

/* Sidebar Specifics (Ported from Premium Dashboard) */
.premium-sidebar__brand {
    margin-bottom: 40px;
}

.premium-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--pw-ink);
}

.premium-brand__mark {
    background: var(--pw-ink);
    color: var(--pw-bone);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    font-family: var(--manrope);
}

.premium-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.premium-brand__text strong {
    font-size: 1.2rem;
    font-family: var(--newsreader);
}

.premium-brand__text small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.premium-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.premium-nav__link {
    color: var(--pw-ink);
    text-decoration: none !important;
    font-family: var(--manrope);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.premium-nav__link:hover,
.premium-nav__link.is-active {
    opacity: 1;
    color: #173124 !important;
}

/* Global Hierarchical Tree Navigation */
.pw-nav-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.pw-nav-tree {
    padding-left: 15px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid var(--pw-border);
    margin-left: 12px;
}

.pw-tree-item {
    font-family: var(--manrope);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pw-stone);
    text-decoration: none !important;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pw-tree-item:hover {
    color: var(--pw-ink);
    padding-left: 4px;
}

.pw-tree-item.is-active {
    font-weight: 800;
    color: #173124 !important;
}

.pw-tree-dash {
    color: var(--pw-border);
    font-size: 0.65rem;
    opacity: 0.6;
}

.premium-sidebar__note {
    margin-top: 60px;
    padding: 20px;
    background: rgba(0,0,0,0.03);
    border-radius: 4px;
}

.premium-sidebar__note p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--pw-ink);
    opacity: 0.7;
    margin: 0;
}

/* Mobile centering optimization for full-width layout */
@media (max-width: 1024px) {
    .pw-shell {
      max-width: 100vw;
      padding: 5px 20px;
    }
}

/* -------------------------------------------------------------------------- */
/* CATEGORY DETAIL & BOOK LISTS (Archive & Ink) */
/* -------------------------------------------------------------------------- */

.pw-collection-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1240px;
  margin: 18px auto 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(27, 29, 22, 0.14);
}

.pw-collection-hero__copy h1 {
  margin: 0;
  color: var(--pw-ink);
  font-family: var(--newsreader);
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  font-weight: 500;
  line-height: 1;
}

.pw-collection-hero__copy .pw-vault-title-row {
  align-items: center;
}

.pw-collection-hero__copy .pw-vault-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(var(--category-icon-rgb), 0.24);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.18) 38%, transparent 68%),
    linear-gradient(145deg, rgba(var(--category-icon-rgb), 0.2), rgba(var(--category-icon-rgb), 0.07));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 10px 18px rgba(var(--category-icon-rgb), 0.12);
}

.pw-collection-hero__copy .pw-vault-icon img,
.pw-collection-hero__copy .pw-vault-icon svg {
  width: 21px;
  height: 21px;
}

.pw-collection-hero__copy p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--pw-ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pw-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--pw-stone) !important;
  font-family: var(--manrope);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.pw-back-link:hover {
  color: var(--pw-ink) !important;
}

.pw-collection-reactions {
  display: flex;
  justify-content: flex-end;
}

.pw-collection-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-top: 4px;
}

.pw-collection-back {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  color: var(--pw-stone) !important;
  border: 1px solid rgba(27, 29, 22, 0.12);
  background: rgba(255, 255, 255, 0.18);
  font-family: var(--manrope);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition:
    color 180ms var(--tf-ease),
    border-color 180ms var(--tf-ease),
    background 180ms var(--tf-ease),
    transform 180ms var(--tf-ease);
}

.pw-collection-back::before {
  content: "←";
  margin-right: 8px;
  color: var(--pw-ink);
  font-size: 0.72rem;
  line-height: 1;
}

.pw-collection-back:hover,
.pw-collection-back:focus-visible {
  color: var(--pw-ink) !important;
  border-color: rgba(27, 29, 22, 0.28);
  background: rgba(255, 255, 255, 0.36);
  outline: none;
  transform: translateY(-1px);
}

.pw-collection-stats {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 24px;
  flex: 0 1 auto;
  margin: 0;
  border-top: 1px solid rgba(27, 29, 22, 0.14);
}

.pw-collection-stats div {
  display: grid;
  gap: 3px;
  min-width: 104px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(27, 29, 22, 0.14);
}

.pw-collection-stats div + div {
  margin-left: 0;
}

.pw-collection-stats dt {
  margin: 0;
  color: var(--pw-ink);
  font-family: var(--newsreader);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1;
}

.pw-collection-stats dd {
  margin: 0;
  color: var(--pw-stone);
  font-family: var(--manrope);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.pw-collection-reactions .tf-reactions-curated {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pw-collection-reactions .reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(27, 29, 22, 0.12);
  background: rgba(255, 255, 255, 0.28);
}

.pw-collection-reactions .reaction-icon svg {
  width: 13px;
  height: 13px;
}

.pw-collection-reactions .reaction-label {
  color: var(--pw-stone);
  font-family: var(--manrope);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pw-collection-reactions .reaction-count {
  color: var(--pw-ink);
  font-family: var(--newsreader);
  font-size: 0.86rem;
  font-weight: 700;
}

.pw-collection-reactions .tf-reaction-feedback {
  display: none;
}

.pw-collection-index {
  max-width: 1240px;
  margin: 0 auto 96px;
}

.pw-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--pw-border);
  padding-bottom: 12px;
}

.pw-section-heading .pw-section-label {
  margin: 0;
  border: 0;
  padding: 0;
}

.pw-section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--pw-ink-soft);
  font-family: var(--manrope);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: right;
}

.pw-book-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.pw-book-index-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transition: all 0.3s var(--tf-ease);
}

.pw-book-index-card:hover {
  transform: translateY(-3px);
}

.pw-book-index-card:hover .pw-book-index-cover {
  border-color: rgba(27, 29, 22, 0.24);
  box-shadow: 0 14px 28px rgba(27, 28, 21, 0.08);
}

.pw-book-index-card.is-locked {
  opacity: 0.74;
}

.pw-book-index-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5.35;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27, 29, 22, 0.12);
  background: rgba(255, 255, 255, 0.32);
  color: var(--pw-ink);
  font-family: var(--manrope);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  overflow: hidden;
  padding: 14px;
  text-decoration: none !important;
  transition: all 0.3s var(--tf-ease);
}

.pw-book-index-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: sepia(8%) contrast(95%);
}

.pw-book-index-main {
  min-width: 0;
}

.pw-book-index-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--pw-stone);
  font-family: var(--manrope);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pw-book-index-kicker span + span::before {
  content: "/";
  margin-right: 6px;
  color: rgba(27, 29, 22, 0.34);
}

.pw-book-index-kicker .pw-badge {
  margin-left: 0;
}

.pw-book-index-main h2 {
  margin: 0;
  font-family: var(--newsreader);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.08;
}

.pw-book-index-main h2 a {
  color: var(--pw-ink) !important;
  text-decoration: none !important;
}

.pw-book-index-main h2 a:hover {
  color: #173124 !important;
}

.pw-book-index-main p {
  margin: 7px 0 0;
  color: var(--pw-stone);
  font-family: var(--manrope);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}

.pw-book-index-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--pw-stone);
  font-family: var(--manrope);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pw-book-index-rating span {
  color: #d88706;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.pw-book-index-rating strong {
  color: var(--pw-ink);
  font-size: 0.72rem;
}

.pw-book-index-rating small {
  color: var(--pw-stone);
  font-size: 0.54rem;
  font-weight: 800;
}

.pw-book-index-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(27, 29, 22, 0.1);
}

.pw-book-index-meta div {
  padding: 9px 10px 0 0;
}

.pw-book-index-meta dt {
  margin: 0 0 2px;
  color: var(--pw-ink);
  font-family: var(--newsreader);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
}

.pw-book-index-meta dd {
  margin: 0;
  color: var(--pw-stone);
  font-family: var(--manrope);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pw-book-index-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(27, 29, 22, 0.1);
}

.pw-book-index-note {
  color: var(--pw-stone);
  font-family: var(--manrope);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pw-book-index-reactions .tf-reactions-curated {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.pw-book-index-reactions .reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid transparent;
  background: transparent;
}

.pw-book-index-reactions .reaction-icon svg {
  width: 13px;
  height: 13px;
}

.pw-book-index-reactions .reaction-label {
  color: var(--pw-stone);
  font-family: var(--manrope);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pw-book-index-reactions .reaction-count {
  color: var(--pw-ink);
  font-family: var(--newsreader);
  font-size: 0.9rem;
  font-weight: 700;
}

.pw-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 40px auto;
  max-width: 1200px;
}

.pw-detail-header__content {
  flex: 1;
  max-width: 700px;
}

.pw-detail-visual {
    flex: 0 0 240px;
    width: 240px;
}

.pw-detail-visual__frame {
    background: var(--pw-bone);
    padding: 8px;
    border: 1px solid var(--pw-border);
    box-shadow: 12px 12px 0 rgba(27, 28, 21, 0.04);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-detail-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: sepia(10%) contrast(95%);
}

.pw-detail-tag {
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #173124;
  margin-bottom: 12px;
  display: block;
}

.pw-detail-title {
  font-family: var(--newsreader);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--pw-ink);
  line-height: 1.0;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.pw-detail-desc {
  font-family: var(--newsreader);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--pw-ink-soft);
  max-width: 800px;
  font-style: italic;
  opacity: 0.9;
}

/* Premium Badges - Scholarly refinement */
.pw-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-family: var(--manrope);
    font-weight: 800;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
}

.pw-badge--plus { background: #173124; color: #ffffff; }
.pw-badge--premium { background: var(--pw-stone); color: #ffffff; }
.pw-badge--free { border: 1px solid var(--pw-border); color: var(--pw-stone); }

/* Section Labels */
.pw-section-label {
    font-family: var(--manrope);
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--pw-stone);
    margin: 40px 0 24px;
    display: block;
    border-bottom: 1px solid var(--pw-border);
    padding-bottom: 12px;
}

/* Comments Section Adjustment */
.pw-section--comments {
    margin-top: 120px;
    padding-top: 60px;
    border-top: 2px solid var(--pw-ink);
}

@media (max-width: 980px) {
  .pw-collection-hero {
    gap: 22px;
  }

  .pw-collection-stats {
    grid-template-columns: repeat(3, max-content);
  }

  .pw-book-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pw-vault-item--collection .pw-vault-footer,
  .pw-book-index-footer,
  .pw-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pw-vault-score {
    justify-content: flex-start;
    margin-left: 0;
  }

  .pw-section-heading p {
    text-align: left;
  }

  .pw-collection-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .pw-collection-back {
    align-self: flex-start;
  }

  .pw-collection-stats {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pw-collection-stats div + div {
    margin-left: 0;
  }

  .pw-collection-reactions {
    justify-content: flex-start;
  }

  .pw-book-index-card {
    padding: 0;
  }

  .pw-book-index-cover {
    width: 100%;
    height: auto;
  }

  .pw-book-index-meta {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .pw-book-index-meta div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0 0;
    border-top: 1px solid rgba(27, 29, 22, 0.08);
  }
}

@media (max-width: 760px) {
  .pw-book-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .pw-book-index-grid {
    grid-template-columns: 1fr;
  }
}

/* Final mobile overflow hardening. Keep all premium content inside the viewport. */
@media (max-width: 640px) {
  .pw-shell,
  .pw-main {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  .pw-shell {
    padding-inline: 20px;
  }

  .pw-tiers-section {
    display: flex;
    flex-direction: column;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    gap: 22px;
    margin-inline: auto;
    padding-inline: 0 !important;
    overflow-x: hidden;
  }

  .pw-tier-card,
  .pw-checkout-card {
    flex: 0 0 auto;
    width: 100% !important;
    max-width: 100% !important;
    justify-self: center;
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
    min-width: 0;
  }

  .pw-tier-card p,
  .pw-tier-card li,
  .pw-tier-card a,
  .pw-tier-card button {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .pw-tier-title,
  .pw-tier-desc,
  .pw-tier-features,
  .pw-tier-features li,
  .pw-tier-price,
  .pw-price-period,
  .pw-tier-inclusions__label {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .pw-tier-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 9px;
  }

  .pw-tier-btn,
  .pw-btn,
  .pw-btn--ink {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
}

/* ========================================================================
   PRICING PAGE — Editorial Header (appended)
   ======================================================================== */

.pw-pricing-header {
  text-align: center;
  padding: clamp(26px, 4.4vh, 42px) 0 clamp(22px, 3.4vh, 34px);
  max-width: 680px;
  margin: 0 auto;
}

.pw-pricing-header__eyebrow {
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--pw-stone);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pw-pricing-header__eyebrow::before,
.pw-pricing-header__eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.42;
}

.pw-pricing-header__title {
  font-family: var(--newsreader);
  font-size: clamp(2.35rem, 5.1vw, 3.95rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--pw-ink);
  margin-bottom: 16px;
}

.pw-pricing-header__sub {
  font-family: var(--newsreader);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.55;
  color: var(--pw-ink-soft);
  margin-bottom: 0;
}

.pw-pricing-header + .pw-tiers-section {
  margin-top: 0;
}

@media (max-width: 640px) {
  .pw-pricing-header {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    margin-inline: auto;
    padding: 20px 0 22px;
    overflow-x: hidden;
  }

  .pw-pricing-header__eyebrow {
    margin-bottom: 10px;
    gap: 9px;
  }

  .pw-pricing-header__eyebrow::before,
  .pw-pricing-header__eyebrow::after {
    width: 20px;
  }

  .pw-pricing-header__title {
    font-size: clamp(2.2rem, 11vw, 3rem);
    line-height: 0.98;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
  }

  .pw-pricing-header__sub {
    max-width: 32ch;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.42;
    overflow-wrap: anywhere;
  }

  .pw-pricing-header__sub br {
    display: none;
  }

  .pw-pricing-header + .pw-tiers-section {
    width: min(100%, calc(100vw - 72px)) !important;
    max-width: calc(100vw - 72px) !important;
    margin-inline: auto !important;
  }

  .pw-pricing-header + .pw-tiers-section .pw-tier-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }
}

/* ========================================================================
   CHECKOUT PAGE — Immersive Silver / Gold Experience (appended)
   ======================================================================== */

.pw-checkout-wing {
  position: relative;
  min-height: calc(100vh - 66px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vh, 64px) clamp(16px, 4vw, 40px);
  overflow: hidden;
}

.pw-checkout-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pw-checkout-ambient__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.pw-checkout--silver .pw-checkout-ambient__ring--1 {
  width: 680px;
  height: 680px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(180, 190, 200, 0.12);
  background: radial-gradient(circle, rgba(200, 215, 230, 0.06) 0%, transparent 70%);
}

.pw-checkout--silver .pw-checkout-ambient__ring--2 {
  width: 980px;
  height: 980px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(180, 190, 200, 0.06);
}

.pw-checkout--gold .pw-checkout-ambient__ring--1 {
  width: 680px;
  height: 680px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(185, 130, 43, 0.12);
  background: radial-gradient(circle, rgba(240, 196, 70, 0.06) 0%, transparent 70%);
}

.pw-checkout--gold .pw-checkout-ambient__ring--2 {
  width: 980px;
  height: 980px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(185, 130, 43, 0.06);
}

/* ── Card ── */
.pw-checkout-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: clamp(36px, 5vw, 52px) clamp(28px, 4vw, 48px);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.pw-checkout--silver .pw-checkout-card {
  background:
    linear-gradient(110deg, rgba(255,255,255,0.9) 0%, transparent 28%, rgba(255,255,255,0.52) 44%, transparent 62%),
    repeating-linear-gradient(135deg, rgba(27,32,36,0.022) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #f9fbfb 0%, #dde2e4 20%, #ffffff 36%, #c8d0d4 60%, #f2f5f5 100%);
  border: 1px solid rgba(120, 132, 140, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(27, 28, 21, 0.06),
    0 4px 12px rgba(80, 92, 100, 0.14),
    0 24px 56px rgba(78, 88, 96, 0.18),
    0 0 60px rgba(210, 225, 240, 0.14);
}

.pw-checkout--gold .pw-checkout-card {
  background:
    linear-gradient(110deg, rgba(255,255,216,0.72) 0%, transparent 26%, rgba(255,246,166,0.46) 44%, transparent 62%),
    repeating-linear-gradient(135deg, rgba(86,50,0,0.022) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #fff1a8 0%, #e3ba43 20%, #fff4b4 36%, #c79a28 62%, #f2d36c 100%);
  border: 1px solid rgba(139, 96, 18, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 251, 196, 0.9),
    inset 0 -1px 0 rgba(86, 50, 0, 0.08),
    0 4px 12px rgba(130, 84, 12, 0.16),
    0 24px 56px rgba(160, 108, 24, 0.22),
    0 0 60px rgba(240, 196, 70, 0.1);
}

/* Glint sheen */
.pw-checkout-card::before {
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: 36%;
  width: 28%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 18%, rgba(255,255,255,0.62) 50%, rgba(255,255,255,0.06) 78%, transparent 100%);
  transform: translateX(-145%) skewX(-18deg);
  opacity: 0;
  animation: pw-metal-entry-sheen 1.5s ease-out 0.35s 1 both;
}

.pw-checkout--gold .pw-checkout-card::before {
  background: linear-gradient(90deg, transparent 0%, rgba(255,244,140,0.1) 18%, rgba(255,255,214,0.62) 50%, rgba(255,225,80,0.12) 78%, transparent 100%);
  animation-delay: 0.5s;
}

.pw-checkout-card > * { position: relative; z-index: 1; }

/* ── Badge ── */
.pw-checkout-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.pw-checkout-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pw-checkout--silver .pw-checkout-badge__dot {
  background: radial-gradient(circle at 35% 30%, #e8ecee, #8e9aa4);
  box-shadow: 0 0 0 3px rgba(170, 182, 190, 0.18);
}

.pw-checkout--gold .pw-checkout-badge__dot {
  background: radial-gradient(circle at 35% 30%, #fff4a8, #b8840e);
  box-shadow: 0 0 0 3px rgba(185, 130, 43, 0.18);
}

.pw-checkout-badge__label {
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--pw-stone);
}

.pw-checkout--gold .pw-checkout-badge__label {
  color: rgba(86, 54, 8, 0.72);
}

/* ── Title ── */
.pw-checkout-title {
  font-family: var(--newsreader);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--pw-ink);
  margin-bottom: 20px;
}

.pw-checkout--gold .pw-checkout-title { color: #2a1f0a; }

/* ── Price ── */
.pw-checkout-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.pw-checkout-price-amount {
  font-family: var(--newsreader);
  font-size: 3.2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--pw-ink);
}

.pw-checkout--gold .pw-checkout-price-amount { color: #2a1f0a; }

.pw-checkout-price-period {
  font-family: var(--manrope);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pw-stone);
}

.pw-checkout--gold .pw-checkout-price-period { color: rgba(86, 54, 8, 0.65); }

/* ── Summary ── */
.pw-checkout-summary {
  font-family: var(--newsreader);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--pw-ink-soft);
  margin-bottom: 24px;
}

.pw-checkout--gold .pw-checkout-summary { color: rgba(42, 31, 10, 0.72); }

/* ── Features ── */
.pw-checkout-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pw-checkout-features li {
  font-family: var(--manrope);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--pw-ink-soft);
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.4;
}

.pw-checkout--gold .pw-checkout-features li { color: rgba(42, 31, 10, 0.72); }

.pw-checkout-features__check {
  font-size: 0.48rem;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ── Separator ── */
.pw-checkout-sep {
  height: 1px;
  margin-bottom: 24px;
}

.pw-checkout--silver .pw-checkout-sep {
  background: linear-gradient(90deg, transparent, rgba(100, 112, 120, 0.28), transparent);
}

.pw-checkout--gold .pw-checkout-sep {
  background: linear-gradient(90deg, transparent, rgba(139, 96, 18, 0.22), transparent);
}

/* ── Status Meta ── */
.pw-checkout-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 32px;
}

.pw-checkout-info-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
}

.pw-checkout-info-block:first-child {
  padding-right: 20px;
  border-right: 1px solid rgba(27, 28, 21, 0.1);
}

.pw-checkout--gold .pw-checkout-info-block:first-child {
  border-right-color: rgba(139, 96, 18, 0.18);
}

.pw-checkout-info-block:last-child { padding-left: 20px; }

.pw-checkout-info-label {
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pw-stone);
}

.pw-checkout--gold .pw-checkout-info-label { color: rgba(86, 54, 8, 0.62); }

.pw-checkout-info-value {
  font-family: var(--newsreader);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--pw-ink);
}

.pw-checkout--gold .pw-checkout-info-value { color: #2a1f0a; }

/* ── Actions ── */
.pw-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pw-checkout-btn--solid {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 2px;
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: all 220ms var(--tf-ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-checkout--silver .pw-checkout-btn--solid {
  background: linear-gradient(135deg, #2c2e28 0%, #1b1c15 100%);
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 20px rgba(27, 28, 21, 0.22);
}

.pw-checkout--silver .pw-checkout-btn--solid:hover:not(:disabled) {
  background: linear-gradient(135deg, #1f4633 0%, #173124 100%);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 12px 28px rgba(23, 49, 36, 0.28);
}

.pw-checkout--gold .pw-checkout-btn--solid {
  background: linear-gradient(135deg, #7a4a00 0%, #5c3600 100%);
  color: #fff8e0;
  box-shadow:
    0 1px 0 rgba(255, 246, 166, 0.2) inset,
    0 8px 20px rgba(100, 64, 8, 0.28);
}

.pw-checkout--gold .pw-checkout-btn--solid:hover:not(:disabled) {
  background: linear-gradient(135deg, #5c3600 0%, #3d2400 100%);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 246, 166, 0.24) inset,
    0 12px 28px rgba(100, 64, 8, 0.36);
}

.pw-checkout-btn--solid:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none !important;
}

.pw-checkout-btn--ghost {
  width: 100%;
  padding: 13px 24px;
  border-radius: 2px;
  font-family: var(--manrope);
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  text-decoration: none;
  transition: all 200ms var(--tf-ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-checkout--silver .pw-checkout-btn--ghost {
  background: rgba(255, 255, 255, 0.32);
  color: var(--pw-ink);
  border: 1px solid rgba(100, 112, 120, 0.28);
}

.pw-checkout--silver .pw-checkout-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(100, 112, 120, 0.48);
  transform: translateY(-1px);
}

.pw-checkout--gold .pw-checkout-btn--ghost {
  background: rgba(255, 246, 166, 0.24);
  color: #2a1f0a;
  border: 1px solid rgba(139, 96, 18, 0.24);
}

.pw-checkout--gold .pw-checkout-btn--ghost:hover {
  background: rgba(255, 246, 166, 0.44);
  border-color: rgba(139, 96, 18, 0.4);
  transform: translateY(-1px);
}

.pw-checkout-muted {
  font-family: var(--manrope);
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: center;
  margin-top: 16px;
  color: var(--pw-stone);
}

.pw-checkout--gold .pw-checkout-muted { color: rgba(86, 54, 8, 0.58); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .pw-checkout-wing {
    padding: 24px 16px;
    align-items: flex-start;
  }

  .pw-checkout-card { padding: 28px 22px; }

  .pw-checkout-price-amount { font-size: 2.6rem; }

  .pw-checkout-meta { grid-template-columns: 1fr; }

  .pw-checkout-info-block:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(27, 28, 21, 0.1);
    padding-right: 0;
    padding-bottom: 14px;
  }

  .pw-checkout-info-block:last-child {
    padding-left: 0;
    padding-top: 14px;
  }
}

/* ========================================================================
   PREMIUM PROCESS PAGE
   ======================================================================== */

.pw-process-header {
  max-width: 760px;
}

.pw-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 42px;
}

.pw-process-card,
.pw-process-plan {
  border: 1px solid rgba(27, 28, 21, 0.045);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 10px 24px rgba(27, 28, 21, 0.018);
}

.pw-process-card {
  min-height: 260px;
  padding: 24px 22px;
}

.pw-process-card__kicker,
.pw-process-plans__intro span {
  display: inline-flex;
  font-family: var(--manrope);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b6012;
}

.pw-process-card h2,
.pw-process-plans__intro h2,
.pw-process-plan h3 {
  color: var(--pw-ink);
  font-family: var(--newsreader);
  font-weight: 520;
  letter-spacing: 0;
}

.pw-process-card h2 {
  margin: 28px 0 12px;
  font-size: clamp(1.38rem, 2vw, 1.72rem);
  line-height: 1.06;
}

.pw-process-card p,
.pw-process-plans__intro p,
.pw-process-plan p,
.pw-process-plan li {
  color: var(--pw-ink-soft);
  font-family: var(--manrope);
  font-size: 0.88rem;
  line-height: 1.65;
}

.pw-process-card p,
.pw-process-plan p {
  margin: 0;
}

.pw-process-plans {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.8fr);
  gap: 24px;
  align-items: start;
  margin: 0 auto 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(27, 28, 21, 0.12);
}

.pw-process-plans__intro h2 {
  margin: 14px 0 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1;
}

.pw-process-plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pw-process-plan {
  padding: 22px;
}

.pw-process-plan h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.pw-process-plan ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pw-process-plan li {
  position: relative;
  padding-left: 18px;
}

.pw-process-plan li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8b6012;
}

@media (max-width: 980px) {
  .pw-process-grid,
  .pw-process-plans,
  .pw-process-plan-list {
    grid-template-columns: 1fr 1fr;
  }

  .pw-process-plans__intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .pw-process-grid,
  .pw-process-plans,
  .pw-process-plan-list {
    grid-template-columns: 1fr;
  }

  .pw-process-card {
    min-height: auto;
  }
}
