/* ═══════════════════════════════════════════════
   Hidden Fortunes — The Vault (Tools) Kit
   Shared visual components for every calculator page.
   Loaded only on Vault instrument pages — see functions.php
   ═══════════════════════════════════════════════ */

.vault-intro {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.vault-intro p { font-size: 18px; line-height: 1.85; color: #bbb; }
.vault-intro p + p { margin-top: 20px; }
.vault-intro strong { color: var(--white); font-weight: 500; }

/* ── CALCULATOR PANEL ── */
.vault-calculator {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.vault-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid rgba(201,168,76,0.3);
}

.vault-fields-col,
.vault-result-col {
  background: var(--surface);
  padding: 44px;
}

.vault-result-col {
  display: flex;
  flex-direction: column;
}

.vault-presets-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.vault-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.vault-chip {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.vault-chip:hover { border-color: var(--gold); color: var(--white); }
.vault-chip.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.vault-field { margin-bottom: 26px; }

.vault-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.vault-field-helper {
  display: block;
  font-size: 12px;
  color: #555;
  margin-top: 8px;
}

.vault-field-input-wrap { position: relative; }

.vault-field-input-wrap .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 15px;
  pointer-events: none;
}

.vault-field input[type="text"],
.vault-field input[type="number"] {
  width: 100%;
  background: #111;
  border: 1px solid #2a2a2a;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 12px 16px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.vault-field input[type="text"] { padding-left: 30px; }
.vault-field input:focus { border-color: var(--gold); }
.vault-field input.vault-nudge { border-color: var(--gold-dim); }

.vault-slider {
  width: 100%;
  margin-top: 12px;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: #2a2a2a;
  outline: none;
  cursor: pointer;
}
.vault-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}
.vault-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}

.vault-field-inline {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vault-field-inline input[type="number"] {
  max-width: 90px;
  text-align: center;
  padding-left: 8px;
}

.vault-advanced-toggle {
  background: none;
  border: none;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.vault-advanced-toggle:hover { color: var(--gold); }

.vault-advanced {
  display: none;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.vault-advanced.open { display: block; }

/* ── RESULT COLUMN ── */
.vault-result-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.vault-result-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.vault-result-sub {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 28px;
  opacity: 0;
  transition: opacity 0.5s ease;
  min-height: 18px;
}
.vault-result-sub.visible { opacity: 1; }

.vault-stat-row {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
}
.vault-stat { flex: 1; }
.vault-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
  display: block;
}
.vault-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.vault-stat-value.gold { color: var(--gold); }

.vault-splitbar {
  display: flex;
  height: 8px;
  width: 100%;
  background: #1e1e1e;
  overflow: hidden;
  margin-bottom: 10px;
}
.vault-splitbar-contrib { background: #3a3a3a; transition: width 0.5s ease; }
.vault-splitbar-interest { background: var(--gold); transition: width 0.5s ease; }

.vault-progress-track {
  width: 100%;
  height: 6px;
  background: #1e1e1e;
  margin-bottom: 10px;
  overflow: hidden;
}
.vault-progress-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.6s ease;
}

.vault-caption {
  font-size: 12px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.vault-fact-chip {
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.06);
  padding: 12px 16px;
  font-size: 13px;
  color: #bbb;
  margin-top: auto;
}
.vault-fact-chip strong { color: var(--gold); }

.vault-empty-state {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-bottom: 20px;
}

#ci-copy-link, #fm-copy-link {
  align-self: flex-start;
  margin-top: 22px;
}
.vault-copy-btn.copied { border-color: #2a5a2a; color: #8fd68f; }

/* ── FAQ ACCORDION ── */
.vault-faq { max-width: 760px; margin: 0 auto; }
.vault-faq-item { border-bottom: 1px solid var(--border); }
.vault-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.vault-faq-q .icon {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  line-height: 1;
}
.vault-faq-item.open .vault-faq-q .icon { transform: rotate(45deg); }
.vault-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.vault-faq-a p {
  font-size: 14px;
  color: #999;
  line-height: 1.8;
  padding-bottom: 22px;
  padding-right: 30px;
}

/* ── NOTICE / DISCLAIMER ── */
.vault-notice {
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.05);
  padding: 20px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.vault-notice p { font-size: 13px; color: #888; line-height: 1.75; margin: 0; }

/* ── STICKY MOBILE SUMMARY ── */
.vault-sticky-summary {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(10,10,10,0.97);
  border-top: 1px solid rgba(201,168,76,0.25);
  padding: 14px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.vault-sticky-summary.visible { display: flex; }
.vault-sticky-summary .label {
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.vault-sticky-summary .value {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 17px;
  font-weight: 700;
}

/* ── QUOTE / VIGNETTE BLOCK ── */
.vault-vignette {
  max-width: 720px;
  margin: 0 auto;
}
.vault-vignette p {
  font-size: 16px;
  color: #bbb;
  line-height: 1.85;
  margin-bottom: 18px;
}
.vault-vignette a { color: var(--gold); text-decoration: none; }
.vault-vignette a:hover { color: var(--gold-light); }

@media (max-width: 768px) {
  .vault-calculator { padding: 0 0 60px; }
  .vault-panel { grid-template-columns: 1fr; }
  .vault-fields-col, .vault-result-col { padding: 28px 24px; }
  .vault-stat-row { flex-direction: column; gap: 14px; }
  .vault-sticky-summary { padding: 12px 16px; }
}
