/**
 * Appily Fortyseven — Seed Vault product stage
 * Asymmetric cinematic stage + floating buy panel + meter strip + bento dossier
 * Distinct from shared Appily atelier/pick layouts.
 */

.page-product-vault {
  --vx-ink: #1a121c;
  --vx-plum: #3d2b3f;
  --vx-deep: #160f1a;
  --vx-gold: #c9a86c;
  --vx-gold-soft: #e4d0a8;
  --vx-cream: #f7f2ec;
  --vx-sand: #efe6db;
  --vx-muted: #8a7a84;
  --vx-line: rgba(201, 168, 108, 0.28);
  --vx-accent: #c9a86c;
  --vx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vx-serif: 'Playfair Display', Georgia, serif;
  --vx-sans: 'Jost', system-ui, sans-serif;
  background: var(--vx-cream);
  color: var(--vx-ink);
}

.page-product-vault .page-main { padding-top: 0; }
.page-product-vault:has(.a47-vault-dock) { padding-bottom: 78px; }

.a47-vault { position: relative; }

/* Tones */
.a47-vault.tone-peony { --vx-accent: #5c7a4a; }
.a47-vault.tone-hydrangea { --vx-accent: #8b6b8e; }
.a47-vault.tone-rose { --vx-accent: #6b8f71; }
.a47-vault.tone-tulip { --vx-accent: #c47a3a; }
.a47-vault.tone-lily { --vx-accent: #3d6b5c; }
.a47-vault.tone-daisy { --vx-accent: #a67c52; }
.a47-vault.tone-bouquet { --vx-accent: #c9a86c; }

/* Reveal */
.a47-vault-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--vx-ease) calc(var(--a47-delay, 0) * 90ms),
    transform 0.8s var(--vx-ease) calc(var(--a47-delay, 0) * 90ms);
}
.a47-vault-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ════════════ STAGE ════════════ */
.a47-vault-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 70% 60% at 12% 40%, rgba(201, 168, 108, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 90% 10%, rgba(92, 122, 74, 0.12) 0%, transparent 50%),
    linear-gradient(160deg, #21161f 0%, #2f2133 42%, #1a121c 100%);
  color: #fff;
}

.a47-vault-stage-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.a47-vault-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: vxOrb 16s ease-in-out infinite alternate;
}
.a47-vault-orb--a {
  width: min(42vw, 360px);
  aspect-ratio: 1;
  background: var(--vx-accent);
  top: -8%;
  left: -4%;
}
.a47-vault-orb--b {
  width: min(34vw, 280px);
  aspect-ratio: 1;
  background: var(--vx-gold);
  bottom: 5%;
  right: -2%;
  animation-delay: -7s;
}
@keyframes vxOrb {
  to { transform: translate(18px, -14px) scale(1.08); }
}

.a47-vault-stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  align-items: start;
}

/* Visual orbit */
.a47-vault-visual {
  min-width: 0;
}
.a47-vault-visual-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(320px, 48vh, 520px);
  max-width: 560px;
  margin-inline: auto;
}

.a47-vault-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 108, 0.28);
  pointer-events: none;
  box-sizing: border-box;
}
.a47-vault-ring--1 {
  width: min(92%, 500px);
  aspect-ratio: 1;
  border-style: dashed;
  animation: vxSpinA 42s linear infinite;
}
.a47-vault-ring--2 {
  width: min(76%, 410px);
  aspect-ratio: 1;
  border-color: rgba(255,255,255,0.12);
  animation: vxSpinB 28s linear infinite;
}
@keyframes vxSpinA {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes vxSpinB {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.a47-vault-sku-stamp {
  position: absolute;
  top: 6%;
  left: 2%;
  z-index: 3;
  max-height: 70%;
  overflow: hidden;
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.07);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  pointer-events: none;
  user-select: none;
}

.a47-vault-sale-flag {
  position: absolute;
  top: 10%;
  right: max(6%, calc(50% - min(39%, 210px) - 8px));
  z-index: 4;
  padding: 0.55rem 0.85rem;
  background: #c0392b;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 0 10px 24px rgba(192, 57, 43, 0.35);
}

.a47-vault-badge {
  position: absolute;
  bottom: 14%;
  left: max(6%, calc(50% - min(39%, 210px) - 4px));
  z-index: 4;
  max-width: 42%;
  padding: 0.4rem 0.75rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.a47-vault-photo {
  position: relative;
  z-index: 2;
  margin: 0;
  width: min(72%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 10px rgba(255,255,255,0.04),
    0 0 0 1px rgba(201, 168, 108, 0.35),
    0 30px 80px rgba(0,0,0,0.45);
  animation: vxFloat 7s ease-in-out infinite alternate;
}
@keyframes vxFloat {
  to { transform: translateY(-8px); }
}
.a47-vault-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--vx-ease);
}
.a47-vault-visual-frame:hover .a47-vault-photo img {
  transform: scale(1.05);
}

.a47-vault-photo-meta {
  position: absolute;
  bottom: 4%;
  right: 4%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  max-width: 46%;
  text-align: right;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.a47-vault-photo-meta span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Buy panel */
.a47-vault-panel {
  position: relative;
  min-width: 0;
  width: 100%;
  padding: clamp(1.25rem, 2.8vw, 1.75rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.a47-vault-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 0;
}
.a47-vault-crumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a47-vault-crumb a:hover { color: var(--vx-gold-soft); }
.a47-vault-crumb span { color: rgba(255,255,255,0.25); flex-shrink: 0; }

.a47-vault-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vx-gold-soft);
}

.a47-vault-panel h1 {
  margin: 0 0 0.85rem;
  font-family: var(--vx-serif);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.a47-vault-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  min-width: 0;
}

.a47-vault-live,
.a47-vault-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.35rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
}
.a47-vault-chip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a47-vault-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5dce7a;
  box-shadow: 0 0 0 0 rgba(93, 206, 122, 0.55);
  animation: vxPulse 2s ease-in-out infinite;
}
.a47-vault-live.is-out .a47-vault-live-dot {
  background: #e07070;
  animation: none;
}
@keyframes vxPulse {
  50% { box-shadow: 0 0 0 7px rgba(93, 206, 122, 0); }
}

.a47-vault-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.a47-vault-price-block s {
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
}
.a47-vault-price-block strong {
  font-family: var(--vx-serif);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--vx-gold-soft);
}
.a47-vault-price-note {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.a47-vault-lede {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.a47-vault-error {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  background: rgba(192, 57, 43, 0.2);
  border-left: 3px solid #e07070;
  color: #ffd4d0;
  font-size: 0.85rem;
}

.a47-vault-option { margin-bottom: 0.95rem; }
.a47-vault-option-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 0;
}
.a47-vault-option-head span { color: rgba(255,255,255,0.45); flex-shrink: 0; }
.a47-vault-option-head strong {
  color: var(--vx-gold-soft);
  font-weight: 700;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.a47-vault-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.a47-vault-pill {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.78);
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}
.a47-vault-pill:hover {
  border-color: rgba(201, 168, 108, 0.5);
  color: #fff;
}
.a47-vault-pill.is-active {
  background: var(--vx-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.a47-vault-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 1.15rem;
}
.a47-vault-qty-row label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.a47-vault-stepper {
  display: inline-grid;
  grid-template-columns: 40px 52px 40px;
  border: 1px solid rgba(255,255,255,0.16);
  overflow: hidden;
}
.a47-vault-stepper button,
.a47-vault-stepper input {
  appearance: none;
  border: 0;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  height: 42px;
  text-align: center;
}
.a47-vault-stepper button {
  cursor: pointer;
  font-size: 1.15rem;
  transition: background 0.2s;
}
.a47-vault-stepper button:hover { background: rgba(201, 168, 108, 0.25); }
.a47-vault-stepper input { border-inline: 1px solid rgba(255,255,255,0.1); font-weight: 700; }

.a47-vault-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.a47-vault-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 0;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--vx-ease), filter 0.2s, background 0.2s;
}
.a47-vault-btn:hover { transform: translateY(-2px); }
.a47-vault-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}
.a47-vault-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.a47-vault-btn--ghost:hover { background: rgba(255,255,255,0.08); }
.a47-vault-btn--gold {
  background: linear-gradient(135deg, var(--vx-gold-soft), var(--vx-gold));
  color: var(--vx-deep);
  box-shadow: 0 12px 28px rgba(201, 168, 108, 0.28);
}
.a47-vault-btn--gold:hover { filter: brightness(1.05); }

.a47-vault-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.a47-vault-pay span {
  padding: 0.3rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ════════════ METER ════════════ */
.a47-vault-meter {
  background: var(--vx-ink);
  color: #fff;
  border-block: 1px solid rgba(201, 168, 108, 0.2);
}
.a47-vault-meter-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
.a47-vault-meter-item {
  padding: 1rem 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  min-width: 0;
}
.a47-vault-meter-item:last-child { border-right: 0; }
.a47-vault-meter-item em {
  display: block;
  margin-bottom: 0.3rem;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vx-gold);
}
.a47-vault-meter-item strong {
  display: block;
  font-family: var(--vx-sans);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255,255,255,0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ════════════ BENTO ════════════ */
.a47-vault-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(2rem, 5vw, 3.25rem) 0;
}

.a47-vault-card {
  background: #fff;
  border: 1px solid rgba(61, 43, 63, 0.08);
  box-shadow: 0 16px 40px rgba(26, 18, 28, 0.05);
  padding: 1.35rem 1.4rem;
  transition: transform 0.35s var(--vx-ease), box-shadow 0.35s;
}
.a47-vault-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(26, 18, 28, 0.1);
}
.a47-vault-card--about { grid-column: span 7; }
.a47-vault-card--spec { grid-column: span 5; }
.a47-vault-card--perk { grid-column: span 4; }
.a47-vault-card--perk-wide { grid-column: span 4; }

.a47-vault-card header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}
.a47-vault-card-num {
  font-family: var(--vx-serif);
  font-size: 1.35rem;
  color: var(--vx-accent);
}
.a47-vault-card h2,
.a47-vault-card h3 {
  margin: 0;
  font-family: var(--vx-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--vx-plum);
}
.a47-vault-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.a47-vault-card li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--vx-muted);
}
.a47-vault-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--vx-accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.a47-vault-card--spec dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.a47-vault-card--spec dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(61, 43, 63, 0.1);
  font-size: 0.86rem;
}
.a47-vault-card--spec dt {
  color: var(--vx-muted);
  font-weight: 600;
}
.a47-vault-card--spec dd {
  margin: 0;
  color: var(--vx-ink);
  font-weight: 600;
}

.a47-vault-perk-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.75rem;
  background: rgba(61, 43, 63, 0.06);
  font-size: 1.2rem;
}
.a47-vault-card--perk h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.a47-vault-card--perk p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--vx-muted);
}

/* ════════════ RELATED RAIL ════════════ */
.a47-vault-related {
  padding: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
}
.a47-vault-related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.a47-vault-related-head .a47-vault-kicker { color: var(--vx-accent); }
.a47-vault-related-head h2 {
  margin: 0;
  font-family: var(--vx-serif);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--vx-plum);
}
.a47-vault-related-link {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vx-plum);
  text-decoration: none;
  white-space: nowrap;
}
.a47-vault-related-link:hover { color: var(--vx-accent); }

.a47-vault-related-rail {
  display: flex;
  align-items: stretch;
  justify-content: safe center;
  gap: 0;
  overflow-x: auto;
  padding: 0.25rem max(4vw, calc((100vw - 1240px) / 2 + 4vw)) 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  border-top: 1px solid rgba(61, 43, 63, 0.1);
}
.a47-vault-related-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  scroll-snap-align: start;
  background: #fff;
  border-right: 1px solid rgba(61, 43, 63, 0.1);
  overflow: hidden;
  transition: transform 0.3s var(--vx-ease), background 0.3s;
  animation: vxCardIn 0.7s var(--vx-ease) both;
  animation-delay: calc(var(--rel-i, 0) * 70ms);
}
.a47-vault-related-card:first-child {
  border-left: 1px solid rgba(61, 43, 63, 0.1);
}
@keyframes vxCardIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
.a47-vault-related-card:hover {
  transform: translateY(-4px);
  background: #fffcf8;
}
.a47-vault-related-media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 1;
  background: var(--vx-sand);
  overflow: hidden;
}
.a47-vault-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--vx-ease);
}
.a47-vault-related-card:hover .a47-vault-related-media img { transform: scale(1.05); }
.a47-vault-related-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.28rem 0.5rem;
  background: var(--vx-plum);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.a47-vault-related-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 7.75rem;
  padding: 0.9rem 0.95rem 1.05rem;
}
.a47-vault-related-body span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.a47-vault-related-body h3 {
  margin: 0;
  min-height: 2.6em;
  font-family: var(--vx-sans);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}
.a47-vault-related-body h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  color: var(--vx-ink);
}
.a47-vault-related-body strong {
  display: block;
  margin-top: auto;
  padding-top: 0.65rem;
  color: var(--vx-accent);
  font-size: 1rem;
  line-height: 1.2;
}

/* Dock */
.a47-vault-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  transform: translateY(110%);
  transition: transform 0.35s var(--vx-ease);
  background: rgba(22, 15, 26, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(201, 168, 108, 0.25);
  color: #fff;
}
.a47-vault-dock.is-visible { transform: none; }
.a47-vault-dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.a47-vault-dock-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.a47-vault-dock-copy strong {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.a47-vault-dock-copy span { color: var(--vx-gold-soft); font-weight: 700; }
.a47-vault-dock-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.a47-vault-dock .a47-vault-btn { min-height: 42px; padding-inline: 0.95rem; }

/* Miss */
.a47-vault-miss {
  min-height: 55vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
  background: linear-gradient(160deg, #21161f, #1a121c);
  color: #fff;
  text-align: center;
}
.a47-vault-miss-inner { position: relative; max-width: 420px; }
.a47-vault-miss-orbit {
  position: absolute;
  inset: -40px;
  border: 1px dashed rgba(201, 168, 108, 0.3);
  border-radius: 50%;
  animation: vxSpinA 20s linear infinite;
  pointer-events: none;
}
.a47-vault-miss h1 {
  font-family: var(--vx-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0.5rem 0 0.75rem;
}
.a47-vault-miss p { color: rgba(255,255,255,0.65); }
.a47-vault-miss .a47-vault-btn { margin-top: 0.5rem; }

/* Responsive */
@media (max-width: 980px) {
  .a47-vault-stage-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .a47-vault-visual-frame {
    min-height: 300px;
    max-width: 440px;
  }
  .a47-vault-sku-stamp { display: none; }
  .a47-vault-panel { clip-path: none; }
  .a47-vault-meter-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a47-vault-meter-item:nth-child(2n) { border-right: 0; }
  .a47-vault-meter-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .a47-vault-meter-item strong { white-space: normal; }
  .a47-vault-card--about,
  .a47-vault-card--spec,
  .a47-vault-card--perk,
  .a47-vault-card--perk-wide { grid-column: span 12; }
}

@media (max-width: 640px) {
  .a47-vault-actions { grid-template-columns: 1fr; }
  .a47-vault-meter-track { grid-template-columns: 1fr; }
  .a47-vault-meter-item { border-right: 0; }
  .a47-vault-photo { width: min(70%, 260px); }
  .a47-vault-related-head { flex-direction: column; align-items: flex-start; }
  .a47-vault-photo-meta { max-width: 40%; font-size: 0.58rem; }
  .a47-vault-pills { gap: 0.35rem; }
  .a47-vault-pill { padding: 0.5rem 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .a47-vault-reveal,
  .a47-vault-related-card {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .a47-vault-ring,
  .a47-vault-orb,
  .a47-vault-photo,
  .a47-vault-live-dot,
  .a47-vault-miss-orbit {
    animation: none !important;
  }
  .a47-vault-ring {
    transform: translate(-50%, -50%);
  }
}
