/* ============================================================
   bullion.ag — Shared Design System
   Premium fintech / precious metals aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --gold:          #C9A84C;
  --gold-hover:    #B8942E;
  --gold-light:    #F5EDD5;
  --gold-bg:       #FDFAF3;
  --gold-glow:     rgba(201,168,76,0.18);
  --silver:        #8B96A3;
  --silver-light:  #EEF1F5;
  --dark:          #1A1C22;
  --dark-2:        #23262F;
  --dark-3:        #2E323E;
  --dark-4:        #3A3F4E;
  --text-primary:  #1A1C22;
  --text-secondary:#52576A;
  --text-muted:    #8B91A5;
  --white:         #FFFFFF;
  --bg:            #F8F7F4;
  --bg-warm:       #FDFAF3;
  --card-bg:       #FFFFFF;
  --border:        #E8E5DE;
  --border-warm:   #EDE9DF;
  --green:         #16A34A;
  --green-bg:      #DCFCE7;
  --red:           #DC2626;
  --red-bg:        #FEE2E2;
  --shadow-xs:     0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow:        0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-gold:   0 4px 24px rgba(201,168,76,0.22);
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --nav-height:    64px;
  --ticker-height: 40px;
  --transition:    0.18s ease;
  --transition-md: 0.28s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--silver); }

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--dark);
  border-bottom: 1px solid var(--dark-3);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 40px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold), #E8C97A);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-logo-text span:first-child { color: var(--gold); }
.nav-logo-text span:last-child  { color: rgba(255,255,255,0.5); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: rgba(255,255,255,0.9);
  background: var(--dark-3);
}

.nav-link.active {
  color: var(--gold);
  background: rgba(201,168,76,0.12);
}

.nav-cta {
  margin-left: auto;
  padding: 9px 20px;
  background: var(--gold);
  color: var(--dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* ── Live Ticker ── */
.ticker-bar {
  height: var(--ticker-height);
  background: var(--dark-2);
  border-bottom: 1px solid var(--dark-3);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: tickerScroll 40s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  border-right: 1px solid var(--dark-3);
}

.ticker-metal { font-weight: 600; color: rgba(255,255,255,0.85); letter-spacing: 0.3px; }
.ticker-price { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker-change.up   { color: var(--green); }
.ticker-change.down { color: var(--red); }

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Page Layout ── */
.page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.page-wrap.narrow { max-width: 800px; }
.page-wrap.wide   { max-width: 1280px; }

/* ── Section Headers ── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-padded { padding: 28px; }

.card:hover { box-shadow: var(--shadow); }

.card.gold-accent {
  border-color: rgba(201,168,76,0.3);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-bg) 100%);
}

/* ── Price Cards ── */
.price-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.price-card:hover::before { opacity: 1; }

.price-card.gold-card  { --card-accent: var(--gold); }
.price-card.silver-card { --card-accent: var(--silver); }
.price-card.platinum-card { --card-accent: #B8B8CC; }
.price-card.palladium-card { --card-accent: #9BA8A4; }

.price-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.price-card-metal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metal-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.gold-card   .metal-icon { background: var(--gold-light); color: var(--gold-hover); }
.silver-card .metal-icon { background: var(--silver-light); color: var(--silver); }
.platinum-card .metal-icon { background: #EBEBF5; color: #6B6B99; }
.palladium-card .metal-icon { background: #EBF0EF; color: #5A7B76; }

.metal-name  { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.metal-symbol { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.price-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.2px;
}

.price-badge.up   { background: var(--green-bg); color: var(--green); }
.price-badge.down { background: var(--red-bg);   color: var(--red); }

.price-main {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
  transition: color 0.4s ease;
}

.price-main.flash-up   { color: var(--green); }
.price-main.flash-down { color: var(--red); }

.price-change-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.price-change-abs {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.price-change-abs.up   { color: var(--green); }
.price-change-abs.down { color: var(--red); }

.price-change-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Sparkline */
.sparkline-wrap {
  height: 44px;
  width: 100%;
}

.sparkline-wrap svg { width: 100%; height: 100%; }
.sparkline-line { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sparkline-area { opacity: 0.12; }

.gold-card     .sparkline-line { stroke: var(--gold); }
.gold-card     .sparkline-area { fill: var(--gold); }
.silver-card   .sparkline-line { stroke: var(--silver); }
.silver-card   .sparkline-area { fill: var(--silver); }
.platinum-card .sparkline-line { stroke: #8B8BB5; }
.platinum-card .sparkline-area { fill: #8B8BB5; }
.palladium-card .sparkline-line { stroke: #6A9E98; }
.palladium-card .sparkline-area { fill: #6A9E98; }

/* ── Ratio Card ── */
.ratio-card {
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: white;
  position: relative;
  overflow: hidden;
}

.ratio-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.ratio-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.ratio-value {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.ratio-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.ratio-bar-wrap {
  margin-top: 20px;
}

.ratio-bar-track {
  height: 6px;
  background: var(--dark-4);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ratio-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  border-radius: 3px;
  transition: width 1s ease;
}

.ratio-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

/* ── Chart Section ── */
.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.chart-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.chart-metal-tabs {
  display: flex;
  gap: 6px;
}

.chart-tab {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.chart-tab.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.chart-tab:hover:not(.active) {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--gold-hover);
}

.chart-period-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.period-tab {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
}

.period-tab.active {
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.period-tab:hover:not(.active) { color: var(--text-secondary); background: rgba(255,255,255,0.5); }

.chart-body { padding: 20px 28px 28px; }
.chart-body canvas { display: block; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(201,168,76,0.3);
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-dark {
  background: var(--dark);
  color: white;
}

.btn-dark:hover { background: var(--dark-3); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-lg { padding: 15px 32px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.1px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B91A5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Slider */
.form-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  margin: 8px 0;
}

.form-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(201,168,76,0.4);
  transition: transform var(--transition);
}

.form-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.slider-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ── Result Hero ── */
.result-hero {
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--gold-glow) 0%, transparent 65%);
}

.result-hero-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
  position: relative;
}

.result-hero-value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  position: relative;
}

.result-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  position: relative;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}

.result-cell {
  background: var(--card-bg);
  padding: 16px;
  text-align: center;
}

.result-cell-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.result-cell-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* ── Affiliate CTA Cards ── */
.affiliate-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.affiliate-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-md);
  position: relative;
  overflow: hidden;
}

.affiliate-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.affiliate-card.featured {
  border-color: var(--gold);
  background: var(--gold-bg);
}

.affiliate-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gold);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.affiliate-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.affiliate-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.affiliate-features {
  list-style: none;
  margin-bottom: 20px;
}

.affiliate-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.affiliate-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

/* ── Portfolio ── */
.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}

.summary-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.summary-card-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.summary-card-value.gold { color: var(--gold); }
.summary-card-value.green { color: var(--green); }

.holdings-table { width: 100%; border-collapse: collapse; }

.holdings-table th {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.holdings-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-warm);
  color: var(--text-primary);
  vertical-align: middle;
}

.holdings-table tr:last-child td { border-bottom: none; }
.holdings-table tr:hover td { background: var(--bg-warm); }

.holding-metal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
}

.holding-metal-pill.gold     { background: var(--gold-light);   color: var(--gold-hover); }
.holding-metal-pill.silver   { background: var(--silver-light); color: var(--silver); }
.holding-metal-pill.platinum { background: #EBEBF5; color: #6B6B99; }
.holding-metal-pill.palladium { background: #EBF0EF; color: #5A7B76; }

.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  transition: background var(--transition);
}

.btn-danger:hover { background: #fecaca; }

/* ── Hero (IRA page) ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 60%, #2A2218 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  background: rgba(201,168,76,0.12);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: white;
  letter-spacing: -1.5px;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 20px;
  position: relative;
}

.page-hero h1 em { color: var(--gold); font-style: normal; }

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
  position: relative;
}

/* ── FAQ Accordion ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--gold); }

.faq-chevron {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  border-color: var(--gold);
  background: var(--gold-light);
}

.faq-answer {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-bottom: 0;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state-icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Footer ── */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--dark-3);
  padding: 40px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.2px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-link:hover { color: rgba(255,255,255,0.8); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--dark-3);
  margin-top: 10px;
}

/* ── Utility ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-muted { color: var(--text-muted); font-size: 13px; }
.text-gold  { color: var(--gold); }
.text-right { text-align: right; }
.font-mono  { font-variant-numeric: tabular-nums; }

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.tag.gold { background: var(--gold-light); color: var(--gold-hover); border-color: rgba(201,168,76,0.3); }
.tag.green { background: var(--green-bg); color: var(--green); border-color: rgba(22,163,74,0.2); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .price-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 56px; }
  .page-wrap { padding: 28px 16px 60px; }
  .price-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .affiliate-cards { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .portfolio-summary { grid-template-columns: 1fr 1fr; }
  .price-main { font-size: 22px; }
  .result-hero-value { font-size: 38px; }
  .chart-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .price-cards-grid { grid-template-columns: 1fr; }
}

/* ── Loading Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, #f0ede8 25%, #e8e4de 50%, #f0ede8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ── Number Flip Animation ── */
@keyframes numFlip {
  0%   { transform: translateY(-4px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

.num-animate { animation: numFlip 0.25s ease; }
