/* iCafe Gold — scoped .icf-gold-* (Phase 1 baseline; Phase 2 = full luxury redesign)
   Palette spec: bg #0a0a0c · gold #b8943f · text #f5edd6 · buy #5dcaa5 · sell #e57373
   Scoped to avoid collision with icafe-luxury-dark-gold global CSS. */

.icf-gold-board,
.icf-gold-calc,
.icf-gold-chart,
.icf-gold-news,
.icf-gold-strip,
.icf-gold-page,
.icf-gold-standalone {
  --icfg-bg: #0a0a0c;
  --icfg-surface: #141318;
  --icfg-gold: #b8943f;
  --icfg-gold-soft: rgba(184, 148, 63, 0.28);
  --icfg-text: #f5edd6;
  --icfg-muted: #9a927f;
  --icfg-up: #5dca8a;
  --icfg-down: #e2504a;
  font-family: "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--icfg-text);
  box-sizing: border-box;
  max-width: 1180px;
  margin: 18px auto;
}

.icf-gold-board *,
.icf-gold-calc *,
.icf-gold-chart *,
.icf-gold-news *,
.icf-gold-strip *,
.icf-gold-page * { box-sizing: border-box; }

/* ---- board ---- */
.icf-gold-board {
  background: radial-gradient(circle at 50% -30%, #1b1606 0%, var(--icfg-bg) 80%);
  border: 1px solid var(--icfg-gold-soft);
  border-radius: 16px;
  padding: 22px;
}
.icf-gold-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.icf-gold-live {
  background: var(--icfg-down); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; letter-spacing: 1px;
  animation: icfgPulse 1.6s ease-in-out infinite;
}
@keyframes icfgPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.icf-gold-title { font-size: 22px; font-weight: 700; color: var(--icfg-gold); }
.icf-gold-stamp { font-size: 13px; color: var(--icfg-muted); margin-left: auto; }

.icf-gold-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.icf-gold-card {
  background: var(--icfg-surface);
  border: 1px solid var(--icfg-gold-soft);
  border-radius: 12px; padding: 16px;
}
.icf-gold-card--assoc { box-shadow: 0 0 0 1px rgba(184,148,63,.12) inset; }
.icf-gold-card-label { font-size: 13px; color: var(--icfg-muted); margin: 8px 0 6px; }
.icf-gold-card-label:first-child { margin-top: 0; }
.icf-gold-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.icf-gold-cell {
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column;
}
.icf-gold-cell span { font-size: 12px; color: var(--icfg-muted); }
.icf-gold-cell b { font-size: 22px; font-weight: 700; color: var(--icfg-text); }
.icf-gold-change { margin-top: 12px; font-size: 14px; font-weight: 600; }
.icf-gold-change.is-up { color: var(--icfg-up); }
.icf-gold-change.is-down { color: var(--icfg-down); }

.icf-gold-spdr-current { font-size: 30px; font-weight: 700; color: var(--icfg-gold); margin: 8px 0; }
.icf-gold-spdr-current small { font-size: 14px; color: var(--icfg-muted); }
.icf-gold-spdr-meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--icfg-muted); }
.icf-gold-spdr-meta b { color: var(--icfg-text); }
.icf-gold-spdr-date { font-size: 12px; color: var(--icfg-muted); margin-top: 8px; }

.icf-gold-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.icf-gold-stat {
  background: var(--icfg-surface); border: 1px solid var(--icfg-gold-soft);
  border-radius: 10px; padding: 12px; text-align: center;
}
.icf-gold-stat span { display: block; font-size: 12px; color: var(--icfg-muted); margin-bottom: 4px; }
.icf-gold-stat b { font-size: 20px; color: var(--icfg-gold); }

/* ---- calculator ---- */
.icf-gold-calc {
  background: var(--icfg-surface); border: 1px solid var(--icfg-gold-soft);
  border-radius: 14px; padding: 20px;
}
.icf-gold-calc-head { font-size: 18px; font-weight: 700; color: var(--icfg-gold); margin-bottom: 14px; }
.icf-gold-calc-types { display: flex; gap: 8px; margin-bottom: 16px; }
.icf-gold-type {
  flex: 1; padding: 10px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.03); color: var(--icfg-muted);
  border: 1px solid rgba(255,255,255,.08); font-size: 15px; transition: .2s;
}
.icf-gold-type.is-active { background: var(--icfg-gold); color: #1a1405; font-weight: 700; border-color: var(--icfg-gold); }
.icf-gold-calc-weight label { font-size: 14px; color: var(--icfg-muted); }
.icf-gold-weight-out { color: var(--icfg-gold); font-weight: 700; font-size: 16px; }
.icf-gold-slider { width: 100%; margin: 12px 0 16px; accent-color: var(--icfg-gold); }
.icf-gold-calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.icf-gold-calc-line {
  background: rgba(184,148,63,.06); border: 1px solid var(--icfg-gold-soft);
  border-radius: 10px; padding: 12px; text-align: center;
}
.icf-gold-calc-line span { display: block; font-size: 13px; color: var(--icfg-muted); margin-bottom: 4px; }
.icf-gold-calc-line b { font-size: 22px; color: var(--icfg-text); }

/* ---- chart ---- */
.icf-gold-chart {
  background: var(--icfg-surface); border: 1px solid var(--icfg-gold-soft);
  border-radius: 14px; padding: 18px;
}
.icf-gold-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.icf-gold-chart-title { font-size: 16px; font-weight: 700; color: var(--icfg-gold); }
.icf-gold-chart-tabs { display: flex; gap: 6px; }
.icf-gold-range {
  padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px;
  background: rgba(255,255,255,.03); color: var(--icfg-muted);
  border: 1px solid rgba(255,255,255,.08); transition: .2s;
}
.icf-gold-range.is-active { background: var(--icfg-gold); color: #1a1405; font-weight: 700; border-color: var(--icfg-gold); }
.icf-gold-chart-empty { color: var(--icfg-muted); font-size: 14px; padding: 20px; text-align: center; }
/* fixed-height canvas so bar+line combo renders consistently (maintainAspectRatio:false in JS) */
.icf-gold-chart-canvas { width: 100% !important; height: 340px !important; display: block; }

/* summary cards (3) under the chart */
.icf-gold-sumgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.icf-gold-sumcard {
  background: #13121a; border: 1px solid var(--icfg-gold-soft);
  border-radius: 12px; padding: 16px;
}
.icf-gold-sumcard__label {
  font-size: 12px; color: var(--icfg-muted); letter-spacing: .4px;
  text-transform: uppercase; margin-bottom: 6px;
}
.icf-gold-sumcard__big { font-size: 26px; font-weight: 700; color: var(--icfg-gold); line-height: 1.15; }
.icf-gold-sumcard__big small { font-size: 13px; color: var(--icfg-muted); font-weight: 400; }
.icf-gold-sumcard__big .icf-gold-delta { font-size: 26px; }
.icf-gold-sumcard__sub { font-size: 12px; color: var(--icfg-muted); margin-top: 6px; line-height: 1.5; }

/* ---- news ---- */
.icf-gold-news {
  background: var(--icfg-surface); border: 1px solid var(--icfg-gold-soft);
  border-radius: 14px; padding: 20px;
}
.icf-gold-news-head { font-size: 18px; font-weight: 700; color: var(--icfg-gold); margin-bottom: 14px; }
.icf-gold-news-head small { color: var(--icfg-muted); font-weight: 400; font-size: 13px; }
.icf-gold-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.icf-gold-news-coltitle { font-size: 14px; font-weight: 700; color: var(--icfg-text); border-bottom: 1px solid var(--icfg-gold-soft); padding-bottom: 6px; margin-bottom: 12px; }
.icf-gold-news-item { margin-bottom: 14px; }
.icf-gold-news-item a { color: var(--icfg-text); text-decoration: none; font-size: 15px; line-height: 1.45; display: block; transition: .2s; }
.icf-gold-news-item a:hover { color: var(--icfg-gold); }
.icf-gold-news-time { font-size: 12px; color: var(--icfg-muted); margin-top: 4px; display: block; }
.icf-gold-news-empty { color: var(--icfg-muted); font-size: 14px; }

/* ---- shared delta badge ---- */
.icf-gold-delta { font-style: normal; font-weight: 700; }
.icf-gold-delta.is-up { color: var(--icfg-up); }
.icf-gold-delta.is-down { color: var(--icfg-down); }

/* ======================================================================
 * A) STRIP (BOLD luxury bar — home above XM banner)
 * ====================================================================== */
.icf-gold-strip {
  display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap;
  background: linear-gradient(100deg, #100d08 0%, #1c1509 55%, #241a08 100%);
  border: 1.5px solid #6b5418;
  border-radius: 14px; padding: 0; margin: 0 auto 16px;
  overflow: hidden; position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,.45), 0 0 0 1px rgba(184,148,63,.15);
}
.icf-gold-strip::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #d4b86a, #f5edd6, #d4b86a); z-index: 1;
}
/* left gold block — eye-catching */
.icf-gold-strip__brand {
  display: inline-flex; align-items: center; gap: 9px; align-self: stretch;
  background: linear-gradient(135deg, #b8943f 0%, #8a6d28 100%);
  padding: 12px 18px; text-decoration: none; white-space: nowrap;
}
.icf-gold-strip__brandtxt { font-weight: 800; font-size: 15px; letter-spacing: .3px; }
.icf-gold-strip__livedot {
  width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255,255,255,.30), 0 0 9px 2px rgba(255,255,255,.85);
  animation: icfgPulse 1.4s ease-in-out infinite;
}
.icf-gold-strip__livetag {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #1a1405;
  background: rgba(255,255,255,.55); padding: 1px 6px; border-radius: 4px;
}
.icf-gold-strip__items {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; flex: 1;
  padding: 10px 18px;
}
.icf-gold-strip__item { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.icf-gold-strip__item > span { color: var(--icfg-muted); font-size: 12px; }
.icf-gold-strip__item b { color: var(--icfg-text); font-size: 17px; font-weight: 700; }
.icf-gold-strip__item i { color: var(--icfg-muted); font-style: normal; font-size: 12px; }
/* SPDR center — highlighted glow box (key selling point) */
.icf-gold-strip__spdr {
  align-self: center; background: rgba(184,148,63,.10);
  border: 1px solid rgba(184,148,63,.4); border-radius: 10px; padding: 5px 12px;
  box-shadow: 0 0 14px rgba(184,148,63,.18) inset;
}
.icf-gold-strip__spdr b { color: var(--icfg-gold); font-size: 20px; }
.icf-gold-strip__gld {
  font-size: 10px; font-weight: 800; color: #1a1405;
  background: linear-gradient(135deg, #f5edd6, #d4b86a);
  padding: 1px 6px; border-radius: 4px; letter-spacing: .5px;
}
/* button — cream-gold gradient */
.icf-gold-strip__cta {
  display: inline-flex; align-items: center; white-space: nowrap; align-self: stretch;
  background: linear-gradient(135deg, #f5edd6 0%, #d4b86a 100%);
  font-weight: 800; font-size: 14px; text-decoration: none;
  padding: 0 22px; border-left: 1.5px solid #6b5418; transition: .2s;
}
.icf-gold-strip__cta:hover { filter: brightness(1.06); }

/* ======================================================================
 * A2) STRIP v4 (@container responsive — server-rendered sentiment/ATH)
 * ====================================================================== */
.icf-gold-stripx-wrap { container-type: inline-size; }
.icf-gold-stripx {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  background: linear-gradient(100deg, #100d08 0%, #1c1509 55%, #241a08 100%);
  border: 1.5px solid #6b5418; border-radius: 14px; margin: 0 auto 16px;
  overflow: hidden; position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,.45), 0 0 0 1px rgba(184,148,63,.15);
}
.icf-gold-stripx::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #d4b86a, #f5edd6, #d4b86a); z-index: 1;
}
/* left gold block (brand + date/round) — base = full width centered (mobile-first) */
.icf-gold-stripx__brand {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 5px;
  background: linear-gradient(135deg, #b8943f 0%, #8a6d28 100%);
  padding: 12px 18px; text-decoration: none; min-width: 0; align-self: stretch;
}
.icf-gold-stripx__head { display: inline-flex; align-items: center; gap: 8px; }
.icf-gold-stripx__brandtxt { font-weight: 800; font-size: 15px; letter-spacing: .3px; color: #1a1405; white-space: nowrap; }
.icf-gold-stripx__livedot {
  width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255,255,255,.30), 0 0 9px 2px rgba(255,255,255,.85);
  animation: icfgPulse 1.4s ease-in-out infinite;
}
.icf-gold-stripx__livetag {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #1a1405;
  background: rgba(255,255,255,.55); padding: 1px 6px; border-radius: 4px;
}
.icf-gold-stripx__date { font-size: 11.5px; font-weight: 700; color: #2a2008; white-space: nowrap; }
/* center metrics + badges */
.icf-gold-stripx__main {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column;
  justify-content: center; gap: 9px; padding: 10px 18px;
}
.icf-gold-stripx__row1 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px 20px; }
.icf-gold-stripx__row2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; }
.icf-gold-stripx__metric { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px; min-width: 0; }
.icf-gold-stripx__metric > span { color: var(--icfg-muted); font-size: 12px; white-space: nowrap; }
.icf-gold-stripx__metric b { color: var(--icfg-text); font-size: 18px; font-weight: 800; white-space: nowrap; }
.icf-gold-stripx__metric i { color: var(--icfg-muted); font-style: normal; font-size: 12px; }
.icf-gold-stripx__chg { white-space: nowrap; font-style: normal; }
/* SPDR glow box */
.icf-gold-stripx__spdr {
  align-self: center; background: rgba(184,148,63,.10);
  border: 1px solid rgba(184,148,63,.4); border-radius: 10px; padding: 5px 12px;
  box-shadow: 0 0 14px rgba(184,148,63,.18) inset;
}
.icf-gold-stripx__spdr b { color: var(--icfg-gold); font-size: 20px; }
.icf-gold-stripx__gld {
  font-size: 10px; font-weight: 800; color: #1a1405;
  background: linear-gradient(135deg, #f5edd6, #d4b86a);
  padding: 1px 6px; border-radius: 4px; letter-spacing: .5px;
}
/* bottom badges */
.icf-gold-stripx__badge {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(184,148,63,.30); background: rgba(255,255,255,.03);
  color: var(--icfg-text);
}
.icf-gold-stripx__badge b { font-weight: 800; }
.icf-gold-stripx__badge--senti { border-color: var(--bc); color: var(--bc); background: color-mix(in srgb, var(--bc) 12%, transparent); }
.icf-gold-stripx__badge--senti b { color: var(--bc); }
.icf-gold-stripx__badge--ath { border-color: rgba(226,80,74,.45); color: #f0a39f; }
.icf-gold-stripx__badge--ath b { color: #e2504a; }
.icf-gold-stripx__badge--sync { border-color: rgba(93,202,138,.40); color: #8fe3b3; }
/* CTA button — base = full width (mobile-first) */
.icf-gold-stripx__cta {
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  width: 100%; background: linear-gradient(135deg, #f5edd6 0%, #d4b86a 100%);
  font-weight: 800; font-size: 14px; text-decoration: none; color: #1a1405 !important;
  padding: 13px 24px; border-top: 1.5px solid #6b5418; transition: .2s;
}
.icf-gold-stripx__cta:hover { filter: brightness(1.06); }
/* wide container (>=620px): brand | main | cta in a single row, button split right */
@container (min-width: 620px) {
  .icf-gold-stripx { flex-direction: row; align-items: stretch; }
  .icf-gold-stripx__brand { flex: 0 0 auto; align-items: flex-start; text-align: left; }
  .icf-gold-stripx__cta { flex: 0 0 auto; }
  .icf-gold-stripx__main { flex: 1 1 auto; min-width: 0; }
  .icf-gold-stripx__row1, .icf-gold-stripx__row2 { justify-content: flex-start; }
  .icf-gold-stripx__metric { justify-content: flex-start; }
  .icf-gold-stripx__cta { width: auto; padding: 0 24px; border-top: none; border-left: 1.5px solid #6b5418; }
}

/* ======================================================================
 * B) FULL SPDR PAGE — self-contained dark BG + sidebar nav grid
 * ====================================================================== */
.icf-gold-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  background: var(--icfg-bg);          /* self-contained: readable on any theme */
  color: var(--icfg-text);
  border: 1px solid var(--icfg-gold-soft);
  border-radius: 16px;
  padding: 20px;
}
.icf-gold-page__head { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.icf-gold-page__title { font-size: 24px; font-weight: 700; color: var(--icfg-gold); margin: 0; }
.icf-gold-page .icf-gold-stamp { margin-left: auto; color: var(--icfg-muted); }
.icf-gold-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.icf-gold-main > [id] { scroll-margin-top: 90px; }

/* sidebar nav (in-page anchors) */
.icf-gold-nav { min-width: 0; }
.icf-gold-nav__inner {
  position: sticky; top: 20px;
  background: #111016; border: 1px solid var(--icfg-gold-soft);
  border-radius: 12px; padding: 14px;
}
.icf-gold-nav__toggle {
  display: none; width: 100%; cursor: pointer;
  background: #111016; color: var(--icfg-gold);
  border: 1px solid var(--icfg-gold-soft); border-radius: 10px;
  padding: 12px 14px; font-size: 15px; font-weight: 700;
  align-items: center; justify-content: space-between;
}
.icf-gold-nav__toggle .icf-gold-nav__chev { transition: transform .2s; }
.icf-gold-nav.is-open .icf-gold-nav__toggle .icf-gold-nav__chev { transform: rotate(180deg); }
.icf-gold-nav__group { margin-bottom: 14px; }
.icf-gold-nav__group:last-child { margin-bottom: 0; }
.icf-gold-nav__gtitle {
  font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--icfg-gold); border-bottom: 1px solid var(--icfg-gold-soft);
  padding-bottom: 6px; margin-bottom: 8px;
}
.icf-gold-nav__inner a {
  display: flex; align-items: center; gap: 6px; justify-content: space-between;
  color: var(--icfg-text); text-decoration: none; font-size: 14px;
  padding: 8px 10px; border-radius: 8px; transition: .15s; min-height: 40px;
}
.icf-gold-nav__inner a:hover,
.icf-gold-nav__inner a.is-active { background: rgba(184,148,63,.12); color: var(--icfg-gold); }
.icf-gold-nav__badge {
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  background: var(--icfg-gold); color: #1a1405;
  padding: 2px 7px; border-radius: 999px;
}

/* hero */
.icf-gold-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.icf-gold-hcard {
  background: var(--icfg-surface); border: 1px solid var(--icfg-gold-soft);
  border-radius: 14px; padding: 18px;
}
.icf-gold-hcard--spdr { background: radial-gradient(circle at 50% -40%, #1b1606 0%, var(--icfg-surface) 75%); }
.icf-gold-hcard__delta { font-size: 14px; color: var(--icfg-muted); margin: 6px 0 10px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.icf-gold-hcard__sub { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--icfg-muted); }
.icf-gold-hcard__sub b { color: var(--icfg-text); }

/* tables */
.icf-gold-tbl-wrap {
  background: var(--icfg-surface); border: 1px solid var(--icfg-gold-soft);
  border-radius: 14px; padding: 16px 18px; overflow-x: auto;
}
.icf-gold-tbl-title { font-size: 16px; font-weight: 700; color: var(--icfg-gold); margin-bottom: 10px; }
.icf-gold-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.icf-gold-tbl th, .icf-gold-tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.icf-gold-tbl th { color: var(--icfg-muted); font-weight: 600; }
.icf-gold-tbl td { color: var(--icfg-text); }
.icf-gold-tbl--hist thead th { color: var(--icfg-gold); border-bottom-color: var(--icfg-gold-soft); }
.icf-gold-tbl--hist td:nth-child(2) { font-weight: 600; }

/* stats grid */
.icf-gold-statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.icf-gold-statbox {
  background: var(--icfg-surface); border: 1px solid var(--icfg-gold-soft);
  border-radius: 12px; padding: 16px; font-size: 15px; color: var(--icfg-text);
}
.icf-gold-statbox__t { font-size: 14px; font-weight: 700; color: var(--icfg-gold); margin-bottom: 8px; }
.icf-gold-statbox__sub { font-size: 12px; color: var(--icfg-muted); margin-top: 6px; }

/* CTA */
.icf-gold-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(90deg, #15110a, #221a08);
  border: 1px solid var(--icfg-gold); border-radius: 14px; padding: 20px;
}
.icf-gold-cta__txt { display: flex; flex-direction: column; gap: 4px; }
.icf-gold-cta__txt b { color: var(--icfg-gold); font-size: 18px; }
.icf-gold-cta__txt span { color: var(--icfg-muted); font-size: 14px; }
.icf-gold-cta__btn {
  white-space: nowrap; background: #b8943f;
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; transition: .2s;
}
.icf-gold-cta__btn:hover { filter: brightness(1.08); }

/* Contrast hardening — gold-background anchor buttons must keep DARK text.
   Foxiz forces in-content link color with a high-specificity !important rule:
     body[data-theme="dark"] .entry-content.rbct a:not(.cta-box a):not(.highlight a)
     -> color:#d4a853 !important  (specificity 0,5,4)
   We out-specify it (ancestor chain + doubled class = 0,6,2) and stay
   theme-agnostic via [data-theme] (matches any value). AA: #0a0a0c on #b8943f = 6.9:1. */
body[data-theme] .entry-content.rbct .icf-gold-strip a.icf-gold-strip__cta.icf-gold-strip__cta,
body[data-theme] .entry-content.rbct .icf-gold-cta a.icf-gold-cta__btn.icf-gold-cta__btn,
.icf-gold-strip a.icf-gold-strip__cta,
.icf-gold-cta a.icf-gold-cta__btn { color: #0a0a0c !important; }
/* EA button keeps solid gold; strip button keeps its cream-gold gradient */
.icf-gold-cta a.icf-gold-cta__btn { background: #b8943f !important; }
/* bold strip left block — dark text on gold gradient (AA on #8a6d28 = 5:1+) */
.icf-gold-strip a.icf-gold-strip__brand,
.icf-gold-strip a.icf-gold-strip__brand .icf-gold-strip__brandtxt { color: #1a1405 !important; }
/* share buttons — beat theme forced link color (white on LINE/FB) */
body[data-theme] .entry-content.rbct .icf-gold-share a.icf-gold-share__line.icf-gold-share__line,
body[data-theme] .entry-content.rbct .icf-gold-share a.icf-gold-share__fb.icf-gold-share__fb,
.icf-gold-share a.icf-gold-share__line.icf-gold-share__line,
.icf-gold-share a.icf-gold-share__fb.icf-gold-share__fb { color: #fff !important; text-decoration: none !important; }

/* LIVE badge: white on the soft red (#e57373) was only 2.99:1.
   Darken the badge bg so white text passes AA (white on #c62828 = 5.9:1).
   Only the badge background changes; the --icfg-down variable (used for
   down-trend TEXT on dark) stays #e57373 to keep that contrast intact. */
.icf-gold-live,
.icf-gold-strip__live { background: #c62828; }

/* keep our other in-content links on-brand & readable (gold on dark = AA ok) */
.icf-gold-nav .icf-gold-nav__inner a { color: var(--icfg-text) !important; }
.icf-gold-nav .icf-gold-nav__inner a:hover,
.icf-gold-nav .icf-gold-nav__inner a.is-active { color: var(--icfg-gold) !important; }
.icf-gold-seo p a,
.icf-gold-seo .icf-gold-disclaimer a { color: var(--icfg-gold) !important; }

/* SEO content */
.icf-gold-seo {
  color: var(--icfg-text); line-height: 1.75; font-size: 15px;
  background: var(--icfg-surface); border: 1px solid var(--icfg-gold-soft);
  border-radius: 14px; padding: 18px 20px;
}
.icf-gold-seo h2 { color: var(--icfg-gold); font-size: 19px; margin: 18px 0 8px; }
.icf-gold-seo p { color: #d8cfb6; margin: 0 0 10px; }
.icf-gold-seo .icf-gold-disclaimer { font-size: 12px; color: var(--icfg-muted); margin-top: 12px; }
.icf-gold-seo a { color: var(--icfg-gold); }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .icf-gold-grid { grid-template-columns: 1fr; }
  .icf-gold-stats { grid-template-columns: 1fr; }
  .icf-gold-news-grid { grid-template-columns: 1fr; }
  .icf-gold-calc-result { grid-template-columns: 1fr; }
  .icf-gold-cell b { font-size: 20px; }
  .icf-gold-hero { grid-template-columns: 1fr; }
  .icf-gold-statgrid { grid-template-columns: 1fr; }
  .icf-gold-sumgrid { grid-template-columns: 1fr; }
  .icf-gold-chart-canvas { height: 260px !important; }
  .icf-gold-chart { padding: 14px; }
  .icf-gold-page { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .icf-gold-page__title { font-size: 20px; }
  .icf-gold-page .icf-gold-stamp { margin-left: 0; width: 100%; }
  /* sidebar -> collapsible bar on top */
  .icf-gold-nav__toggle { display: flex; }
  .icf-gold-nav__inner { position: static; display: none; margin-top: 8px; }
  .icf-gold-nav.is-open .icf-gold-nav__inner { display: block; }
  .icf-gold-strip { gap: 10px; padding: 10px 12px; }
  .icf-gold-strip__items { gap: 12px; }
  .icf-gold-strip__cta { width: 100%; text-align: center; }
  .icf-gold-cta { flex-direction: column; align-items: flex-start; }
  .icf-gold-cta__btn { width: 100%; text-align: center; }
}

/* ======================================================================
 * v1.4 — BOLD WIDGET + FULL LUXURY LANDING (gradients · glow · hierarchy)
 * ====================================================================== */

/* hero — giant SPDR number + glow, gradient cards */
.icf-gold-hcard {
  background: linear-gradient(150deg, #15110a 0%, var(--icfg-surface) 70%);
  box-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.icf-gold-hcard--spdr {
  background: radial-gradient(circle at 18% -20%, #2a1f08 0%, #15110a 60%, #0e0b07 100%);
  border-color: rgba(184,148,63,.55);
  box-shadow: 0 0 26px rgba(184,148,63,.16), 0 2px 18px rgba(0,0,0,.4);
}
.icf-gold-hcard--spdr .icf-gold-spdr-current {
  font-size: 38px; line-height: 1.05;
  text-shadow: 0 0 18px rgba(184,148,63,.45);
}
.icf-gold-hcard__delta .icf-gold-delta { font-weight: 800; }
.icf-gold-hcard--assoc .icf-gold-cell { background: #0a0a0c; border-color: rgba(184,148,63,.18); }

/* chart card — gradient + glow + luxury legend already in JS */
.icf-gold-chart {
  background: linear-gradient(160deg, #15110a 0%, var(--icfg-surface) 75%);
  box-shadow: 0 2px 18px rgba(0,0,0,.35);
}

/* summary cards — gradient + subtle glow */
.icf-gold-sumcard {
  background: linear-gradient(155deg, #16130d 0%, #100e08 100%);
  box-shadow: 0 0 16px rgba(184,148,63,.07) inset, 0 2px 12px rgba(0,0,0,.3);
}

/* tables — gold header, striped rows, sticky header, scroll-x */
.icf-gold-tbl-wrap {
  background: linear-gradient(160deg, #15110a 0%, var(--icfg-surface) 75%);
}
.icf-gold-tbl-title .icf-gold-nav__badge {
  background: linear-gradient(135deg, #f5edd6, #d4b86a); color: #1a1405;
}
.icf-gold-tbl--hist thead th {
  position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, #2a2008, #1a1408);
  color: var(--icfg-gold); border-bottom-color: var(--icfg-gold-soft);
}
.icf-gold-tbl--hist tbody tr:nth-child(odd)  { background: #0d0d11; }
.icf-gold-tbl--hist tbody tr:nth-child(even) { background: #0a0a0c; }
#icf-spdr-hist { max-height: 440px; overflow-y: auto; }

/* ticker — gradient cards, bigger numbers */
.icf-gold-stat {
  background: linear-gradient(150deg, #16130d 0%, #100e08 100%);
  box-shadow: 0 0 14px rgba(184,148,63,.06) inset;
}
.icf-gold-stat b { font-size: 24px; }

/* stats month/year — 2 gradient cards + bigger net */
.icf-gold-statgrid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0;
}
.icf-gold-statbox {
  background: linear-gradient(150deg, #16130d 0%, #100e08 100%);
  border: 1px solid var(--icfg-gold-soft); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 0 14px rgba(184,148,63,.06) inset, 0 2px 12px rgba(0,0,0,.3);
}
.icf-gold-statbox__label { color: var(--icfg-gold); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.icf-gold-statbox__net { margin-bottom: 8px; }
.icf-gold-statbox__net .icf-gold-delta { font-size: 24px; font-weight: 800; font-style: normal; }
.icf-gold-statbox__sub { color: var(--icfg-muted); font-size: 12.5px; line-height: 1.7; }

/* calculator — luxury gradient */
.icf-gold-calc {
  background: linear-gradient(160deg, #15110a 0%, var(--icfg-surface) 75%);
  box-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.icf-gold-calc-line { background: rgba(184,148,63,.08); }

/* CTA — richer gradient + button shadow */
.icf-gold-cta {
  background: linear-gradient(110deg, #1a1408 0%, #2a2008 55%, #221a08 100%);
  box-shadow: 0 0 26px rgba(184,148,63,.12);
}
.icf-gold-cta__btn {
  background: linear-gradient(135deg, #d4b86a 0%, #b8943f 100%) !important;
  box-shadow: 0 4px 16px rgba(184,148,63,.35);
}

/* sidebar — gold gradient badge + active glow */
.icf-gold-nav__badge { background: linear-gradient(135deg, #f5edd6, #d4b86a); color: #1a1405; }
.icf-gold-nav .icf-gold-nav__inner a.is-active {
  background: rgba(184,148,63,.16);
  box-shadow: 0 0 0 1px rgba(184,148,63,.4) inset, 0 0 12px rgba(184,148,63,.15);
}

/* SEO — breathing space, gold headings */
.icf-gold-seo h2 { margin: 22px 0 10px; }
.icf-gold-seo h2:first-child { margin-top: 0; }

/* ---- SPDR Sentiment Gauge (feature_1) ---- */
.icf-gold-senti {
  background: radial-gradient(circle at 20% -10%, #241a08 0%, #15110a 55%, #100e08 100%);
  border: 1px solid var(--icfg-gold-soft); border-radius: 16px; padding: 20px 22px;
  margin: 22px 0; box-shadow: 0 0 26px rgba(184,148,63,.10), 0 2px 14px rgba(0,0,0,.35);
}
.icf-gold-senti__head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.icf-gold-senti__title { color: var(--icfg-gold); font-weight: 800; font-size: 17px; }
.icf-gold-senti__hint { color: var(--icfg-muted); font-size: 12.5px; }
.icf-gold-senti__body {
  display: grid; grid-template-columns: minmax(220px, 330px) 1fr; gap: 22px; align-items: center;
}
.icf-gold-senti__gauge { display: flex; align-items: center; justify-content: center; min-height: 150px; }
.icf-gold-senti__svg { width: 100%; max-width: 330px; height: auto; }
.icf-gold-senti__val { font-size: 34px; font-weight: 800; }
.icf-gold-senti__zone { font-size: 13px; font-weight: 700; }
.icf-gold-senti__loading { color: var(--icfg-muted); font-size: 13px; padding: 50px 0; }
.icf-gold-senti__metrics { display: flex; flex-direction: column; gap: 12px; }
.icf-gold-senti__metric {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: #0d0d11; border: 1px solid rgba(184,148,63,.16); border-radius: 12px; padding: 11px 14px;
}
.icf-gold-senti__metric > span { color: var(--icfg-muted); font-size: 12.5px; }
.icf-gold-senti__metric > b { font-size: 18px; color: var(--icfg-text); font-weight: 700; }
.icf-gold-senti__metric .icf-gold-delta { font-style: normal; }
.icf-gold-senti__summary {
  margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  background: rgba(184,148,63,.08); border-left: 3px solid var(--icfg-gold);
  color: var(--icfg-text); font-size: 14px; line-height: 1.6;
}
@media (max-width: 760px) {
  .icf-gold-senti__body { grid-template-columns: 1fr; gap: 16px; }
  .icf-gold-senti__val { font-size: 30px; }
}

/* ---- Price vs 52-week range (feature_2) ---- */
.icf-gold-ath {
  background: linear-gradient(155deg, #15110a 0%, var(--icfg-surface) 75%);
  border: 1px solid var(--icfg-gold-soft); border-radius: 16px; padding: 18px 22px;
  margin: 22px 0; box-shadow: 0 0 22px rgba(184,148,63,.08), 0 2px 14px rgba(0,0,0,.35);
}
.icf-gold-ath__head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.icf-gold-ath__title { color: var(--icfg-gold); font-weight: 800; font-size: 16px; }
.icf-gold-ath__hint { color: var(--icfg-muted); font-size: 12.5px; }
.icf-gold-ath__cur { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
.icf-gold-ath__curlabel { color: var(--icfg-muted); font-size: 13px; }
.icf-gold-ath__curval b { color: var(--icfg-gold); font-size: 30px; font-weight: 800; }
.icf-gold-ath__curval i { color: var(--icfg-muted); font-style: normal; font-size: 14px; }
.icf-gold-ath__frm {
  font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(226,80,74,.14); color: var(--icfg-down);
}
.icf-gold-ath__frm.is-up { background: rgba(93,202,138,.14); color: var(--icfg-up); }
.icf-gold-ath__bar { margin-top: 4px; }
.icf-gold-ath__track {
  position: relative; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #e2504a 0%, #d4b86a 50%, #5dca8a 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.icf-gold-ath__dot {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid #1a1408; transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(255,255,255,.6); transition: left .4s ease;
}
.icf-gold-ath__ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--icfg-muted); }
.icf-gold-ath__ends b { color: var(--icfg-text); font-weight: 700; }
.icf-gold-ath__ends small { color: var(--icfg-muted); }
.icf-gold-ath__hi { text-align: right; }
.icf-gold-ath__loading { color: var(--icfg-muted); font-size: 12.5px; margin-top: 10px; }

/* ---- retro profit calculator (feature_3) ---- */
.icf-gold-calc-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.icf-gold-calc-tab {
  flex: 1; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 14px;
  background: #0d0d11; color: var(--icfg-muted); border: 1px solid rgba(184,148,63,.18); transition: .15s;
}
.icf-gold-calc-tab.is-active {
  background: linear-gradient(135deg, #d4b86a, #b8943f); color: #1a1405; border-color: #b8943f;
}
.icf-gold-acalc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.icf-gold-acalc-field { display: flex; flex-direction: column; gap: 6px; color: var(--icfg-muted); font-size: 13px; }
.icf-gold-acalc-field input {
  background: #0a0a0c; border: 1px solid rgba(184,148,63,.25); border-radius: 10px;
  padding: 10px 12px; color: var(--icfg-text); font-size: 15px; font-weight: 600;
}
.icf-gold-acalc-field input:focus { outline: none; border-color: var(--icfg-gold); }
.icf-gold-acalc-pl.is-up { color: var(--icfg-up); }
.icf-gold-acalc-pl.is-down { color: var(--icfg-down); }
.icf-gold-acalc-msg { color: var(--icfg-muted); font-size: 12px; margin-top: 8px; }
.icf-gold-acalc-note { color: var(--icfg-muted); font-size: 11.5px; margin-top: 10px; line-height: 1.5; }
@media (max-width: 760px) {
  .icf-gold-acalc-inputs { grid-template-columns: 1fr; }
}

/* ---- Context cards (feature_4) ---- */
.icf-gold-ctx { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.icf-gold-ctx__card {
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(155deg, #16130d 0%, #100e08 100%);
  border: 1px solid var(--icfg-gold-soft); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 0 16px rgba(184,148,63,.07) inset, 0 2px 12px rgba(0,0,0,.3);
}
.icf-gold-ctx__ico { font-size: 22px; line-height: 1; }
.icf-gold-ctx__label { color: var(--icfg-muted); font-size: 13px; }
.icf-gold-ctx__val { font-size: 26px; font-weight: 800; color: var(--icfg-text); }
.icf-gold-ctx__val small { font-size: 14px; color: var(--icfg-muted); font-weight: 600; }
.icf-gold-ctx__val .icf-gold-delta { font-style: normal; font-size: 26px; }
.icf-gold-ctx__sub { color: var(--icfg-muted); font-size: 12px; }

/* ---- Share buttons (feature_5) ---- */
.icf-gold-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.icf-gold-share__label { color: var(--icfg-muted); font-size: 13px; font-weight: 600; }
.icf-gold-share__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: none; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none;
  cursor: pointer; transition: .15s;
}
.icf-gold-share__btn:hover { filter: brightness(1.07); }
.icf-gold-share__ico {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px;
  font-weight: 800; font-size: 13px;
}
.icf-gold-share__line { background: linear-gradient(135deg, #09b54f, #067a37); }
.icf-gold-share__fb   { background: linear-gradient(135deg, #1565d8, #0a4aa8); }
.icf-gold-share__copy { background: linear-gradient(135deg, #f5edd6, #d4b86a); }
@media (max-width: 540px) {
  .icf-gold-ctx { grid-template-columns: 1fr; }
  .icf-gold-share__label { width: 100%; }
  .icf-gold-share__btn { flex: 1; justify-content: center; }
}

/* ---- Stale-data badge (Part C — shows only when data is genuinely late) ---- */
.icf-gold-stale-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px; padding: 4px 11px; border-radius: 999px;
  background: linear-gradient(135deg, #3a2f0c, #4a3a0e);
  border: 1px solid #d9b24a; color: #ffd873;
  font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.icf-gold-stale-badge[hidden] { display: none !important; }

/* SPDR is official T+1 — clarify so the lagging holdings date doesn't read as frozen */
.icf-gold-stamp__note { color: var(--icfg-muted); font-size: 11px; font-weight: 500; opacity: .85; }

/* Freshness block (2-line): official SPDR date + live system/price status */
.icf-gold-fresh { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; }
.icf-gold-fresh__main { color: var(--icfg-muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.icf-gold-fresh__main strong { color: var(--icfg-text); font-weight: 700; }
.icf-gold-fresh__sub { color: #5dca8a; font-size: 12px; font-weight: 700; }
.icf-gold-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; font-size: 11px; font-style: normal;
  color: #1a1405; background: #d4b86a; cursor: help; user-select: none;
}
.icf-gold-info:focus { outline: 2px solid #d4b86a; outline-offset: 2px; }

/* Prominent fresh world price (XAU/USD close) at top of hero */
.icf-gold-spot {
  grid-column: 1 / -1; /* span full width — must not consume a grid column (was squishing content) */
  margin: 14px 0 6px; padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(135deg, #181206, #241a08);
  border: 1px solid var(--icfg-gold-soft);
  box-shadow: 0 0 18px rgba(184,148,63,.08) inset, 0 2px 12px rgba(0,0,0,.3);
}
.icf-gold-spot__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.icf-gold-spot__label { color: var(--icfg-muted); font-size: 13px; }
.icf-gold-spot__live { color: #5dca8a; font-size: 13px; font-weight: 700; }
.icf-gold-spot__val { font-size: 32px; font-weight: 800; color: var(--icfg-text); margin-top: 2px; }
.icf-gold-spot__val small { font-size: 15px; color: var(--icfg-muted); font-weight: 600; }
@media (max-width: 540px) {
  .icf-gold-spot__val { font-size: 27px; }
}

/* plain-language SPDR note (v2) */
.icf-gold-fresh__note { color: var(--icfg-muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }

/* ---- Pro association price table (v2 / sandbox) ---- */
.icf-gold-v2 .icf-gold-hero { grid-template-columns: 1fr; }
.icf-gold-assoc {
  border: 1px solid var(--icfg-gold-soft); border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #16130d, #100e08);
  box-shadow: 0 0 22px rgba(184,148,63,.08) inset, 0 4px 18px rgba(0,0,0,.35);
}
.icf-gold-assoc__head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: linear-gradient(135deg, #b8943f, #8a6d28);
  color: #1a1405;
}
.icf-gold-assoc__badge { font-size: 24px; line-height: 1; }
.icf-gold-assoc__titles { display: flex; flex-direction: column; line-height: 1.25; }
.icf-gold-assoc__title { font-size: 16px; font-weight: 800; }
.icf-gold-assoc__sub { font-size: 12px; font-weight: 600; opacity: .85; }
.icf-gold-assoc__purity {
  margin-left: auto; font-size: 18px; font-weight: 800;
  background: rgba(26,20,5,.18); border: 1px solid rgba(26,20,5,.3);
  padding: 4px 12px; border-radius: 999px;
}
.icf-gold-assoc__tbl { padding: 6px 0; }
.icf-gold-assoc__r {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center;
  padding: 12px 18px; gap: 10px;
}
.icf-gold-assoc__r--head {
  color: var(--icfg-muted); font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--icfg-gold-soft);
}
.icf-gold-assoc__r--head span:not(:first-child),
.icf-gold-assoc__num { text-align: right; }
.icf-gold-assoc__r--orn { border-top: 1px dashed rgba(184,148,63,.18); }
.icf-gold-assoc__type { color: var(--icfg-text); font-weight: 600; }
.icf-gold-assoc__num { font-size: 26px; font-weight: 800; color: var(--icfg-text); font-variant-numeric: tabular-nums; }
.icf-gold-assoc__num--sm { font-size: 19px; font-weight: 700; color: var(--icfg-muted); }
.icf-gold-assoc__foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 12px 18px; border-top: 1px solid var(--icfg-gold-soft);
}
.icf-gold-assoc__chg { font-size: 15px; font-weight: 800; }
.icf-gold-assoc__chg.is-up { color: var(--icfg-up); }
.icf-gold-assoc__chg.is-down { color: var(--icfg-down); }
.icf-gold-assoc__round {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--icfg-gold);
  border: 1px solid var(--icfg-gold-soft); border-radius: 999px; padding: 3px 11px;
}
.icf-gold-assoc__dt {
  padding: 10px 18px 14px; color: var(--icfg-muted); font-size: 13px;
}
@media (max-width: 540px) {
  .icf-gold-assoc__num { font-size: 20px; }
  .icf-gold-assoc__num--sm { font-size: 16px; }
  .icf-gold-assoc__r { padding: 11px 12px; grid-template-columns: 1fr 0.9fr 0.9fr; gap: 6px; }
  .icf-gold-assoc__head { padding: 12px 14px; }
  .icf-gold-assoc__title { font-size: 15px; }
}

/* ---- BOLD strip + landing — mobile (≤760) ---- */
@media (max-width: 760px) {
  .icf-gold-strip { flex-wrap: wrap; }
  .icf-gold-strip__brand { width: 100%; justify-content: center; padding: 10px 14px; }
  .icf-gold-strip__items { width: 100%; gap: 14px 18px; padding: 12px 14px; justify-content: center; }
  .icf-gold-strip__cta {
    width: 100%; justify-content: center; border-left: none;
    border-top: 1.5px solid #6b5418; padding: 13px 18px; min-height: 46px;
  }
  .icf-gold-hcard--spdr .icf-gold-spdr-current { font-size: 32px; }
  .icf-gold-stats { grid-template-columns: 1fr 1fr; }
}

/* ---- SPDR flow PREVIEW card -> /spdr-flow/ (landing, scoped, dark-gold) ---- */
.icf-spdr-preview {
  display: block; text-decoration: none; color: #f4ead2;
  margin: 18px 0; padding: 18px 20px 16px; border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(232,185,74,.10) 0%, rgba(232,185,74,0) 45%),
    linear-gradient(165deg, #15130f 0%, #0d0d0f 70%);
  border: 1px solid rgba(232,185,74,.30);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.icf-spdr-preview:hover {
  border-color: #e8b94a; transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(232,185,74,.25);
}
.icf-spdr-preview__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.icf-spdr-preview__live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #0d0d0f;
  background: #e8b94a; padding: 3px 9px; border-radius: 999px;
}
.icf-spdr-preview__dot {
  width: 6px; height: 6px; border-radius: 50%; background: #0d0d0f;
  animation: icfSpdrPulse 1.6s ease-in-out infinite;
}
@keyframes icfSpdrPulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.icf-spdr-preview__title { font-size: 15px; font-weight: 800; color: #f6edd6; }
.icf-spdr-preview__streak {
  margin-left: auto; font-size: 12.5px; font-weight: 800;
  padding: 3px 11px; border-radius: 999px; white-space: nowrap;
}
.icf-spdr-preview__streak.is-up { color: #e8b94a; background: rgba(232,185,74,.12); border: 1px solid rgba(232,185,74,.3); }
.icf-spdr-preview__streak.is-down { color: #f08a7d; background: rgba(226,91,74,.12); border: 1px solid rgba(226,91,74,.35); }

.icf-spdr-preview__metrics {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 14px 0 4px;
}
.icf-spdr-preview__m {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(232,185,74,.12);
}
.icf-spdr-preview__mlabel { font-size: 11.5px; font-weight: 600; color: #9a9488; }
.icf-spdr-preview__mval { font-size: 20px; font-weight: 800; color: #f6edd6; font-variant-numeric: tabular-nums; }
.icf-spdr-preview__mval small { font-size: .55em; font-weight: 600; color: #9a9488; }
.icf-spdr-preview__mval .icf-gold-delta { font-size: 19px; }

.icf-spdr-preview__chart {
  display: flex; align-items: center; gap: 2px; height: 64px;
  margin-top: 12px; padding: 0 2px;
}
.icf-spdr-preview__bar {
  flex: 1 1 0; min-width: 0; height: var(--h); min-height: 4px;
  border-radius: 2px 2px 1px 1px; align-self: center; display: block;
}
.icf-spdr-preview__bar.is-up { background: linear-gradient(180deg, #f0c860, #e8b94a); }
.icf-spdr-preview__bar.is-down { background: linear-gradient(180deg, #e25b4a, #c0432f); }
.icf-spdr-preview__chartcap {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 7px; font-size: 11.5px; color: #8e887c;
}
.icf-spdr-preview__lg { display: inline-flex; align-items: center; gap: 10px; }
.icf-spdr-preview__lg i { display: inline-flex; align-items: center; gap: 4px; font-style: normal; }
.icf-spdr-preview__lg i::before { content: ""; width: 9px; height: 9px; border-radius: 2px; }
.icf-spdr-preview__lg i.is-up::before { background: #e8b94a; }
.icf-spdr-preview__lg i.is-down::before { background: #e25b4a; }

.icf-spdr-preview__cta {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  padding: 13px 16px; border-radius: 12px;
  background: linear-gradient(100deg, #e8b94a 0%, #d9a531 100%);
  color: #1a1405;
}
.icf-spdr-preview__ctatxt { font-size: 14.5px; font-weight: 800; flex: 1 1 auto; }
.icf-spdr-preview__arrow {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #1a1405; color: #e8b94a; font-size: 18px; font-weight: 800;
  transition: transform .18s;
}
.icf-spdr-preview:hover .icf-spdr-preview__arrow { transform: translateX(3px); }

@media (max-width: 540px) {
  .icf-spdr-preview { padding: 15px 15px 14px; border-radius: 16px; }
  .icf-spdr-preview__title { font-size: 14px; }
  .icf-spdr-preview__streak { font-size: 11.5px; margin-left: 0; width: 100%; text-align: center; }
  .icf-spdr-preview__mval { font-size: 17px; }
  .icf-spdr-preview__mval .icf-gold-delta { font-size: 16px; }
  .icf-spdr-preview__chart { height: 54px; }
  .icf-spdr-preview__ctatxt { font-size: 13px; }
}
