:root {
  --bg: #080b10;
  --panel: #0f141c;
  --panel-2: #131a24;
  --text: #f5efe4;
  --muted: #a7adba;
  --line: rgba(255,255,255,0.11);
  --gold: #d7a84f;
  --gold-2: #f0c879;
  --green: #6bcf98;
  --red: #ff7b7b;
  --amber: #f2b85b;
  --blue: #7da7ff;
  --shadow: 0 18px 55px rgba(0,0,0,0.35);
  --radius: 24px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(215,168,79,0.16), transparent 35rem),
    radial-gradient(circle at 80% 20%, rgba(125,167,255,0.09), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.site-header {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  height: 42px;
  min-width: 72px;
  padding: 0 12px;
  border: 1px solid rgba(215,168,79,0.45);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(215,168,79,0.25), rgba(215,168,79,0.05));
  color: var(--gold-2);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-text { color: var(--muted); font-size: 0.92rem; }
.nav { display: flex; gap: 18px; color: var(--muted); font-size: 0.94rem; }
.nav a:hover { color: var(--text); }

/* Live ticker */
.ticker-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 14px;
  border: 1px solid rgba(215,168,79,0.18);
  border-radius: 18px;
  background: rgba(8, 11, 16, 0.72);
  box-shadow: 0 12px 35px rgba(0,0,0,0.22);
  overflow: hidden;
}
.ticker-inner {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 48px;
  align-items: center;
}
.ticker-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.ticker-window { overflow: hidden; position: relative; }
.ticker-window::before,
.ticker-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}
.ticker-window::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker-window::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  padding: 0 24px;
  min-height: 48px;
  animation: ticker-scroll 38s linear infinite;
}
.ticker-strip:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.92rem;
}
.ticker-item .ticker-name { color: var(--muted); font-weight: 700; }
.ticker-item strong { color: var(--text); font-size: 0.98rem; }
.ticker-item .ticker-change { font-weight: 800; }
.ticker-loading { color: var(--muted); white-space: nowrap; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* TradingView ticker strip */
.tv-ticker-strip {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8, 11, 16, 0.94);
  box-shadow: 0 12px 35px rgba(0,0,0,0.34);
  backdrop-filter: blur(14px);
}
.tv-ticker-shell {
  min-height: 48px;
  display: flex;
  align-items: center;
}
.agau-tradingview-ticker {
  width: 100%;
  min-height: 48px;
}
.agau-tradingview-ticker iframe {
  display: block;
}
.tradingview-widget-copyright {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  padding: 0 14px 8px;
}
.tradingview-widget-copyright a { color: var(--gold-2); }

.hero, .dashboard-hero, .section, .dashboard-wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.hero {
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 30px 0 62px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); line-height: 0.95; letter-spacing: -0.07em; margin-bottom: 22px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -0.045em; margin-bottom: 14px; }
h3 { letter-spacing: -0.02em; }
.hero-lede, .dashboard-summary, .section-title p, .premium-card p, .driver-item p, .locked-card p, .story-card p, .proof-note span { color: var(--muted); }
.hero-lede { font-size: 1.18rem; max-width: 680px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 750;
}
.button.primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #171005; border: 0; }
.button.ghost { background: rgba(255,255,255,0.05); color: var(--text); }
.hero-panel, .premium-card, .signal-box, .insight-card, .driver-card, .market-card, .locked-card, .driver-item, .story-card, .paid-cta {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel { padding: 28px; min-height: 360px; }
.panel-topline, .freshness-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 18px;
}
.live-dot, .badge, .source-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(107,207,152,0.12);
  color: var(--green);
  border: 1px solid rgba(107,207,152,0.22);
  font-size: 0.78rem;
  font-weight: 800;
}
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.source-pill { background: rgba(215,168,79,0.12); color: var(--gold-2); border-color: rgba(215,168,79,0.28); }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.mini-signal, .market-card .metric-row {
  padding: 14px;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.mini-signal strong { display: block; font-size: 1.05rem; }
.mini-signal small, .market-card small, .driver-card small { color: var(--muted); }
.inline-link { display: inline-block; margin-top: 20px; color: var(--gold-2); font-weight: 800; }
.section { padding: 70px 0; }
.compact-section { padding-top: 34px; padding-bottom: 34px; }
.section-title { max-width: 820px; margin-bottom: 28px; }
.section-title.compact { max-width: 760px; }
.stack-grid, .driver-grid, .premium-grid, .market-grid, .archive-grid, .signal-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.driver-item { padding: 22px; }
.driver-item span { color: var(--gold-2); font-weight: 900; }
.driver-item strong { display: block; margin: 8px 0 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.premium-card { padding: 26px; }
.lock, .locked-card span { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: #171005; background: var(--gold-2); font-size: 0.76rem; font-weight: 900; margin-bottom: 12px; }
.premium-card ul { color: var(--muted); padding-left: 20px; }
.proof-note {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(215,168,79,0.08);
  border: 1px solid rgba(215,168,79,0.18);
}
.proof-note strong { display: block; margin-bottom: 4px; color: var(--gold-2); }
.dashboard-wrap { padding-bottom: 80px; }
.dashboard-hero {
  padding: 34px 0 20px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 20px;
  align-items: stretch;
}
.dashboard-hero h1 { font-size: clamp(2rem, 5vw, 4.5rem); }
.signal-box { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.signal-label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; }
.signal-box strong { display: block; margin: 12px 0; font-size: 2rem; line-height: 1.05; }
.signal-box small, .freshness { color: var(--muted); }
.market-grid { margin-top: 12px; grid-template-columns: repeat(4, 1fr); }
.market-card { padding: 20px; min-height: 180px; }
.market-card .price { display: block; font-size: 1.75rem; font-weight: 850; letter-spacing: -0.04em; }
.market-card .change { font-weight: 800; }
.market-card svg { width: 100%; height: 54px; margin-top: 12px; overflow: visible; }

.market-meta { margin-top: 10px; display: grid; gap: 5px; }
.market-meta small { display: block; line-height: 1.35; }
.market-source, .market-note { overflow-wrap: anywhere; }

.dashboard-section { padding-top: 52px; padding-bottom: 0; }
.dashboard-story-grid { align-items: stretch; }
.story-card { padding: 22px; min-height: 190px; }
.story-card.emphasis { grid-column: span 1; border-color: rgba(215,168,79,0.22); }
.story-card h2 { font-size: clamp(1.45rem, 2.2vw, 2.25rem); }
.story-label { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 900; margin-bottom: 10px; }
.story-card strong { display: block; color: var(--gold-2); font-size: 1.35rem; line-height: 1.08; margin-bottom: 10px; }
.driver-grid { grid-template-columns: repeat(2, 1fr); }
.driver-card { padding: 20px; position: relative; overflow: hidden; }
.driver-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.driver-card h3 { margin: 0; }
.driver-card p { color: var(--muted); margin-bottom: 14px; }
.score-bar { height: 9px; border-radius: 99px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
/* Driver score bars match the signal colour: green for positive, red for negative, amber for neutral. */
.score-fill { height: 100%; border-radius: 99px; width: 50%; background: var(--amber); }
.score-fill.tailwind {
  background: linear-gradient(90deg, rgba(107,207,152,0.78), var(--green));
  box-shadow: 0 0 18px rgba(107,207,152,0.18);
}
.score-fill.headwind {
  background: linear-gradient(90deg, rgba(255,123,123,0.72), var(--red));
  box-shadow: 0 0 18px rgba(255,123,123,0.16);
}
.score-fill.neutral {
  background: linear-gradient(90deg, rgba(242,184,91,0.72), var(--amber));
  box-shadow: 0 0 18px rgba(242,184,91,0.14);
}
.score-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 0.84rem; color: var(--muted); }
.badge.tailwind { background: rgba(107,207,152,0.12); color: var(--green); border-color: rgba(107,207,152,0.22); }
.badge.headwind { background: rgba(255,123,123,0.12); color: var(--red); border-color: rgba(255,123,123,0.22); }
.badge.neutral { background: rgba(242,184,91,0.12); color: var(--amber); border-color: rgba(242,184,91,0.22); }

.futures-method-note{
  margin: -8px 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(215,168,79,0.18);
  background: linear-gradient(135deg, rgba(215,168,79,0.09), rgba(255,255,255,0.025));
  border-radius: 18px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.futures-method-note strong{
  color: var(--gold-2);
  white-space: nowrap;
}
.futures-method-note span{
  display: block;
  line-height: 1.45;
}
.driver-stamp{
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(207,217,232,0.78);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.insight-card { padding: 24px; }
.insight-card.positive { border-color: rgba(107,207,152,0.22); }
.insight-card.caution { border-color: rgba(242,184,91,0.22); }
.clean-list { padding-left: 18px; color: var(--muted); margin-bottom: 0; }
.clean-list li { margin-bottom: 8px; }
.locked-card { padding: 22px; min-height: 170px; }
.archive-item { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.035); }
.archive-item strong { display: block; margin-bottom: 8px; }
.archive-item small { color: var(--muted); }
.paid-cta {
  margin-top: 18px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.paid-cta strong { display: block; font-size: 1.08rem; }
.paid-cta span { color: var(--muted); }
.footer { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 36px 0 44px; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.9rem; }
.up { color: var(--green); }
.down { color: var(--red); }
.flat { color: var(--muted); }
@media (max-width: 920px) {
  .hero, .dashboard-hero, .split { grid-template-columns: 1fr; }
  .stack-grid, .driver-grid, .premium-grid, .archive-grid, .signal-story-grid { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .ticker-inner { grid-template-columns: 1fr; }
  .ticker-meta { border-right: 0; border-bottom: 1px solid var(--line); min-height: 40px; }
}
@media (max-width: 620px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .brand-text { display: none; }
  .stack-grid, .driver-grid, .premium-grid, .market-grid, .archive-grid, .mini-grid, .signal-story-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 24px; }
  h1 { letter-spacing: -0.05em; }
  .ticker-strip, .tv-ticker-strip { width: calc(100% - 20px); margin-bottom: 10px; border-radius: 14px; }
  .tv-ticker-shell, .agau-tradingview-ticker { min-height: 42px; }
  .ticker-meta { min-height: 34px; padding: 0 10px; font-size: 0.72rem; }
  .ticker-track { min-height: 38px; padding: 0 16px; gap: 18px; animation-duration: 30s; }
  .ticker-item { font-size: 0.84rem; }
  .ticker-item strong { font-size: 0.9rem; }
  .ticker-window::before, .ticker-window::after { width: 30px; }
  .futures-method-note { flex-direction: column; gap: 6px; }
  .futures-method-note strong { white-space: normal; }
  .score-meta { flex-direction: column; gap: 4px; }
  .paid-cta { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}


/* v1.6 TradingView ticker: restored symbols and mobile format from the earlier 3-line version */
.live-dot{
  width:10px;
  height:10px;
  border-radius:99px;
  background:var(--green);
  box-shadow:0 0 0 7px rgba(107,207,152,.08),0 0 20px rgba(107,207,152,.55);
  animation:pulseLive 1.8s ease-in-out infinite;
  flex:0 0 auto;
}
@keyframes pulseLive{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.74);opacity:.65}}
.market-ticker-bar{
  position:sticky;
  top:0;
  z-index:1000;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:rgba(5,13,11,.94);
  backdrop-filter:blur(18px);
  overflow:hidden;
  width:100%;
  margin:0 0 16px;
}
.market-ticker-shell{
  width:100%;
  min-height:44px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:0 12px 0 18px;
}
.market-ticker-label{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  color:#fff;
  font-size:13px;
  font-weight:850;
}
.market-ticker-widget{
  min-width:0;
  height:44px;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.market-ticker-bar .agau-tradingview-ticker{
  width:100%;
  min-height:44px;
}
.market-ticker-bar .tradingview-widget-container__widget,
.market-ticker-bar iframe{
  width:100%!important;
  min-height:44px!important;
}
.market-ticker-bar .live-fallback{
  display:none;
  width:100%;
  border:0;
  background:transparent;
  padding:0;
}
.market-ticker-bar .ticker-track{
  animation:ticker-scroll 24s linear infinite;
  padding:0;
}
.market-ticker-bar .ticker-item{
  border-right:1px solid rgba(255,255,255,.08);
  padding-right:16px;
}
body.tradingview-failed .market-ticker-bar .agau-tradingview-ticker{display:none;}
body.tradingview-failed .market-ticker-bar .live-fallback{display:block;}
body.tradingview-failed .market-ticker-bar .market-ticker-widget{align-items:center;}

@media (max-width: 980px){
  .market-ticker-shell{grid-template-columns:1fr;padding:0 10px;}
  .market-ticker-label{display:none;}
}
@media (max-width: 640px){
  /* TradingView's adaptive ticker can wrap onto two or three lines on narrow portrait phones. */
  .market-ticker-shell{min-height:96px;}
  .market-ticker-widget{height:96px;min-height:96px;align-items:stretch;}
  .market-ticker-bar .agau-tradingview-ticker,
  .market-ticker-bar .tradingview-widget-container__widget,
  .market-ticker-bar iframe{height:96px!important;min-height:96px!important;}
}
@media (max-width: 390px){
  .market-ticker-shell{min-height:96px;}
  .market-ticker-widget{height:96px;min-height:96px;}
  .market-ticker-bar .agau-tradingview-ticker,
  .market-ticker-bar .tradingview-widget-container__widget,
  .market-ticker-bar iframe{height:96px!important;min-height:96px!important;}
}

/* v1.7 clean AgAu.ai logo assets */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.brand-logo {
  display: block;
  width: 230px;
  height: auto;
  max-height: 66px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.22));
}
.brand-mark, .brand-text { display: none; }
@media (max-width: 620px) {
  .brand-logo {
    width: 190px;
    max-height: 56px;
  }
}
@media (max-width: 390px) {
  .brand-logo { width: 170px; }
}


/* v1.8 force logo refresh: works even if an older header still has the old AgAu badge markup */
.site-header .brand{
  width:230px!important;
  height:66px!important;
  min-width:230px!important;
  display:block!important;
  background-image:url("../images/agau-logo.svg?v=18")!important;
  background-repeat:no-repeat!important;
  background-position:left center!important;
  background-size:contain!important;
  overflow:hidden!important;
  text-indent:-9999px!important;
}
.site-header .brand > *{
  display:none!important;
}
@media (max-width:620px){
  .site-header .brand{width:190px!important;height:56px!important;min-width:190px!important;}
}
@media (max-width:390px){
  .site-header .brand{width:170px!important;min-width:170px!important;}
}


/* v1.9 hard logo fix: hides the old badge and injects the clean AgAu.ai wordmark */
.site-header .brand{
  width:230px!important;
  height:66px!important;
  min-width:230px!important;
  display:block!important;
  background:url("../images/agau-logo-v19.svg") left center/contain no-repeat!important;
  overflow:hidden!important;
  text-indent:-9999px!important;
}
.site-header .brand > *{display:none!important;}
@media (max-width:620px){.site-header .brand{width:190px!important;height:56px!important;min-width:190px!important;}}
@media (max-width:390px){.site-header .brand{width:170px!important;min-width:170px!important;}}


/* v2.0 master polish: trust layer, silver focus and beta signup */
.hero-lede.secondary { color: var(--gold-2); font-weight: 750; font-size: 1.02rem; }
.status-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.status-strip.compact {
  width: 100%;
  margin: 18px 0 0;
  grid-template-columns: repeat(2, 1fr);
  box-shadow: none;
}
.status-pill { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status-pill strong { font-size: 0.88rem; overflow-wrap: anywhere; }
.status-pill small { color: var(--muted); font-size: 0.78rem; }
.status-pill.good strong { color: var(--green); }
.status-pill.warn strong { color: var(--amber); }
.status-pill.bad strong { color: var(--red); }
.proof-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(215,168,79,0.13), rgba(255,255,255,0.035));
}
.proof-copy p { color: var(--muted); margin-bottom: 0; }
.proof-points { display: grid; gap: 12px; }
.proof-points div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,0.16);
}
.proof-points strong { display: block; }
.proof-points small { color: var(--muted); }
.driver-item.featured { border-color: rgba(215,168,79,0.38); background: linear-gradient(180deg, rgba(215,168,79,0.12), rgba(255,255,255,0.025)); }
.silver-home .premium-card, .silver-card-home { border-color: rgba(215,168,79,0.28); }
.silver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.silver-tile {
  padding: 20px;
  min-height: 160px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.silver-tile small { color: var(--muted); display: block; margin-bottom: 8px; }
.silver-tile strong { display: block; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.04em; }
.silver-tile p { color: var(--muted); margin: 10px 0 0; font-size: 0.93rem; }
.inline-cta {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(215,168,79,0.28);
  border-radius: 20px;
  background: rgba(215,168,79,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.inline-cta small { display: block; color: var(--muted); margin-top: 4px; }
.beta-section { border-top: 1px solid var(--line); }
.beta-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.form-grid label { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
}
.form-grid textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; }
.form-note.success { color: var(--green); }
.form-note.error { color: var(--red); }
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}
@media (max-width: 920px) {
  .status-strip, .status-strip.compact { grid-template-columns: repeat(2, 1fr); }
  .proof-band { grid-template-columns: 1fr; }
  .silver-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .inline-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .status-strip, .status-strip.compact, .silver-grid { grid-template-columns: 1fr; }
  .proof-band { padding: 22px; }
}


/* v2.1 registered preview layers: deeper stack, gold-bug stack and silver-stacker stack */
.core-grid, .layer-grid, .bias-grid {
  display: grid;
  gap: 16px;
}
.core-grid { grid-template-columns: repeat(4, 1fr); }
.layer-grid { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.bias-grid { grid-template-columns: repeat(2, 1fr); }
.layer-card, .bias-preview-card, .reveal-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  box-shadow: var(--shadow);
}
.layer-card { padding: 20px; min-height: 210px; }
.layer-card-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.layer-card-head > div { flex: 1; min-width: 0; }
.layer-card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.layer-card p { color: var(--muted); margin: 0 0 14px; }
.layer-source { display: block; color: var(--muted); margin-top: 12px; font-size: 0.78rem; }
.stack-position {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-weight: 900;
  color: #171005;
  background: var(--gold-2);
}
.reveal-shell { padding: 22px; }
.reveal-closed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.reveal-closed h3, .bias-preview-card h3 { margin: 0 0 8px; font-size: 1.45rem; }
.reveal-closed p, .bias-preview-card p { color: var(--muted); margin: 0; }
.reveal-content[hidden] { display: none !important; }
.reveal-content.is-open { animation: agauReveal 180ms ease-out; }
.member-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(215,168,79,0.2);
  background: rgba(215,168,79,0.08);
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.member-note strong { color: var(--gold-2); }
.member-note span { color: var(--muted); }
.bias-preview-card { padding: 24px; }
.bias-preview-card .button { margin-top: 18px; }
.bias-preview-card.silver-bias { border-color: rgba(210,225,240,0.18); }
.bias-panel { margin-top: 18px; }
@keyframes agauReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) {
  .core-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .layer-grid, .bias-grid { grid-template-columns: 1fr; }
  .reveal-closed { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .core-grid { grid-template-columns: 1fr; }
}

/* AI Analyst Read */
.ai-analyst-card{
  margin-top:22px;
  border:1px solid rgba(212,175,55,.28);
  background:linear-gradient(135deg,rgba(212,175,55,.12),rgba(11,15,24,.94) 46%,rgba(166,124,31,.08));
  border-radius:24px;
  padding:24px;
  box-shadow:0 18px 60px rgba(0,0,0,.22);
}
.ai-analyst-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px;}
.ai-analyst-head h2{margin:4px 0 6px;font-size:clamp(1.45rem,2vw,2rem);}
.ai-analyst-head p{margin:0;color:var(--muted);max-width:760px;}
.ai-analyst-badge{border:1px solid rgba(212,175,55,.35);border-radius:999px;padding:7px 11px;color:#f3d783;font-size:.78rem;white-space:nowrap;background:rgba(212,175,55,.08);}
.ai-analyst-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.ai-analyst-section{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px;}
.ai-analyst-section h3{margin:0 0 10px;font-size:.92rem;color:#f2d06b;letter-spacing:.03em;text-transform:uppercase;}
.ai-analyst-section ul{margin:0;padding-left:18px;color:var(--text);}
.ai-analyst-section li{margin:0 0 9px;line-height:1.45;}
.ai-analyst-foot{margin:16px 0 0;color:var(--muted);font-size:.86rem;display:flex;flex-wrap:wrap;gap:10px 18px;}
@media (max-width:980px){.ai-analyst-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.ai-analyst-head{display:block}.ai-analyst-badge{display:inline-block;margin-top:12px;}}
@media (max-width:620px){.ai-analyst-grid{grid-template-columns:1fr}.ai-analyst-card{padding:18px;border-radius:20px;}}

.ai-home-feature{padding-top:4px;}
.home-ai-analyst-card{position:relative;overflow:hidden;}
.home-ai-analyst-card:before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,rgba(212,175,55,.95),rgba(255,255,255,.35),rgba(212,175,55,.18));}
.ai-premium-note{margin:-4px 0 18px;padding:11px 13px;border:1px solid rgba(212,175,55,.22);border-radius:14px;background:rgba(212,175,55,.075);color:#f6e3a5;font-size:.94rem;line-height:1.45;}

/* AI Gold Bug / Silver Stacker Intelligence */
.ai-persona-wrap{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:6px;
}
.ai-persona-card{
  border:1px solid rgba(212,175,55,.22);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  padding:18px;
}
.ai-persona-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px;}
.ai-persona-head h3{margin:0 0 5px;color:#f7d977;font-size:1.08rem;}
.ai-persona-head p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.4;}
.ai-persona-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.ai-persona-card .ai-analyst-section{padding:14px;border-radius:16px;background:rgba(0,0,0,.14);}
.ai-bias-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;min-width:190px;}
.ai-bias-pill{display:inline-flex;flex-direction:column;gap:2px;border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:8px 10px;min-width:86px;background:rgba(255,255,255,.045);text-align:center;text-transform:capitalize;}
.ai-bias-pill small{font-size:.68rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;}
.ai-bias-pill strong{font-size:.9rem;color:var(--text);}
.ai-bias-pill.bullish{border-color:rgba(80,210,140,.38);background:rgba(80,210,140,.09);}
.ai-bias-pill.bullish strong{color:#a9f4c5;}
.ai-bias-pill.bearish{border-color:rgba(255,110,110,.38);background:rgba(255,110,110,.09);}
.ai-bias-pill.bearish strong{color:#ffb0b0;}
.ai-bias-pill.caution{border-color:rgba(212,175,55,.36);background:rgba(212,175,55,.085);}
.ai-bias-pill.caution strong{color:#f4d782;}
.ai-bias-pill.haven{border-color:rgba(112,180,255,.36);background:rgba(112,180,255,.085);}
.ai-bias-pill.haven strong{color:#b9d8ff;}
.ai-bias-pill.rising{border-color:rgba(80,210,140,.38);background:rgba(80,210,140,.09);}
.ai-bias-pill.falling{border-color:rgba(255,110,110,.38);background:rgba(255,110,110,.09);}
.ai-bias-pill.sideways,.ai-bias-pill.mixed{border-color:rgba(212,175,55,.36);background:rgba(212,175,55,.085);}
.ai-bias-comment{margin-top:13px;padding:12px 13px;border-radius:15px;background:rgba(212,175,55,.075);border:1px solid rgba(212,175,55,.2);color:#f5e2a3;line-height:1.45;font-size:.92rem;}
@media (max-width:980px){.ai-persona-wrap{grid-template-columns:1fr}.ai-persona-head{display:block}.ai-bias-row{justify-content:flex-start;margin-top:12px}.ai-persona-grid{grid-template-columns:1fr}}

/* v2.2.6 miners and current-affairs intelligence layer */
.miners-hero .dashboard-summary{max-width:760px}
.miner-metric-card .price.positive,.miner-metric-card .price.up{color:var(--positive)}
.miner-metric-card .price.negative,.miner-metric-card .price.down{color:var(--danger)}
.headline-list li{display:flex;flex-direction:column;gap:.25rem;margin-bottom:.9rem;padding-bottom:.9rem;border-bottom:1px solid rgba(255,255,255,.08)}
.headline-list small{color:var(--muted);font-size:.82rem}
.ai-persona-card:nth-child(3){border-color:rgba(221,183,103,.34);box-shadow:0 18px 48px rgba(0,0,0,.22)}

/* v2.2.8 miner metric readability */
.miner-metric-card .change{display:inline-block;margin-right:6px;}
.miner-metric-card small:last-child{display:inline-block;margin-left:0;}
@media (max-width:720px){.miner-metric-card .price{font-size:1.55rem}.miner-metric-card{min-height:150px}}


/* v2.2.9 AI live status */

.ai-live-status{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(83,220,145,.32);background:rgba(83,220,145,.08);color:#bff6d1;border-radius:999px;padding:7px 10px;font-size:.78rem;white-space:nowrap;margin-left:auto;}
.ai-live-status strong{font-size:.78rem;letter-spacing:.04em;text-transform:uppercase;color:#8df0b0;}
.ai-live-status small{color:var(--muted);font-size:.76rem;}
.ai-live-dot{width:8px;height:8px;border-radius:50%;background:#63e68f;box-shadow:0 0 0 0 rgba(99,230,143,.65);animation:agauLivePulse 1.6s ease-out infinite;}
@keyframes agauLivePulse{0%{box-shadow:0 0 0 0 rgba(99,230,143,.65);}70%{box-shadow:0 0 0 8px rgba(99,230,143,0);}100%{box-shadow:0 0 0 0 rgba(99,230,143,0);}}
.ai-analyst-head{align-items:center;}
.ai-analyst-head .ai-analyst-badge{margin-left:0;}
@media (max-width:980px){.ai-live-status{margin:12px 8px 0 0;}.ai-analyst-head .ai-analyst-badge{margin-top:12px;}}

/* v2.2.12 miner AI layout fix: use full-width card on dedicated miners page */
#minerAiGrid{
  display:block;
}
#minerAiGrid .ai-persona-card{
  width:100%;
  max-width:none;
}
#minerAiGrid .ai-persona-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
#minerAiGrid .ai-bias-row{
  flex:0 0 auto;
  min-width:260px;
}
#minerAiGrid .ai-persona-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
@media (max-width:1100px){
  #minerAiGrid .ai-persona-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:720px){
  #minerAiGrid .ai-persona-head{display:block;}
  #minerAiGrid .ai-bias-row{min-width:0;justify-content:flex-start;margin-top:14px;}
  #minerAiGrid .ai-persona-grid{grid-template-columns:1fr;}
}

/* v2.2.13 navigation refinement: sticky desktop nav + mobile burger */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px max(16px, calc((100vw - var(--max)) / 2)) 10px;
  background: rgba(8, 11, 16, 0.88);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}
.site-header .brand {
  flex: 0 0 auto;
  z-index: 1002;
}
.nav {
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.9rem;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  transition: color .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav a.nav-cta {
  color: var(--gold-2);
  border: 1px solid rgba(215,168,79,0.38);
  background: rgba(215,168,79,0.08);
}
.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open { overflow: hidden; }
@media (max-width: 980px) {
  .site-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    padding: 10px 14px;
  }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 86px;
    z-index: 1001;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: calc(100vh - 106px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: rgba(13, 17, 24, 0.98);
    box-shadow: 0 22px 70px rgba(0,0,0,0.55);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .site-header.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav a {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
  }
  .nav a.nav-cta { justify-content: center; }
}
@media (max-width: 620px) {
  .site-header { align-items: center !important; flex-direction: row !important; }
  .nav { width: auto; overflow-x: visible; padding-bottom: 12px; top: 78px; }
}


/* v2.2.14 premium navigation system: global nav + in-page subnav */
.site-header{
  position:sticky!important;
  top:0!important;
  z-index:5000!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:12px max(18px, calc((100vw - var(--max)) / 2)) 10px!important;
  background:linear-gradient(180deg, rgba(8,11,16,.96), rgba(8,11,16,.88))!important;
  border-bottom:1px solid rgba(255,255,255,.09)!important;
  backdrop-filter:blur(20px)!important;
  -webkit-backdrop-filter:blur(20px)!important;
  box-shadow:0 14px 32px rgba(0,0,0,.32)!important;
}
.market-ticker-bar{position:relative;z-index:20!important;}
.nav{gap:8px!important;}
.nav a{font-weight:650;letter-spacing:.01em;}
.nav a.nav-cta{box-shadow:inset 0 0 0 1px rgba(240,200,121,.1), 0 8px 24px rgba(215,168,79,.08);}
.page-subnav{
  position:sticky;
  top:86px;
  z-index:1200;
  background:linear-gradient(180deg, rgba(8,11,16,.94), rgba(8,11,16,.78));
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.page-subnav-inner{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:10px;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.page-subnav-inner::-webkit-scrollbar{display:none;}
.page-subnav-label{
  flex:0 0 auto;
  color:var(--gold-2);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.72rem;
  font-weight:800;
  padding-right:6px;
}
.page-subnav a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 13px;
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
  font-size:.88rem;
  font-weight:650;
}
.page-subnav a:hover{color:var(--text);background:rgba(255,255,255,.075);border-color:rgba(215,168,79,.25);}
.dashboard-section,.section,[id]{scroll-margin-top:150px;}
@media (max-width:980px){
  .site-header{padding:10px 14px!important;}
  .nav-toggle{z-index:6002!important;width:52px!important;height:52px!important;border-radius:18px!important;background:rgba(255,255,255,.07)!important;}
  .site-header .brand{z-index:6002!important;}
  .nav{
    position:fixed!important;
    inset:0!important;
    z-index:6000!important;
    width:100vw!important;
    height:100dvh!important;
    max-height:none!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:stretch!important;
    gap:12px!important;
    padding:122px 24px 34px!important;
    border:0!important;
    border-radius:0!important;
    background:radial-gradient(circle at 20% 10%, rgba(215,168,79,.16), transparent 24rem), rgba(8,11,16,.985)!important;
    box-shadow:none!important;
    transform:none!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transition:opacity .2s ease, visibility .2s ease!important;
    overflow-y:auto!important;
  }
  .site-header.nav-open .nav{opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
  .nav a{
    max-width:620px;
    width:100%!important;
    margin:0 auto;
    min-height:58px!important;
    justify-content:space-between;
    padding:14px 18px!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.055)!important;
    border:1px solid rgba(255,255,255,.1)!important;
    font-size:1.08rem!important;
  }
  .nav a::after{content:'›';color:rgba(240,200,121,.72);font-size:1.25rem;}
  .nav a.nav-cta{justify-content:center!important;margin-top:8px;color:var(--gold-2)!important;border-color:rgba(215,168,79,.45)!important;background:rgba(215,168,79,.1)!important;}
  .nav a.nav-cta::after{content:'';}
  body.nav-open .market-ticker-bar{visibility:hidden!important;}
  body.nav-open main, body.nav-open .page-subnav{filter:blur(2px);}
  .page-subnav{top:76px;}
  .page-subnav-inner{width:100%;padding:0 14px;min-height:46px;}
  .page-subnav-label{display:none;}
  .page-subnav a{font-size:.84rem;padding:7px 12px;}
  .dashboard-section,.section,[id]{scroll-margin-top:130px;}
}
@media (max-width:620px){
  .nav{top:0!important;padding-top:112px!important;}
}


/* Macro Intelligence Page */

.macro-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 18px 70px;
}

.macro-hero,
.macro-preview-card {
    background: rgba(18,18,22,.96);
    border: 1px solid rgba(255,215,0,.14);
    border-radius: 22px;
    padding: 28px;
    margin: 24px auto;
    box-shadow: 0 10px 35px rgba(0,0,0,.28);
}

.macro-hero h1 {
    font-size: clamp(2.6rem, 8vw, 5.8rem);
    line-height: .95;
    margin: 20px 0 18px;
}

.macro-headline,
.macro-muted {
    color: #c9ced8;
    line-height: 1.65;
}

.macro-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.macro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.macro-driver-card,
.macro-news-row {
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 20px;
}

.macro-driver-card h3,
.macro-news-row h3,
.macro-item h3 {
    color: #f3c969;
    margin: 0 0 10px;
}

.macro-impact {
    margin-top: 14px;
    color: #9ef0ae;
    font-size: .94rem;
}

.macro-news-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.macro-news-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #9aa3b2;
    font-size: .9rem;
    margin-top: 12px;
}

.macro-news-meta a,
.macro-link {
    color: #f3c969;
    text-decoration: none;
    font-weight: 700;
}

.macro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.macro-link.secondary {
    color: #d7d7d7;
}

.ai-live {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ef0ae;
    margin-bottom: 10px;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2dd36f;
    box-shadow: 0 0 10px #2dd36f;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(.9); opacity:.6; }
    50% { transform: scale(1.15); opacity:1; }
    100% { transform: scale(.9); opacity:.6; }
}

@media (max-width: 760px) {
    .macro-section-head {
        flex-direction: column;
    }

    .macro-grid {
        grid-template-columns: 1fr;
    }

    .macro-hero,
    .macro-preview-card {
        padding: 20px;
        border-radius: 18px;
    }
}


/* Macro Intelligence live update refinements */

.macro-summary-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ef0ae;
    background: rgba(45,211,111,.10);
    border: 1px solid rgba(45,211,111,.22);
    border-radius: 999px;
    padding: 8px 13px;
    margin: 10px 0 18px;
    font-size: .92rem;
}

.macro-news-meta {
    flex-wrap: wrap;
    align-items: center;
}

.macro-news-meta span {
    color: #aeb6c5;
}



/* Miner News Intelligence integration */

.miner-news-preview-card,
.miner-news-crosslink {
    background: rgba(18,18,22,.96);
    border: 1px solid rgba(255,215,0,.14);
    border-radius: 22px;
    padding: 26px;
    margin: 24px auto;
    max-width: 1200px;
    box-shadow: 0 10px 35px rgba(0,0,0,.28);
}

.miner-news-preview-card h2,
.miner-news-crosslink h2 {
    color: #f7f0df;
    margin-bottom: 10px;
}

.miner-news-row h3 {
    color: #f3c969;
}

.miner-news-page .macro-hero h1 {
    font-size: clamp(2.4rem, 7vw, 5.2rem);
}


/* v2.3.8 Miner News Intelligence display fix */

.miner-news-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 18px 70px;
}

.miner-news-page .macro-hero,
.miner-news-page .macro-preview-card {
    background: rgba(18,18,22,.96);
    border: 1px solid rgba(255,215,0,.14);
    border-radius: 22px;
    padding: 28px;
    margin: 24px auto;
    box-shadow: 0 10px 35px rgba(0,0,0,.28);
}

.miner-news-page .macro-summary-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ef0ae;
    background: rgba(45,211,111,.10);
    border: 1px solid rgba(45,211,111,.22);
    border-radius: 999px;
    padding: 8px 13px;
    margin: 10px 0 18px;
    font-size: .92rem;
}

.miner-news-page .macro-news-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.miner-news-page .macro-news-row {
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 20px;
}

.miner-news-page .macro-news-row h3 {
    color: #f3c969;
    margin: 0 0 10px;
}

.miner-news-page .macro-news-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: #aeb6c5;
    font-size: .9rem;
    margin-top: 12px;
}

.miner-news-page .macro-news-meta a {
    color: #f3c969;
    text-decoration: none;
    font-weight: 700;
}


/* v2.4.4 GDX / GDXJ miner news split */
.miner-news-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:26px;}
.miner-news-column{min-width:0;}
.miner-news-column-head{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);border-radius:18px;padding:18px;margin-bottom:14px;}
.miner-news-column-head h2{margin-bottom:8px;}
.miner-news-column-head p:last-child{color:var(--muted);margin-bottom:0;}
.miner-news-page .macro-news-row h3{font-size:clamp(1.05rem,1.5vw,1.35rem);}
@media (max-width:980px){.miner-news-split{grid-template-columns:1fr;}}


/* v31.1 global footer + navigation polish */
.agau-footer{
  width:100%;
  max-width:none;
  margin:72px 0 0;
  padding:0;
  border-top:1px solid rgba(215,168,79,.16);
  background:radial-gradient(circle at 12% 0%, rgba(215,168,79,.11), transparent 24rem), linear-gradient(180deg, rgba(12,16,23,.92), rgba(6,8,12,.98));
  color:var(--muted);
}
.agau-footer-inner{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
  padding:34px 0 28px;
  display:grid;
  grid-template-columns:1.05fr 1.2fr .95fr;
  gap:28px;
  align-items:start;
}
.agau-footer-logo{display:inline-flex;align-items:center;margin-bottom:12px;}
.agau-footer-logo img{display:block;max-width:190px;height:auto;}
.agau-footer-brand p,
.agau-footer-note p{margin:0;color:#aeb8c9;line-height:1.55;font-size:.94rem;}
.agau-footer-note{
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  padding:15px;
  background:rgba(255,255,255,.035);
}
.agau-footer-note strong{display:block;color:#f0c879;margin-bottom:6px;font-size:.92rem;letter-spacing:.02em;}
.agau-footer-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px 14px;
}
.agau-footer-links a{
  color:#cbd3df;
  text-decoration:none;
  font-weight:650;
  font-size:.92rem;
  padding:7px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.agau-footer-links a:hover{color:#f0c879;border-bottom-color:rgba(215,168,79,.34);}
.agau-footer-bottom{
  grid-column:1 / -1;
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding-top:18px;
  margin-top:2px;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:.86rem;
  color:#8f9bab;
}
.nav a.is-active{color:#f5efe4!important;background:rgba(215,168,79,.11)!important;border-color:rgba(215,168,79,.28)!important;}
@media (max-width:920px){
  .agau-footer-inner{grid-template-columns:1fr;gap:20px;padding:30px 0 24px;}
  .agau-footer-links{grid-template-columns:repeat(2,minmax(0,1fr));}
  .agau-footer-bottom{flex-direction:column;gap:6px;}
}
@media (max-width:520px){
  .agau-footer-links{grid-template-columns:1fr;}
}

.ai-bias-line{margin:0 0 .75rem;color:var(--gold-soft,#f2d68b);font-weight:700;line-height:1.45;}
.ai-analyst-section a{color:var(--gold-soft,#f2d68b);}

/* v31.3 homepage width alignment
   Keeps the homepage Macro Drivers card and live market ticker aligned with
   the same centred content width as the header and main page sections. */
body > .macro-preview-card{
  width:min(var(--max), calc(100% - 32px));
  margin:18px auto 0;
}
body > .market-ticker-bar{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto 16px;
  border:1px solid var(--line);
  border-radius:16px;
}
body > .market-ticker-bar .market-ticker-shell{
  width:100%;
}
@media (max-width:620px){
  body > .macro-preview-card,
  body > .market-ticker-bar{
    width:calc(100% - 20px);
  }
}


/* v32 platform + heat-map upgrade */
.nav{flex-wrap:wrap;justify-content:flex-end;row-gap:7px;}
.nav a{white-space:nowrap;}
.platform-hero,.method-hero,.research-hero{min-height:auto;padding-top:42px;padding-bottom:48px;}
.platform-terminal-card{
  border:1px solid rgba(215,168,79,.2);
  border-radius:28px;
  padding:26px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.026));
  box-shadow:var(--shadow);
}
.terminal-topline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px;color:var(--muted);}
.terminal-topline strong{color:var(--green);}
.terminal-topline small{width:100%;color:var(--muted);}
.terminal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.terminal-grid div,.platform-pill-grid article,.platform-feature-grid article,.research-update-list article,.legend-card{
  border:1px solid var(--line);
  background:rgba(0,0,0,.2);
  border-radius:18px;
  padding:16px;
}
.terminal-grid span,.platform-feature-grid span,.platform-pill-grid span,.research-update-list time{display:block;color:var(--gold-2);font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;font-weight:900;margin-bottom:6px;}
.terminal-grid strong{font-size:1.05rem;}
.platform-pill-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.platform-pill-grid strong{display:block;margin-bottom:7px;}
.platform-pill-grid small{display:block;color:var(--muted);line-height:1.45;}
.platform-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.platform-feature-grid.compact-features{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:18px;}
.platform-feature-grid h3{margin-bottom:8px;}
.platform-feature-grid p{color:var(--muted);margin-bottom:0;}
.heatmap-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;max-width:none;}
.heatmap-title-row>div{max-width:790px;}
.heatmap-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px;}
.heatmap-summary-card{
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.024));
  box-shadow:var(--shadow);
}
.heatmap-summary-card small{display:block;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.1em;margin-bottom:7px;}
.heatmap-summary-card strong{display:block;font-size:1.5rem;line-height:1.1;letter-spacing:-.035em;}
.heatmap-summary-card span{display:block;color:var(--muted);margin-top:8px;font-size:.92rem;}
.driver-heatmap{border:1px solid var(--line);border-radius:24px;overflow:hidden;background:rgba(0,0,0,.22);box-shadow:var(--shadow);}
.driver-heatmap.compact .heatmap-row:nth-child(n+8){display:none;}
.heatmap-row{display:grid;grid-template-columns:1.12fr .74fr .74fr;min-height:68px;border-bottom:1px solid rgba(255,255,255,.075);}
.heatmap-row:last-child{border-bottom:0;}
.heatmap-row.heatmap-head{min-height:48px;background:rgba(255,255,255,.045);color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;font-weight:900;}
.heatmap-driver-cell,.heatmap-metal-cell{padding:14px 16px;display:flex;flex-direction:column;justify-content:center;gap:2px;}
.heatmap-driver-cell strong{font-size:1rem;}
.heatmap-driver-cell small,.heatmap-metal-cell small{color:rgba(245,239,228,.72);font-size:.78rem;line-height:1.25;}
.heatmap-metal-cell{border-left:1px solid rgba(255,255,255,.075);position:relative;overflow:hidden;}
.heatmap-metal-cell strong{position:relative;z-index:1;}
.heatmap-metal-cell small{position:relative;z-index:1;}
.heatmap-metal-cell.supportive{background:linear-gradient(135deg,rgba(107,207,152,.34),rgba(107,207,152,.1));color:#dff8e9;}
.heatmap-metal-cell.mixed{background:linear-gradient(135deg,rgba(242,184,91,.32),rgba(242,184,91,.09));color:#fff0d0;}
.heatmap-metal-cell.pressure{background:linear-gradient(135deg,rgba(255,123,123,.32),rgba(255,123,123,.09));color:#ffe1e1;}
.heatmap-metal-cell.checking{background:linear-gradient(135deg,rgba(125,167,255,.18),rgba(255,255,255,.045));color:#dbe7ff;}
.heatmap-paywall-note{
  margin-top:16px;
  padding:18px;
  border:1px solid rgba(215,168,79,.25);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(215,168,79,.12),rgba(255,255,255,.035));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.heatmap-paywall-note strong{display:block;color:var(--gold-2);margin-bottom:4px;}
.heatmap-paywall-note span{display:block;color:var(--muted);}
.heatmap-legend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.legend-card strong{display:block;font-size:1.15rem;margin-bottom:6px;}
.legend-card span{color:var(--muted);}
.legend-card.supportive{border-color:rgba(107,207,152,.28);}
.legend-card.mixed{border-color:rgba(242,184,91,.28);}
.legend-card.pressure{border-color:rgba(255,123,123,.28);}
.data-method-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:22px;background:rgba(0,0,0,.18);box-shadow:var(--shadow);}
.data-method-table{width:100%;border-collapse:collapse;min-width:820px;}
.data-method-table th,.data-method-table td{padding:15px 16px;border-bottom:1px solid rgba(255,255,255,.075);text-align:left;vertical-align:top;}
.data-method-table th{color:var(--gold-2);font-size:.8rem;text-transform:uppercase;letter-spacing:.12em;background:rgba(255,255,255,.045);}
.data-method-table td{color:#d8deea;}
.data-method-table tr:last-child td{border-bottom:0;}
.freshness-badge{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:.75rem;font-weight:900;border:1px solid var(--line);white-space:nowrap;}
.freshness-badge.live{color:var(--green);background:rgba(107,207,152,.12);border-color:rgba(107,207,152,.22);}
.freshness-badge.daily{color:var(--blue);background:rgba(125,167,255,.12);border-color:rgba(125,167,255,.22);}
.freshness-badge.weekly{color:var(--amber);background:rgba(242,184,91,.12);border-color:rgba(242,184,91,.22);}
.freshness-badge.monthly{color:var(--gold-2);background:rgba(215,168,79,.12);border-color:rgba(215,168,79,.24);}
.method-note-card{align-self:stretch;display:flex;flex-direction:column;justify-content:center;}
.research-update-list{display:grid;gap:14px;}
.research-update-list article{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:start;}
.research-update-list h3{margin-bottom:6px;}
.research-update-list p{color:var(--muted);margin-bottom:0;}
.agau-platform-strip{padding-top:10px;padding-bottom:24px;}
.home-heatmap-preview{padding-top:32px;}
.ai-home-feature{padding-top:42px;}
@media (max-width:1050px){
  .platform-pill-grid,.platform-feature-grid,.platform-feature-grid.compact-features{grid-template-columns:repeat(2,minmax(0,1fr));}
  .heatmap-summary-grid{grid-template-columns:1fr;}
}
@media (max-width:760px){
  .heatmap-title-row,.heatmap-paywall-note{align-items:flex-start;flex-direction:column;}
  .heatmap-row{grid-template-columns:1fr;}
  .heatmap-row.heatmap-head{display:none;}
  .heatmap-metal-cell{border-left:0;border-top:1px solid rgba(255,255,255,.075);}
  .heatmap-metal-cell::before{content:attr(data-metal);font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;color:rgba(245,239,228,.7);font-weight:900;margin-bottom:2px;}
  .platform-pill-grid,.platform-feature-grid,.platform-feature-grid.compact-features,.heatmap-legend-grid,.terminal-grid{grid-template-columns:1fr;}
  .research-update-list article{grid-template-columns:1fr;}
}
@media (max-width:1120px){.nav a{font-size:.86rem;padding:7px 9px!important;}.nav{gap:5px!important;}}


/* v32.2 Tether Gold / XAUt research page */
.tether-hero{min-height:auto;padding-top:42px;padding-bottom:48px;align-items:stretch;}
.xaut-hero-panel,.xaut-callout-card,.xaut-chart-card,.xaut-note-grid article,.xaut-risk-grid article,.xaut-source-grid a,.xaut-metric-row article{
  border:1px solid rgba(215,168,79,.2);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.058),rgba(255,255,255,.024));
  box-shadow:var(--shadow);
}
.xaut-hero-panel{padding:26px;display:flex;flex-direction:column;justify-content:space-between;gap:18px;}
.xaut-stat-grid,.xaut-metric-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.xaut-stat-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));}
.xaut-stat-grid div,.xaut-metric-row article{border:1px solid var(--line);border-radius:18px;background:rgba(0,0,0,.2);padding:16px;}
.xaut-stat-grid span,.xaut-metric-row span{display:block;color:var(--gold-2);font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;font-weight:900;margin-bottom:7px;}
.xaut-stat-grid strong,.xaut-metric-row strong{display:block;font-size:clamp(1.35rem,2.6vw,2.1rem);line-height:1.08;letter-spacing:-.045em;color:#fff8ec;}
.xaut-stat-grid small,.xaut-metric-row small,.xaut-footnote{display:block;color:var(--muted);line-height:1.45;margin-top:7px;}
.xaut-dashboard-section{padding-top:22px;}
.xaut-callout-card{padding:24px;align-self:stretch;display:flex;flex-direction:column;justify-content:center;}
.xaut-callout-card h3{font-size:1.45rem;margin-bottom:10px;}
.xaut-callout-card p{color:var(--muted);margin-bottom:0;}
.xaut-chart-card{padding:22px;margin-top:18px;}
.xaut-chart-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px;}
.xaut-chart-header strong{display:block;font-size:1.25rem;}
.xaut-chart-header span,.xaut-chart-header small{display:block;color:var(--muted);}
.xaut-bar-chart{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:end;min-height:340px;padding:12px 0 0;}
.xaut-bar-item{display:grid;grid-template-rows:1fr auto auto auto;gap:8px;align-items:end;text-align:center;min-width:0;}
.xaut-bar-rail{height:240px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);display:flex;align-items:end;overflow:hidden;}
.xaut-bar-fill{width:100%;border-radius:18px 18px 0 0;background:linear-gradient(180deg,rgba(240,200,121,.98),rgba(155,107,29,.84));box-shadow:0 -10px 34px rgba(215,168,79,.18);}
.xaut-bar-item strong{font-size:1.45rem;color:#fff8ec;}
.xaut-bar-item span{font-weight:900;color:#dfe6f1;line-height:1.25;}
.xaut-bar-item small{color:var(--muted);}
.xaut-note-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px;}
.xaut-note-grid article{padding:18px;}
.xaut-note-grid strong{display:block;color:var(--gold-2);margin-bottom:6px;}
.xaut-note-grid span{display:block;color:var(--muted);line-height:1.48;}
.xaut-feature-grid article{min-height:190px;}
.xaut-news-list{align-self:start;}
.xaut-risk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.xaut-risk-grid article{padding:18px;}
.xaut-risk-grid strong{display:block;color:#fff8ec;margin-bottom:8px;font-size:1.1rem;}
.xaut-risk-grid span{display:block;color:var(--muted);line-height:1.5;}
.xaut-comparison-section .data-method-table td:first-child{color:var(--gold-2);font-weight:900;}
.xaut-source-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.xaut-source-grid a{padding:16px;text-decoration:none;transition:transform .18s ease,border-color .18s ease;background:rgba(0,0,0,.18);}
.xaut-source-grid a:hover{transform:translateY(-2px);border-color:rgba(215,168,79,.42);}
.xaut-source-grid strong{display:block;color:#fff8ec;margin-bottom:7px;}
.xaut-source-grid span{display:block;color:var(--muted);font-size:.82rem;line-height:1.35;word-break:break-word;}
@media (max-width:1050px){
  .xaut-stat-grid,.xaut-metric-row,.xaut-note-grid,.xaut-risk-grid,.xaut-source-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:760px){
  .xaut-stat-grid,.xaut-metric-row,.xaut-note-grid,.xaut-risk-grid,.xaut-source-grid{grid-template-columns:1fr;}
  .xaut-bar-chart{grid-template-columns:1fr;min-height:auto;gap:14px;}
  .xaut-bar-item{grid-template-columns:86px 1fr;grid-template-rows:auto auto auto;align-items:center;text-align:left;}
  .xaut-bar-rail{grid-row:1 / span 3;height:120px;}
  .xaut-chart-header{flex-direction:column;}
}

/* v32.3 Tether Gold engine cache strip */
.xaut-engine-strip{display:grid;grid-template-columns:1fr 1fr 1fr 2fr;gap:14px;margin-top:14px;border:1px solid rgba(215,168,79,.18);border-radius:22px;background:linear-gradient(135deg,rgba(215,168,79,.08),rgba(255,255,255,.025));padding:16px;}
.xaut-engine-strip div{min-width:0;}
.xaut-engine-strip span{display:block;color:var(--gold-2);font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;font-weight:900;margin-bottom:5px;}
.xaut-engine-strip strong{display:block;color:#fff8ec;line-height:1.18;}
.xaut-engine-strip small{display:block;color:var(--muted);line-height:1.45;}
.xaut-engine-warning{grid-column:1/-1;margin:0;padding-top:10px;border-top:1px solid rgba(255,255,255,.08);color:#e8c78b;line-height:1.45;}
@media (max-width:900px){.xaut-engine-strip{grid-template-columns:1fr 1fr;}}
@media (max-width:620px){.xaut-engine-strip{grid-template-columns:1fr;}}

/* V32.4 Gold Holders page */
.gold-holders-page .hero,
.gold-holders-hero{align-items:stretch;gap:28px;}
.holders-hero-panel,
.holders-callout-card,
.holders-chart-card{background:linear-gradient(145deg,rgba(18,25,36,.94),rgba(10,13,19,.98));border:1px solid rgba(214,174,88,.22);border-radius:24px;box-shadow:0 24px 70px rgba(0,0,0,.28);padding:24px;}
.holders-hero-panel{min-width:min(440px,100%);display:flex;flex-direction:column;justify-content:space-between;gap:18px;}
.holders-stat-grid,
.holders-metric-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.holders-stat-grid div,
.holders-metric-row article,
.holders-engine-strip div,
.holders-note-grid article{background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px;}
.holders-stat-grid span,
.holders-metric-row span,
.holders-engine-strip span{display:block;color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:7px;}
.holders-stat-grid strong,
.holders-metric-row strong{display:block;color:#fff;font-size:1.35rem;line-height:1.1;}
.holders-stat-grid small,
.holders-metric-row small{display:block;color:var(--muted);margin-top:7px;line-height:1.35;}
.holders-footnote{color:var(--muted);font-size:.92rem;line-height:1.55;margin:0;}
.holders-metric-row{grid-template-columns:repeat(4,minmax(0,1fr));}
.holders-engine-strip{display:grid;grid-template-columns:1.1fr 1.2fr 1fr 1.7fr;gap:12px;margin-top:14px;}
.holders-engine-strip strong{color:#fff;display:block;line-height:1.2;}
.holders-engine-strip small{color:var(--muted);line-height:1.35;display:block;}
.holders-explain-section{align-items:stretch;}
.holders-callout-card .lock{display:inline-flex;background:rgba(214,174,88,.12);color:var(--gold);border:1px solid rgba(214,174,88,.24);border-radius:999px;padding:6px 10px;font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:16px;}
.holders-callout-card h3{margin:0 0 10px;color:#fff;font-size:1.45rem;}
.holders-callout-card p{margin:0;color:var(--muted);line-height:1.55;}
.holders-heatmap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.holders-heat-tile{position:relative;overflow:hidden;border-radius:22px;padding:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045);min-height:156px;}
.holders-heat-tile:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:rgba(255,255,255,.18);}
.holders-heat-tile.supportive:before{background:linear-gradient(90deg,#1faf73,#b7e08b);}
.holders-heat-tile.mixed:before{background:linear-gradient(90deg,#c9953c,#f0d383);}
.holders-heat-tile.pressure:before{background:linear-gradient(90deg,#c84747,#f2a0a0);}
.holders-heat-tile.unknown:before{background:linear-gradient(90deg,#586174,#a5afc1);}
.holders-heat-tile div{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:18px;}
.holders-heat-tile strong{color:#fff;font-size:1.02rem;line-height:1.25;}
.holders-heat-tile span{color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap;}
.holders-heat-tile b{display:inline-flex;border-radius:999px;padding:6px 10px;background:rgba(255,255,255,.08);color:#fff;margin-bottom:12px;}
.holders-heat-tile p{margin:0;color:var(--muted);line-height:1.45;font-size:.94rem;}
.holders-chart-card{margin-bottom:18px;}
.holders-chart-card.secondary{margin-bottom:20px;}
.holders-chart-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px;}
.holders-chart-header strong{display:block;color:#fff;font-size:1.15rem;}
.holders-chart-header span,.holders-chart-header small{color:var(--muted);}
.holders-bar-chart,.holders-group-chart{display:grid;gap:10px;}
.holders-bar-row{display:grid;grid-template-columns:minmax(120px,220px) minmax(130px,1fr) 82px;gap:12px;align-items:center;}
.holders-bar-row span{color:#dfe7f2;font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.holders-bar-row strong{color:#fff;text-align:right;font-size:.9rem;}
.holders-bar-track{height:13px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden;border:1px solid rgba(255,255,255,.05);}
.holders-bar-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,rgba(214,174,88,.55),rgba(255,221,139,.95));box-shadow:0 0 18px rgba(214,174,88,.22);}
.holders-table-wrap{overflow:auto;border-radius:20px;border:1px solid rgba(255,255,255,.08);}
.holders-table{min-width:760px;}
.holders-table td strong{display:block;color:#fff;}
.holders-table td small{display:block;color:var(--muted);margin-top:3px;}
.holders-status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);color:#dbe7f6;white-space:nowrap;}
.holders-status-pill.fresh{background:rgba(31,175,115,.12);border-color:rgba(31,175,115,.3);color:#aee8cd;}
.holders-status-pill.fallback{background:rgba(201,149,60,.12);border-color:rgba(201,149,60,.3);color:#f2d398;}
.holders-note-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px;}
.holders-note-grid strong{display:block;color:#fff;margin-bottom:8px;}
.holders-note-grid span{color:var(--muted);line-height:1.45;}
.holders-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.holders-source-grid a{display:block;text-decoration:none;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px;min-height:130px;transition:transform .18s ease,border-color .18s ease,background .18s ease;}
.holders-source-grid a:hover{transform:translateY(-2px);border-color:rgba(214,174,88,.32);background:rgba(214,174,88,.06);}
.holders-source-grid span{display:inline-flex;color:var(--gold);font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px;}
.holders-source-grid strong{display:block;color:#fff;line-height:1.25;margin-bottom:8px;}
.holders-source-grid small{display:block;color:var(--muted);line-height:1.35;}
@media (max-width:1100px){.holders-metric-row,.holders-heatmap{grid-template-columns:repeat(2,minmax(0,1fr));}.holders-engine-strip{grid-template-columns:repeat(2,minmax(0,1fr));}.holders-source-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:720px){.holders-stat-grid,.holders-metric-row,.holders-engine-strip,.holders-heatmap,.holders-note-grid,.holders-source-grid{grid-template-columns:1fr;}.holders-bar-row{grid-template-columns:1fr;gap:6px}.holders-bar-row strong{text-align:left}.holders-chart-header{display:block}.holders-chart-header small{display:block;margin-top:6px}.holders-table{min-width:700px}}

/* ==========================================================
   AgAu.ai V33 visual system: professional light/dark refresh
   Preserves existing engine/data renderers while modernising UI.
   ========================================================== */
:root,
html[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f2f5f9;
  --text: #111827;
  --muted: #637083;
  --line: rgba(17,24,39,0.11);
  --gold: #c88a16;
  --gold-2: #e8b857;
  --green: #16a05d;
  --red: #e04444;
  --amber: #d99a18;
  --blue: #4876d9;
  --shadow: 0 18px 55px rgba(20, 33, 61, 0.10);
  --radius: 22px;
  --max: 1320px;
  --nav-bg: rgba(255,255,255,0.84);
  --panel-grad: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,249,252,0.98));
  --soft-grad: linear-gradient(135deg, rgba(232,184,87,0.16), rgba(255,255,255,0.82) 46%, rgba(137,147,162,0.12));
}
html[data-theme="dark"] {
  --bg: #060a0f;
  --bg-soft: #0b1118;
  --panel: #0d141d;
  --panel-2: #111b26;
  --text: #f7fafc;
  --muted: #aab4c3;
  --line: rgba(255,255,255,0.12);
  --gold: #d79b22;
  --gold-2: #f1c86d;
  --green: #33d17a;
  --red: #ff5959;
  --amber: #f2b84a;
  --blue: #7aa8ff;
  --shadow: 0 22px 60px rgba(0,0,0,0.38);
  --nav-bg: rgba(6,10,15,0.84);
  --panel-grad: linear-gradient(180deg, rgba(20,30,42,0.92), rgba(9,14,20,0.98));
  --soft-grad: radial-gradient(circle at 68% 12%, rgba(215,155,34,0.23), transparent 32rem), linear-gradient(135deg, rgba(17,27,38,0.9), rgba(6,10,15,0.98));
}

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(232,184,87,0.10), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(96,117,148,0.12), transparent 30rem),
    var(--bg) !important;
  color: var(--text);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 78% 10%, rgba(215,155,34,0.16), transparent 34rem),
    radial-gradient(circle at 16% 0%, rgba(80,101,135,0.16), transparent 28rem),
    linear-gradient(180deg, #05080d, #081019 45%, #06090e) !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100% !important;
  max-width: none;
  padding: 10px max(22px, calc((100vw - var(--max)) / 2)) !important;
  margin: 0 auto !important;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.site-header .brand { filter: none; }
.nav { align-items: center; gap: clamp(10px, 1.4vw, 24px); font-weight: 700; }
.nav a { position: relative; color: var(--text); opacity: .78; }
.nav a:hover, .nav a[aria-current="page"], .nav a.is-active { opacity: 1; color: var(--gold); }
.nav a.is-active::after, .nav a[aria-current="page"]::after {
  content:""; position:absolute; left:0; right:0; bottom:-18px; height:3px; border-radius:99px; background:var(--gold);
}
.nav .nav-cta { padding: 9px 14px; border: 1px solid rgba(200,138,22,.25); border-radius: 999px; background: rgba(200,138,22,.08); }
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 12px;
  min-height: 42px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}
.theme-toggle .theme-sun { color: var(--gold); font-size: 1.1rem; line-height: 1; }

.nav-toggle {
  border: 1px solid var(--line) !important;
  background: var(--panel-grad) !important;
  box-shadow: var(--shadow);
}
.nav-toggle span { background: var(--text) !important; }

.market-ticker-bar, .ticker-strip, .tv-ticker-strip { width: min(var(--max), calc(100% - 32px)) !important; }
.market-ticker-bar {
  margin-top: 18px !important;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.market-ticker-shell { background: transparent !important; }
.market-ticker-label { color: var(--muted) !important; }
html[data-theme="light"] .agau-tradingview-ticker { filter: none; }

.hero, .dashboard-hero, .section, .dashboard-wrap { width: min(var(--max), calc(100% - 32px)) !important; }
.hero {
  position: relative;
  min-height: 560px;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(26px, 4vw, 64px);
  padding: clamp(34px, 5vw, 74px) 0 48px !important;
  overflow: hidden;
}
.hero::before {
  content:"";
  position:absolute;
  right:-70px;
  top:28px;
  width:min(760px, 58vw);
  height:380px;
  background: url('../images/agau-hero-ribbons.svg') center/contain no-repeat;
  pointer-events:none;
  z-index:0;
  opacity:.98;
}
.hero::after {
  content:"";
  position:absolute;
  right:0;
  top:80px;
  width:360px;
  height:240px;
  background:
    linear-gradient(90deg, transparent 95%, rgba(200,138,22,.45) 96%) 0 0/38px 100%,
    linear-gradient(0deg, transparent 95%, rgba(99,112,131,.22) 96%) 0 0/100% 36px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
  opacity:.32;
  pointer-events:none;
}
.hero > * { position: relative; z-index: 1; }
.hero-copy { max-width: 680px; }
.eyebrow {
  color: var(--gold) !important;
  letter-spacing: .16em;
  font-size: .76rem;
}
h1 {
  font-size: clamp(2.75rem, 6.4vw, 5.6rem) !important;
  letter-spacing: -.066em !important;
  line-height: .98 !important;
  color: var(--text);
}
.hero h1::first-line { letter-spacing: -.07em; }
h2 { color: var(--text); }
.hero-lede { font-size: clamp(1.04rem, 1.5vw, 1.22rem); color: var(--muted) !important; max-width: 620px; }
.hero-lede.secondary { color: var(--gold) !important; font-weight: 750; }
.button {
  border-radius: 12px !important;
  min-height: 46px;
  gap: 10px;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0,0,0,.10); }
.button.primary { background: linear-gradient(135deg, #b8730d, #e7ad3d) !important; color:#fff !important; }
html[data-theme="dark"] .button.primary { color:#130e05 !important; background: linear-gradient(135deg, #b77b10, #ffd06e) !important; }
.button.ghost { background: var(--panel) !important; color: var(--text) !important; border-color: var(--line) !important; }

.hero-panel, .premium-card, .signal-box, .insight-card, .driver-card, .market-card, .locked-card, .driver-item, .story-card, .paid-cta, .ai-analyst-card, .macro-preview-card, .xaut-panel, .xaut-card, .holders-card, .method-card, .research-card, .heatmap-paywall-note {
  background: var(--panel-grad) !important;
  border: 1px solid var(--line) !important;
  color: var(--text);
  box-shadow: var(--shadow) !important;
}
.hero-panel {
  align-self: center;
  min-height: 350px;
  max-width: 500px;
  margin-left: auto;
  border-radius: 22px;
  backdrop-filter: blur(18px);
}
.hero-panel::before {
  content:"Live Gold Price";
  display:block;
  color: var(--muted);
  font-size:.83rem;
  margin-bottom: 8px;
}
.hero-panel h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); }
.panel-topline, .freshness-row { color: var(--muted); }
.source-pill, .status-pill, .freshness, .ai-analyst-badge, .heat-badge, .data-status-pill, .xaut-status-pill {
  border-radius: 999px !important;
  border: 1px solid rgba(200,138,22,.22) !important;
  background: rgba(200,138,22,.09) !important;
  color: var(--gold) !important;
}
.status-strip, .market-grid, .core-grid, .driver-stack, .platform-pill-grid, .heatmap-summary-grid, .xaut-metric-grid, .holders-summary-grid {
  gap: 14px !important;
}
.status-pill, .mini-signal, .platform-pill-grid article, .metric-card, .xaut-metric, .holders-metric {
  border: 1px solid var(--line) !important;
  background: var(--panel) !important;
  border-radius: 18px !important;
  box-shadow: none;
}
.status-pill strong, .mini-signal strong, .market-card .price { color: var(--text) !important; }

.dashboard-hero {
  position: relative;
  padding: clamp(30px, 5vw, 60px) !important;
  margin-top: 22px !important;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--soft-grad);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dashboard-hero::after {
  content:""; position:absolute; right:-120px; top:-40px; width:620px; height:330px; background:url('../images/agau-hero-ribbons.svg') center/contain no-repeat; opacity:.88; pointer-events:none;
}
.dashboard-hero > * { position: relative; z-index:1; }
.dashboard-hero h1 { max-width: 860px; font-size: clamp(2.1rem, 5vw, 4.3rem) !important; }
.signal-box { border-radius: 20px !important; min-width: 230px; }

.market-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
.market-card { padding: 20px !important; overflow: hidden; position: relative; }
.market-card::before {
  content:""; position:absolute; right:14px; top:14px; width:42px; height:42px; border-radius:50%; background: radial-gradient(circle, rgba(200,138,22,.25), transparent 68%);
}
.market-card svg { color: var(--gold); opacity:.88; }
.change.good, .positive, .good, .bullish { color: var(--green) !important; }
.change.bad, .negative, .bad, .bearish { color: var(--red) !important; }
.neutral, .mixed { color: var(--amber) !important; }

.driver-heatmap, .heatmap-table, .holders-table-wrap, .xaut-table-wrap, table {
  border-radius: 20px !important;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  background: var(--panel) !important;
  box-shadow: none !important;
}
.driver-heatmap .heatmap-row, .heatmap-row, .holders-row, .xaut-row, tr { border-color: var(--line) !important; }
.heatmap-cell, .heat-cell { border-radius: 0 !important; }
.heatmap-cell.supportive, .heat-supportive, .status-supportive, .status-bullish { background: rgba(22,160,93,.15) !important; color: var(--green) !important; }
.heatmap-cell.pressure, .heat-pressure, .status-bearish { background: rgba(224,68,68,.14) !important; color: var(--red) !important; }
.heatmap-cell.mixed, .heat-mixed, .status-mixed, .status-neutral { background: rgba(217,154,24,.16) !important; color: var(--amber) !important; }

.ai-analyst-card, .agau-heatmap-section, .ai-home-feature, .section { margin-top: 28px !important; }
.agau-heatmap-section {
  border-radius: 28px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.28);
}
html[data-theme="dark"] .agau-heatmap-section { background: rgba(10,16,24,.42); }

.agau-platform-strip { padding-block: 14px !important; }
.platform-pill-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.platform-pill-grid article { padding: 22px; }
.platform-pill-grid article span { color: var(--gold); }

/* Rich homepage feature cards */
.section:has(.story-card), .compact-section { padding-block: 10px; }
.story-card.emphasis { background: var(--soft-grad) !important; }
.agau-footer {
  margin-top: 46px;
  background: transparent !important;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.agau-footer-inner { width: min(var(--max), calc(100% - 32px)) !important; }
.agau-footer-links a:hover { color: var(--gold) !important; }
.agau-footer-note { background: var(--panel-grad) !important; border: 1px solid var(--line); border-radius: 18px; }

/* Feature cards with new artwork */
.v33-feature-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.v33-feature-card { display:grid; grid-template-columns: 126px 1fr; gap: 18px; align-items:center; padding: 18px 22px; border-radius: 20px; border:1px solid var(--line); background: var(--panel-grad); box-shadow: var(--shadow); }
.v33-feature-card img { width: 126px; max-height: 105px; object-fit: contain; }
.v33-feature-card h3 { margin-bottom: 4px; }
.v33-feature-card p { color: var(--muted); margin-bottom: 8px; font-size:.94rem; }
.v33-feature-card a { color: var(--gold); font-weight: 800; }

/* Mobile navigation and layout */
.mobile-bottom-nav { display:none; }
@media (max-width: 1040px) {
  .nav { position: fixed; inset: 74px 16px auto 16px; display:none; flex-direction:column; align-items:stretch; padding: 16px; border:1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); }
  .nav.is-open { display:flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; }
  .nav a.is-active::after, .nav a[aria-current="page"]::after { display:none; }
  .nav-toggle { display:inline-flex !important; }
  .theme-toggle { margin-left:auto; }
  .site-header { gap: 10px; }
}
@media (min-width: 1041px) { .nav-toggle { display:none !important; } }

@media (max-width: 900px) {
  body { padding-bottom: 78px; }
  .site-header { padding: 8px 16px !important; }
  .site-header .brand { width: 162px !important; height: 50px !important; min-width: 162px !important; }
  .theme-toggle { width: 44px; min-width: 44px; justify-content:center; padding: 0; }
  .theme-toggle .theme-label { display:none; }
  .hero { display:block; min-height: auto; padding: 28px 0 24px !important; }
  .hero::before { width: 650px; max-width: 120vw; right: -260px; top: 100px; height: 300px; opacity: .92; }
  .hero-copy { padding-top: 18px; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.8rem) !important; }
  .hero-lede { font-size: 1rem; max-width: 92%; }
  .hero-actions { display:grid; grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .button { padding: 12px 14px; font-size:.94rem; }
  .hero-panel { display:none; }
  .macro-preview-card { display:none; }
  .market-ticker-bar { border-radius: 0 !important; width:100% !important; margin:0 !important; display:none; }
  .dashboard-hero { padding: 26px 20px !important; border-radius: 24px; }
  .dashboard-hero::after { right:-310px; top: 40px; opacity:.6; }
  .status-strip, .market-grid, .core-grid, .driver-stack, .xaut-metric-grid, .holders-summary-grid { grid-template-columns: 1fr !important; }
  .market-grid { display:flex !important; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom: 8px; }
  .market-card { min-width: 220px; scroll-snap-align:start; }
  .platform-pill-grid, .v33-feature-grid { grid-template-columns: 1fr !important; }
  .v33-feature-card { grid-template-columns: 88px 1fr; }
  .v33-feature-card img { width: 88px; }
  .heatmap-title-row { align-items:flex-start !important; }
  .driver-heatmap { overflow-x:auto; -webkit-overflow-scrolling: touch; }
  .ai-analyst-grid { grid-template-columns:1fr !important; }
  .agau-footer { padding-bottom: 84px; }
  .mobile-bottom-nav {
    position:fixed; left:0; right:0; bottom:0; z-index:2500; display:grid; grid-template-columns: repeat(5, 1fr); gap:0; padding: 8px 8px max(8px, env(safe-area-inset-bottom)); border-top:1px solid var(--line); background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .mobile-bottom-nav a { display:grid; place-items:center; gap:3px; color: var(--muted); font-size:.72rem; font-weight:700; padding:5px 0; }
  .mobile-bottom-nav a svg { width:23px; height:23px; }
  .mobile-bottom-nav a.is-active { color: var(--gold); }
}
@media (max-width: 560px) {
  .hero-actions { grid-template-columns: 1fr; }
  .section, .dashboard-wrap, .hero, .dashboard-hero { width: min(100% - 24px, var(--max)) !important; }
  .agau-heatmap-section { padding: 16px; }
  .status-pill { padding: 14px !important; }
  .page-subnav { display:none !important; }
}

/* Home dashboard shortcuts inserted by V33 */
.v33-home-showcase { width:min(var(--max), calc(100% - 32px)); margin: 8px auto 0; display:grid; grid-template-columns: 1.05fr 1.35fr .95fr; gap:14px; }
.v33-home-showcase > article { border:1px solid var(--line); border-radius: 22px; background: var(--panel-grad); box-shadow: var(--shadow); padding: 18px; }
.v33-home-showcase h3 { margin: 0 0 8px; }
.v33-home-showcase p { color: var(--muted); font-size:.93rem; }
.v33-chart-visual { min-height: 210px; position:relative; overflow:hidden; }
.v33-chart-visual svg { width:100%; height:200px; display:block; }
.v33-insight-list { display:grid; gap:12px; }
.v33-insight-list div { display:grid; grid-template-columns:42px 1fr; gap:12px; align-items:start; }
.v33-insight-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background: rgba(22,160,93,.13); color:var(--green); }
@media (max-width: 900px) { .v33-home-showcase { display:block; } .v33-home-showcase > article { margin-bottom:14px; } }

/* ==========================================================
   V33.1 footer refinement: compact light/dark aware footer
   ========================================================== */
.agau-footer{
  margin-top: 28px !important;
  border-top: 1px solid var(--line) !important;
  color: var(--muted) !important;
  min-height: 0 !important;
}
html[data-theme="light"] .agau-footer,
html:not([data-theme="dark"]) .agau-footer{
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
  box-shadow: inset 0 1px 0 rgba(17,24,39,.04) !important;
}
html[data-theme="dark"] .agau-footer{
  background: radial-gradient(circle at 12% 0%, rgba(215,168,79,.08), transparent 22rem), linear-gradient(180deg, rgba(12,16,23,.96), rgba(6,8,12,.99)) !important;
}
.agau-footer-inner{
  padding: 24px 0 18px !important;
  gap: 20px !important;
  grid-template-columns: .95fr 1.35fr .88fr !important;
}
.agau-footer-logo{margin-bottom: 8px !important;}
.agau-footer-logo img{max-width: 150px !important;}
.agau-footer-brand p,
.agau-footer-note p{
  font-size: .88rem !important;
  line-height: 1.42 !important;
  color: var(--muted) !important;
}
.agau-footer-note{
  padding: 12px 14px !important;
  border-radius: 16px !important;
  background: var(--panel-grad) !important;
  border: 1px solid var(--line) !important;
}
html[data-theme="light"] .agau-footer-note,
html:not([data-theme="dark"]) .agau-footer-note{
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(20,33,61,.07) !important;
}
.agau-footer-note strong{
  margin-bottom: 5px !important;
  color: var(--text) !important;
  font-size: .88rem !important;
}
.agau-footer-links{
  gap: 4px 18px !important;
  align-content:start !important;
}
.agau-footer-links a{
  padding: 4px 0 !important;
  min-height: 0 !important;
  line-height: 1.25 !important;
  font-size: .9rem !important;
  color: var(--text) !important;
  opacity: .82 !important;
  border-bottom: 1px solid var(--line) !important;
}
.agau-footer-links a:hover{opacity:1 !important;color:var(--gold) !important;}
.agau-footer-bottom{
  padding-top: 12px !important;
  margin-top: 0 !important;
  border-top: 1px solid var(--line) !important;
  color: var(--muted) !important;
  font-size: .84rem !important;
}
@media (max-width: 920px){
  .agau-footer-inner{
    grid-template-columns: 1fr !important;
    padding: 22px 0 18px !important;
    gap: 16px !important;
  }
  .agau-footer-links{grid-template-columns: repeat(2, minmax(0,1fr)) !important;}
}
@media (max-width: 560px){
  .agau-footer{margin-top: 18px !important;}
  .agau-footer-links{grid-template-columns: 1fr !important;}
  .agau-footer-logo img{max-width: 134px !important;}
}

/* ==========================================================
   V33.2 top navigation repair
   Fixes light-mode header contrast, desktop wrapping and mobile menu.
   ========================================================== */
.site-header{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
  min-height:76px !important;
  padding-top:10px !important;
  padding-bottom:10px !important;
}
html[data-theme="light"] .site-header,
html:not([data-theme="dark"]) .site-header{
  background:rgba(255,255,255,.92) !important;
  color:#111827 !important;
  border-bottom:1px solid rgba(17,24,39,.10) !important;
  box-shadow:0 10px 30px rgba(20,33,61,.06) !important;
}
html[data-theme="dark"] .site-header{
  background:rgba(6,10,15,.88) !important;
  color:#f5efe4 !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 10px 30px rgba(0,0,0,.22) !important;
}
.site-header .brand{
  flex:0 0 auto !important;
  margin:0 !important;
}
.site-header .nav{
  flex:1 1 auto !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:nowrap !important;
  gap:clamp(6px, .8vw, 14px) !important;
  width:auto !important;
  overflow:visible !important;
  padding:0 !important;
  margin:0 !important;
  position:static !important;
  inset:auto !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}
.site-header .nav a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
  padding:8px 9px !important;
  border-radius:999px !important;
  font-size:clamp(.78rem, .78vw, .9rem) !important;
  line-height:1 !important;
  color:var(--text) !important;
  opacity:.78 !important;
  background:transparent !important;
  border:1px solid transparent !important;
}
.site-header .nav a:hover,
.site-header .nav a.is-active,
.site-header .nav a[aria-current="page"]{
  color:var(--gold) !important;
  opacity:1 !important;
  background:rgba(200,138,22,.09) !important;
  border-color:rgba(200,138,22,.16) !important;
}
.site-header .nav a.is-active::after,
.site-header .nav a[aria-current="page"]::after{
  display:none !important;
}
.site-header .nav a.nav-cta{
  margin-left:4px !important;
  padding:9px 14px !important;
  color:var(--gold) !important;
  border:1px solid rgba(200,138,22,.32) !important;
  background:rgba(200,138,22,.10) !important;
}
.theme-toggle{
  flex:0 0 auto !important;
  white-space:nowrap !important;
  margin:0 !important;
}
.nav-toggle{
  flex:0 0 auto !important;
}
@media (min-width:1041px){
  .nav-toggle{display:none !important;}
}
@media (max-width:1220px) and (min-width:1041px){
  .site-header{gap:10px !important;}
  .site-header .brand{width:142px !important;min-width:142px !important;height:46px !important;}
  .site-header .nav{gap:4px !important;}
  .site-header .nav a{font-size:.78rem !important;padding:7px 7px !important;}
  .site-header .nav a.nav-cta{padding:8px 10px !important;}
  .theme-toggle{padding:8px 10px !important;}
}
@media (max-width:1040px){
  .site-header{
    justify-content:flex-start !important;
    padding:8px 16px !important;
  }
  .site-header .brand{margin-right:auto !important;}
  .theme-toggle{margin-left:0 !important;}
  .nav-toggle{display:inline-flex !important;}
  .site-header .nav{
    position:fixed !important;
    inset:78px 14px auto 14px !important;
    display:none !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:6px !important;
    padding:14px !important;
    width:auto !important;
    max-height:calc(100vh - 96px) !important;
    overflow:auto !important;
    border:1px solid var(--line) !important;
    border-radius:22px !important;
    background:var(--panel) !important;
    box-shadow:var(--shadow) !important;
    z-index:5000 !important;
  }
  .site-header .nav.is-open{display:flex !important;}
  .site-header .nav a{
    width:100% !important;
    justify-content:space-between !important;
    padding:13px 14px !important;
    font-size:1rem !important;
    border-radius:14px !important;
  }
  .site-header .nav a::after{content:'›'; display:inline !important; color:var(--gold); font-size:1.1rem; background:none !important; height:auto !important; position:static !important;}
  .site-header .nav a.nav-cta::after{content:'' !important;}
}
@media (max-width:560px){
  .site-header{min-height:66px !important;}
  .site-header .brand{width:138px !important;min-width:138px !important;height:42px !important;}
  .theme-toggle,.nav-toggle{width:42px !important;height:42px !important;min-width:42px !important;border-radius:16px !important;}
}

/* ==========================================================
   V33.3 dashboard subnav + privacy/cookie repair
   ========================================================== */
html[data-theme="light"] .page-subnav,
html:not([data-theme="dark"]) .page-subnav{
  background: rgba(255,255,255,.86) !important;
  border-top: 1px solid rgba(17,24,39,.06) !important;
  border-bottom: 1px solid rgba(17,24,39,.10) !important;
  box-shadow: 0 12px 34px rgba(20,33,61,.08) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}
html[data-theme="dark"] .page-subnav{
  background: linear-gradient(180deg, rgba(8,11,16,.94), rgba(8,11,16,.78)) !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.24) !important;
}
html[data-theme="light"] .page-subnav-label,
html:not([data-theme="dark"]) .page-subnav-label{ color: var(--gold) !important; }
html[data-theme="light"] .page-subnav a,
html:not([data-theme="dark"]) .page-subnav a{
  color: #415066 !important;
  background: rgba(17,24,39,.035) !important;
  border-color: rgba(17,24,39,.09) !important;
}
html[data-theme="light"] .page-subnav a:hover,
html:not([data-theme="dark"]) .page-subnav a:hover{
  color: #111827 !important;
  background: rgba(200,138,22,.10) !important;
  border-color: rgba(200,138,22,.18) !important;
}
html[data-theme="dark"] .page-subnav a{
  color: var(--muted) !important;
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.08) !important;
}
html[data-theme="dark"] .page-subnav a:hover{
  color: var(--text) !important;
  background: rgba(255,255,255,.075) !important;
  border-color: rgba(215,168,79,.25) !important;
}
@media (min-width:1041px){
  .site-header .nav a{font-size:clamp(.74rem,.72vw,.88rem) !important;padding:8px 8px !important;}
  .site-header .nav{gap:clamp(4px,.55vw,10px) !important;}
}
@media (max-width:1320px) and (min-width:1041px){
  .site-header .brand{width:132px !important;min-width:132px !important;height:44px !important;}
  .site-header .nav a{font-size:.73rem !important;padding:7px 6px !important;}
  .site-header .nav a.nav-cta{padding:8px 9px !important;}
}

.agau-cookie-banner{
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 9000;
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0,0,0,.20);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html[data-theme="light"] .agau-cookie-banner,
html:not([data-theme="dark"]) .agau-cookie-banner{background:rgba(255,255,255,.96) !important;}
html[data-theme="dark"] .agau-cookie-banner{background:rgba(10,16,24,.96) !important;}
.agau-cookie-copy strong{display:block;margin:0 0 5px;font-size:1rem;color:var(--text);}
.agau-cookie-copy p{margin:0;color:var(--muted);line-height:1.45;font-size:.93rem;}
.agau-cookie-copy a{display:inline-flex;margin-top:8px;color:var(--gold);font-weight:750;}
.agau-cookie-actions{display:flex;gap:10px;align-items:center;}
.agau-cookie-actions button{border:1px solid var(--line);border-radius:999px;padding:10px 18px;font-weight:800;cursor:pointer;}
.agau-cookie-yes{background:linear-gradient(135deg, var(--gold), var(--gold-2));color:#130e05;border-color:rgba(200,138,22,.35) !important;}
.agau-cookie-no{background:transparent;color:var(--text);}
@media (max-width:720px){
  .agau-cookie-banner{grid-template-columns:1fr;padding:16px;bottom:82px;}
  .agau-cookie-actions{display:grid;grid-template-columns:1fr 1fr;}
  .agau-cookie-actions button{width:100%;}
}


/* ==========================================================
   V33.4 light/dark contrast, ticker and bullion integration
   ========================================================== */
html[data-theme="light"] .market-ticker-bar,
html:not([data-theme="dark"]) .market-ticker-bar,
html[data-theme="light"] .tv-ticker-strip,
html:not([data-theme="dark"]) .tv-ticker-strip{
  background: rgba(255,255,255,.94) !important;
  color:#111827 !important;
}
html[data-theme="dark"] .market-ticker-bar,
html[data-theme="dark"] .tv-ticker-strip{
  background: rgba(10,16,24,.96) !important;
  color:#f7fafc !important;
}
html[data-theme="light"] .market-ticker-widget,
html:not([data-theme="dark"]) .market-ticker-widget{background:transparent !important;color:#111827 !important;}
html[data-theme="dark"] .market-ticker-widget{background:transparent !important;color:#f7fafc !important;}
.agau-tradingview-ticker{min-height:48px;background:transparent !important;}
.agau-tradingview-ticker iframe{background:transparent !important;display:block !important;}
html[data-theme="dark"] .agau-tradingview-ticker{color-scheme:dark;}
html[data-theme="light"] .agau-tradingview-ticker{color-scheme:light;}

/* Make hard-coded dark-page text readable in light mode */
html[data-theme="light"] .ai-analyst-badge,
html:not([data-theme="dark"]) .ai-analyst-badge,
html[data-theme="light"] .ai-analyst-section h3,
html:not([data-theme="dark"]) .ai-analyst-section h3,
html[data-theme="light"] .ai-persona-head h3,
html:not([data-theme="dark"]) .ai-persona-head h3,
html[data-theme="light"] .ai-premium-note,
html:not([data-theme="dark"]) .ai-premium-note,
html[data-theme="light"] .ai-bias-comment,
html:not([data-theme="dark"]) .ai-bias-comment{
  color:#8a5c08 !important;
}
html[data-theme="light"] .ai-live-status,
html:not([data-theme="dark"]) .ai-live-status,
html[data-theme="light"] .ai-live-status strong,
html:not([data-theme="dark"]) .ai-live-status strong{color:#0f8a50 !important;}
html[data-theme="light"] .heatmap-metal-cell.supportive,
html:not([data-theme="dark"]) .heatmap-metal-cell.supportive{color:#075d35 !important;}
html[data-theme="light"] .heatmap-metal-cell.mixed,
html:not([data-theme="dark"]) .heatmap-metal-cell.mixed{color:#7b4b00 !important;}
html[data-theme="light"] .heatmap-metal-cell.pressure,
html:not([data-theme="dark"]) .heatmap-metal-cell.pressure{color:#9b1c1c !important;}
html[data-theme="light"] .heatmap-metal-cell.checking,
html:not([data-theme="dark"]) .heatmap-metal-cell.checking{color:#244a9a !important;}
html[data-theme="light"] .data-method-table td,
html:not([data-theme="dark"]) .data-method-table td{color:#243044 !important;}
html[data-theme="light"] .xaut-stat-grid strong,
html[data-theme="light"] .xaut-metric-row strong,
html[data-theme="light"] .xaut-bar-item strong,
html[data-theme="light"] .xaut-bar-item span,
html[data-theme="light"] .xaut-risk-grid strong,
html[data-theme="light"] .xaut-source-grid strong,
html[data-theme="light"] .xaut-engine-strip strong,
html:not([data-theme="dark"]) .xaut-stat-grid strong,
html:not([data-theme="dark"]) .xaut-metric-row strong,
html:not([data-theme="dark"]) .xaut-bar-item strong,
html:not([data-theme="dark"]) .xaut-bar-item span,
html:not([data-theme="dark"]) .xaut-risk-grid strong,
html:not([data-theme="dark"]) .xaut-source-grid strong,
html:not([data-theme="dark"]) .xaut-engine-strip strong{color:#111827 !important;}
html[data-theme="light"] .xaut-engine-warning,
html:not([data-theme="dark"]) .xaut-engine-warning{color:#8a5c08 !important;border-top-color:rgba(17,24,39,.10) !important;}
html[data-theme="light"] .holders-metric-row strong,
html[data-theme="light"] .holders-engine-strip strong,
html[data-theme="light"] .holders-callout-card h3,
html[data-theme="light"] .holders-heat-tile strong,
html[data-theme="light"] .holders-heat-tile b,
html[data-theme="light"] .holders-chart-header strong,
html[data-theme="light"] .holders-bar-row span,
html[data-theme="light"] .holders-bar-row strong,
html[data-theme="light"] .holders-table td strong,
html[data-theme="light"] .holders-note-grid strong,
html[data-theme="light"] .holders-source-grid strong,
html:not([data-theme="dark"]) .holders-metric-row strong,
html:not([data-theme="dark"]) .holders-engine-strip strong,
html:not([data-theme="dark"]) .holders-callout-card h3,
html:not([data-theme="dark"]) .holders-heat-tile strong,
html:not([data-theme="dark"]) .holders-heat-tile b,
html:not([data-theme="dark"]) .holders-chart-header strong,
html:not([data-theme="dark"]) .holders-bar-row span,
html:not([data-theme="dark"]) .holders-bar-row strong,
html:not([data-theme="dark"]) .holders-table td strong,
html:not([data-theme="dark"]) .holders-note-grid strong,
html:not([data-theme="dark"]) .holders-source-grid strong{color:#111827 !important;}
html[data-theme="light"] .holders-status-pill,
html:not([data-theme="dark"]) .holders-status-pill{background:rgba(17,24,39,.045) !important;border-color:rgba(17,24,39,.12) !important;color:#334155 !important;}
html[data-theme="light"] .holders-status-pill.fresh,
html:not([data-theme="dark"]) .holders-status-pill.fresh{background:rgba(31,175,115,.10) !important;border-color:rgba(31,175,115,.24) !important;color:#09613c !important;}
html[data-theme="light"] .holders-status-pill.fallback,
html:not([data-theme="dark"]) .holders-status-pill.fallback{background:rgba(201,149,60,.12) !important;border-color:rgba(201,149,60,.26) !important;color:#7a4c00 !important;}

/* Miners page inline legacy colour repair */
html[data-theme="light"] .miner-news-group .miner-news-item p,
html:not([data-theme="dark"]) .miner-news-group .miner-news-item p,
html[data-theme="light"] .miner-news-item p,
html:not([data-theme="dark"]) .miner-news-item p{color:#334155 !important;}
html[data-theme="light"] .miner-news-group.is-silver .miner-news-item > a,
html:not([data-theme="dark"]) .miner-news-group.is-silver .miner-news-item > a,
html[data-theme="light"] .constituent-card.is-silver .constituent-card-head h3,
html:not([data-theme="dark"]) .constituent-card.is-silver .constituent-card-head h3{color:#516076 !important;}
html[data-theme="light"] .miner-news-group.is-gold .miner-news-item > a,
html:not([data-theme="dark"]) .miner-news-group.is-gold .miner-news-item > a,
html[data-theme="light"] .constituent-card.is-gold .constituent-card-head h3,
html:not([data-theme="dark"]) .constituent-card.is-gold .constituent-card-head h3{color:#9a690f !important;}
html[data-theme="light"] .miner-news-item small,
html[data-theme="light"] .group-meta,
html[data-theme="light"] .relative-status-note,
html[data-theme="light"] .constituents-head p,
html[data-theme="light"] .constituents-meta,
html[data-theme="light"] .constituent-card-head p,
html[data-theme="light"] .constituent-status,
html[data-theme="light"] .constituents-disclaimer,
html:not([data-theme="dark"]) .miner-news-item small,
html:not([data-theme="dark"]) .group-meta,
html:not([data-theme="dark"]) .relative-status-note,
html:not([data-theme="dark"]) .constituents-head p,
html:not([data-theme="dark"]) .constituents-meta,
html:not([data-theme="dark"]) .constituent-card-head p,
html:not([data-theme="dark"]) .constituent-status,
html:not([data-theme="dark"]) .constituents-disclaimer{color:#637083 !important;}
html[data-theme="light"] .constituent-tab,
html:not([data-theme="dark"]) .constituent-tab{background:rgba(17,24,39,.04) !important;border-color:rgba(17,24,39,.12) !important;color:#334155 !important;}

/* Bullion calculator uses the global shell while preserving its calculator controls */
.bullion-page .site-header{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.bullion-page .agau-page{width:min(var(--max), calc(100% - 32px)) !important;padding-top:36px !important;}
html[data-theme="light"] body.bullion-page,
html:not([data-theme="dark"]) body.bullion-page{background:var(--bg) !important;color:var(--text) !important;}
html[data-theme="dark"] body.bullion-page{background:var(--bg) !important;color:var(--text) !important;}
html[data-theme="light"] .bullion-page .agau-card,
html:not([data-theme="dark"]) .bullion-page .agau-card{background:var(--panel) !important;color:var(--text) !important;border-color:var(--line) !important;box-shadow:var(--shadow) !important;}
html[data-theme="light"] .bullion-page .agau-muted,
html:not([data-theme="dark"]) .bullion-page .agau-muted{color:var(--muted) !important;}
html[data-theme="light"] .bullion-page input,
html[data-theme="light"] .bullion-page select,
html:not([data-theme="dark"]) .bullion-page input,
html:not([data-theme="dark"]) .bullion-page select{background:#fff !important;color:#111827 !important;border-color:rgba(17,24,39,.16) !important;}
.bullion-page .agau-footer{margin-top:28px !important;}

/* Hide the retired miner-news page from any legacy generated fragments */
a[href="miner-news-intelligence.html"]{display:none !important;}


/* ==========================================================
   V33.6 full light-mode contrast sweep + TradingView dual theme
   ========================================================== */
.agau-tv-theme-frame{display:none;min-height:48px;width:100%;background:transparent;}
.agau-tv-theme-frame .tradingview-widget-container__widget{min-height:48px;width:100%;}
html[data-theme="light"] .agau-tradingview-ticker .agau-tv-light,
html:not([data-theme="dark"]) .agau-tradingview-ticker .agau-tv-light{display:block;}
html[data-theme="light"] .agau-tradingview-ticker .agau-tv-dark,
html:not([data-theme="dark"]) .agau-tradingview-ticker .agau-tv-dark{display:none!important;}
html[data-theme="dark"] .agau-tradingview-ticker .agau-tv-dark{display:block;}
html[data-theme="dark"] .agau-tradingview-ticker .agau-tv-light{display:none!important;}
html[data-theme="light"] .market-ticker-bar,
html:not([data-theme="dark"]) .market-ticker-bar{background:rgba(255,255,255,.94)!important;border-color:rgba(17,24,39,.10)!important;box-shadow:0 14px 34px rgba(20,33,61,.08)!important;}
html[data-theme="dark"] .market-ticker-bar{background:rgba(9,14,21,.96)!important;border-color:rgba(255,255,255,.12)!important;box-shadow:0 14px 34px rgba(0,0,0,.34)!important;}
html[data-theme="light"] .market-ticker-label,
html:not([data-theme="dark"]) .market-ticker-label{background:rgba(255,255,255,.96)!important;color:#111827!important;border-right-color:rgba(17,24,39,.10)!important;}
html[data-theme="dark"] .market-ticker-label{background:rgba(12,18,27,.98)!important;color:#f7fafc!important;border-right-color:rgba(255,255,255,.12)!important;}

/* Light-mode readability: convert any remaining legacy dark panels to clean light cards. */
html[data-theme="light"] .page-shell,
html:not([data-theme="dark"]) .page-shell,
html[data-theme="light"] .dashboard-wrap,
html:not([data-theme="dark"]) .dashboard-wrap,
html[data-theme="light"] main,
html:not([data-theme="dark"]) main{color:#111827!important;}

html[data-theme="light"] :is(.hero-panel,.platform-terminal-card,.premium-card,.method-note-card,.proof-note,.story-card,.signal-box,.insight-card,.driver-card,.market-card,.locked-card,.driver-item,.paid-cta,.plain-card,.rates-card,.rates-hero-card,.rates-opinion-box,.formula-box,.macro-preview-card,.macro-exec,.macro-grid,.macro-impact,.macro-news-list,.research-update-list,.holders-hero-panel,.holders-callout-card,.holders-chart-card,.holders-group-chart,.holders-table-wrap,.holders-engine-strip,.holders-note-grid,.holders-source-grid,.xaut-hero-panel,.xaut-callout-card,.xaut-chart-card,.xaut-table-wrap,.xaut-engine-strip,.xaut-note-grid,.xaut-risk-grid,.xaut-source-grid,.agau-card,.agau-spot-card,.agau-premium-box,.data-method-table-wrap,.section.dashboard-section),
html:not([data-theme="dark"]) :is(.hero-panel,.platform-terminal-card,.premium-card,.method-note-card,.proof-note,.story-card,.signal-box,.insight-card,.driver-card,.market-card,.locked-card,.driver-item,.paid-cta,.plain-card,.rates-card,.rates-hero-card,.rates-opinion-box,.formula-box,.macro-preview-card,.macro-exec,.macro-grid,.macro-impact,.macro-news-list,.research-update-list,.holders-hero-panel,.holders-callout-card,.holders-chart-card,.holders-group-chart,.holders-table-wrap,.holders-engine-strip,.holders-note-grid,.holders-source-grid,.xaut-hero-panel,.xaut-callout-card,.xaut-chart-card,.xaut-table-wrap,.xaut-engine-strip,.xaut-note-grid,.xaut-risk-grid,.xaut-source-grid,.agau-card,.agau-spot-card,.agau-premium-box,.data-method-table-wrap,.section.dashboard-section){
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,249,252,.98))!important;
  border-color:rgba(17,24,39,.12)!important;
  color:#111827!important;
  box-shadow:0 18px 48px rgba(20,33,61,.09)!important;
}

html[data-theme="light"] :is(.mini-signal,.metric-row,.terminal-grid>*,.platform-feature-grid>*,.rates-status-row>*,.watch-table-wrap,.source-list,.xaut-feature-grid>*,.holders-stat-grid>*,.holders-metric-row>*,.holders-heatmap>*,.xaut-stat-grid>*,.xaut-metric-row>*,.xaut-bar-chart,.holders-bar-chart,.agau-metric,.agau-mini-result,.agau-explain,.agau-disclaimer),
html:not([data-theme="dark"]) :is(.mini-signal,.metric-row,.terminal-grid>*,.platform-feature-grid>*,.rates-status-row>*,.watch-table-wrap,.source-list,.xaut-feature-grid>*,.holders-stat-grid>*,.holders-metric-row>*,.holders-heatmap>*,.xaut-stat-grid>*,.xaut-metric-row>*,.xaut-bar-chart,.holders-bar-chart,.agau-metric,.agau-mini-result,.agau-explain,.agau-disclaimer){
  background:rgba(17,24,39,.035)!important;
  border-color:rgba(17,24,39,.10)!important;
  color:#111827!important;
}

html[data-theme="light"] :is(h1,h2,h3,h4,h5,h6,.hero-lede,.dashboard-summary,.section-title p,.macro-muted,.macro-summary-live,.macro-news-meta,.agau-muted,.agau-help,.agau-copy,.agau-result-label,.agau-result-sub,.holders-footnote,.xaut-footnote,.source-list,.rates-explainer,.note),
html:not([data-theme="dark"]) :is(h1,h2,h3,h4,h5,h6,.hero-lede,.dashboard-summary,.section-title p,.macro-muted,.macro-summary-live,.macro-news-meta,.agau-muted,.agau-help,.agau-copy,.agau-result-label,.agau-result-sub,.holders-footnote,.xaut-footnote,.source-list,.rates-explainer,.note){
  color:#111827!important;
}
html[data-theme="light"] :is(p,li,td,th,label,small,.brand-text,.terminal-topline,.panel-topline,.freshness-row,.score-meta,.driver-stamp),
html:not([data-theme="dark"]) :is(p,li,td,th,label,small,.brand-text,.terminal-topline,.panel-topline,.freshness-row,.score-meta,.driver-stamp){
  color:#334155!important;
}
html[data-theme="light"] :is(strong,b,.value,.label,.signal-label,.agau-result-main,.agau-result-value,.agau-spot-price,.agau-card-title,.macro-headline),
html:not([data-theme="dark"]) :is(strong,b,.value,.label,.signal-label,.agau-result-main,.agau-result-value,.agau-spot-price,.agau-card-title,.macro-headline){
  color:#111827!important;
}
html[data-theme="light"] :is(.eyebrow,.inline-link,.macro-link,.button.ghost:hover,.source-pill,.agau-eyebrow),
html:not([data-theme="dark"]) :is(.eyebrow,.inline-link,.macro-link,.button.ghost:hover,.source-pill,.agau-eyebrow){color:#b87405!important;}
html[data-theme="light"] .button.primary,
html:not([data-theme="dark"]) .button.primary{color:#120d05!important;}
html[data-theme="light"] .button.ghost,
html:not([data-theme="dark"]) .button.ghost{background:#fff!important;color:#111827!important;border-color:rgba(17,24,39,.13)!important;}

/* Tables in light mode */
html[data-theme="light"] :is(.data-method-table,.watch-table,.holders-table,.token-table,.xaut-table),
html:not([data-theme="dark"]) :is(.data-method-table,.watch-table,.holders-table,.token-table,.xaut-table){background:#fff!important;color:#111827!important;}
html[data-theme="light"] :is(.data-method-table th,.watch-table th,.holders-table th,.token-table th,.xaut-table th),
html:not([data-theme="dark"]) :is(.data-method-table th,.watch-table th,.holders-table th,.token-table th,.xaut-table th){background:#f3f6fa!important;color:#111827!important;border-color:rgba(17,24,39,.10)!important;}
html[data-theme="light"] :is(.data-method-table td,.watch-table td,.holders-table td,.token-table td,.xaut-table td),
html:not([data-theme="dark"]) :is(.data-method-table td,.watch-table td,.holders-table td,.token-table td,.xaut-table td){background:#fff!important;color:#243044!important;border-color:rgba(17,24,39,.08)!important;}

/* Preserve semantic signal colours after the broad text sweep. */
html[data-theme="light"] :is(.up,.good,.positive,.fresh,.supportive),
html:not([data-theme="dark"]) :is(.up,.good,.positive,.fresh,.supportive){color:#087f4b!important;}
html[data-theme="light"] :is(.down,.bad,.negative,.pressure),
html:not([data-theme="dark"]) :is(.down,.bad,.negative,.pressure){color:#c52e2e!important;}
html[data-theme="light"] :is(.warn,.mixed,.neutral),
html:not([data-theme="dark"]) :is(.warn,.mixed,.neutral){color:#9a6200!important;}
html[data-theme="light"] .heatmap-metal-cell.supportive,
html:not([data-theme="dark"]) .heatmap-metal-cell.supportive{background:rgba(31,175,115,.14)!important;color:#075d35!important;}
html[data-theme="light"] .heatmap-metal-cell.mixed,
html:not([data-theme="dark"]) .heatmap-metal-cell.mixed{background:rgba(217,154,24,.18)!important;color:#7b4b00!important;}
html[data-theme="light"] .heatmap-metal-cell.pressure,
html:not([data-theme="dark"]) .heatmap-metal-cell.pressure{background:rgba(224,68,68,.15)!important;color:#9b1c1c!important;}

/* Bullion calculator full shell repair in light mode */
html[data-theme="light"] body.bullion-page .agau-shell,
html:not([data-theme="dark"]) body.bullion-page .agau-shell{background:transparent!important;color:#111827!important;}
html[data-theme="light"] .bullion-page .agau-card,
html:not([data-theme="dark"]) .bullion-page .agau-card{background:#fff!important;color:#111827!important;border-color:rgba(17,24,39,.12)!important;}
html[data-theme="light"] .bullion-page :is(input,select,textarea),
html:not([data-theme="dark"]) .bullion-page :is(input,select,textarea){background:#fff!important;color:#111827!important;border-color:rgba(17,24,39,.16)!important;}
html[data-theme="light"] .bullion-page :is(.agau-switch,.agau-fine-toggle button,.agau-tabs button),
html:not([data-theme="dark"]) .bullion-page :is(.agau-switch,.agau-fine-toggle button,.agau-tabs button){background:#f3f6fa!important;color:#334155!important;border-color:rgba(17,24,39,.12)!important;}
html[data-theme="light"] .bullion-page :is(.agau-switch.active,.agau-fine-toggle button.active,.agau-tabs button.active),
html:not([data-theme="dark"]) .bullion-page :is(.agau-switch.active,.agau-fine-toggle button.active,.agau-tabs button.active){background:rgba(200,138,22,.12)!important;color:#8a5c08!important;border-color:rgba(200,138,22,.32)!important;}

/* ==========================================================
   V33.7 light-mode section shell cleanup
   Removes the accidental pale/white background bands created by
   broad light-mode card overrides. Real cards remain styled;
   section wrappers stay transparent in light mode.
   ========================================================== */
html[data-theme="light"] .section.dashboard-section,
html:not([data-theme="dark"]) .section.dashboard-section,
html[data-theme="light"] .agau-heatmap-section,
html:not([data-theme="dark"]) .agau-heatmap-section,
html[data-theme="light"] .xaut-dashboard-section,
html:not([data-theme="dark"]) .xaut-dashboard-section{
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-theme="light"] .dashboard-section,
html:not([data-theme="dark"]) .dashboard-section{
  border-radius: 0 !important;
}

html[data-theme="light"] .section.dashboard-section > .section-title,
html:not([data-theme="dark"]) .section.dashboard-section > .section-title{
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}


/* v33.8 targeted page polish: compact live update badge and gold-holders layout */
.live-update-badge.status-strip,
.status-strip.compact.live-update-badge{
  width:auto;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  margin:18px 0 0;
  border-radius:999px;
  border:1px solid rgba(74, 222, 128, .24);
  background:rgba(34,197,94,.10);
  box-shadow:none;
}
.live-update-badge strong{font-size:.92rem;color:#079455;}
.live-update-badge small{font-size:.85rem;color:var(--muted);}
html[data-theme="light"] .live-update-badge.status-strip,
html:not([data-theme="dark"]) .live-update-badge.status-strip{
  background:rgba(34,197,94,.09)!important;
  border-color:rgba(16,185,129,.22)!important;
}
html[data-theme="light"] .live-update-badge strong,
html:not([data-theme="dark"]) .live-update-badge strong{color:#047857!important;}
.pulse-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 0 rgba(34,197,94,.55);
  animation:agauPulse 1.8s infinite;
  flex:0 0 auto;
}
@keyframes agauPulse{
  0%{box-shadow:0 0 0 0 rgba(34,197,94,.55);}
  70%{box-shadow:0 0 0 10px rgba(34,197,94,0);}
  100%{box-shadow:0 0 0 0 rgba(34,197,94,0);}
}
.holders-comparison-section{
  grid-template-columns:minmax(280px,.78fr) minmax(660px,1.35fr);
  align-items:start;
}
.holders-comparison-section .holders-table-wrap{
  width:100%;
  overflow-x:auto;
}
.holders-comparison-section .holders-table{
  min-width:760px;
}
.holders-comparison-section .holders-table th,
.holders-comparison-section .holders-table td{
  white-space:normal;
  line-height:1.45;
}
.holders-comparison-section .holders-table th:nth-child(1),
.holders-comparison-section .holders-table td:nth-child(1){width:18%;}
.holders-comparison-section .holders-table th:nth-child(2),
.holders-comparison-section .holders-table td:nth-child(2){width:46%;}
.holders-comparison-section .holders-table th:nth-child(3),
.holders-comparison-section .holders-table td:nth-child(3){width:36%;}
@media (max-width:1100px){
  .holders-comparison-section{grid-template-columns:1fr;}
  .holders-comparison-section .holders-table{min-width:680px;}
}

/* v33.9 consistent live update badges and heat-map legend colour fidelity */
.status-strip.live-only,
.status-strip.compact.live-only,
.holders-engine-strip.live-only,
.xaut-engine-strip.live-only,
.live-update-badge.live-only{
  width:auto !important;
  max-width:fit-content !important;
  display:inline-flex !important;
  grid-template-columns:none !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  padding:10px 14px !important;
  margin:18px 0 0 !important;
  border-radius:999px !important;
  border:1px solid rgba(34,197,94,.24) !important;
  background:rgba(34,197,94,.10) !important;
  box-shadow:none !important;
  color:var(--text) !important;
}
.status-strip.live-only{margin-left:0 !important;margin-right:auto !important;}
.status-strip.live-only strong,
.status-strip.compact.live-only strong,
.holders-engine-strip.live-only strong,
.xaut-engine-strip.live-only strong,
.live-update-badge.live-only strong{
  color:#10b981 !important;
  font-weight:900 !important;
  font-size:.92rem !important;
}
.status-strip.live-only small,
.status-strip.compact.live-only small,
.holders-engine-strip.live-only small,
.xaut-engine-strip.live-only small,
.live-update-badge.live-only small{
  color:var(--muted) !important;
  font-size:.86rem !important;
  line-height:1.2 !important;
}
html[data-theme="light"] .status-strip.live-only,
html:not([data-theme="dark"]) .status-strip.live-only,
html[data-theme="light"] .holders-engine-strip.live-only,
html:not([data-theme="dark"]) .holders-engine-strip.live-only,
html[data-theme="light"] .xaut-engine-strip.live-only,
html:not([data-theme="dark"]) .xaut-engine-strip.live-only{
  background:rgba(34,197,94,.09) !important;
  border-color:rgba(16,185,129,.22) !important;
}
@media(max-width:720px){
  .status-strip.live-only,
  .status-strip.compact.live-only,
  .holders-engine-strip.live-only,
  .xaut-engine-strip.live-only,
  .live-update-badge.live-only{
    max-width:100% !important;
    flex-wrap:wrap !important;
  }
}

.heatmap-legend-grid .legend-card.supportive{
  background:linear-gradient(135deg,rgba(107,207,152,.24),rgba(107,207,152,.08)) !important;
  border-color:rgba(107,207,152,.42) !important;
}
.heatmap-legend-grid .legend-card.supportive strong{color:#16a060 !important;}
.heatmap-legend-grid .legend-card.mixed{
  background:linear-gradient(135deg,rgba(242,184,91,.28),rgba(242,184,91,.09)) !important;
  border-color:rgba(242,184,91,.46) !important;
}
.heatmap-legend-grid .legend-card.mixed strong{color:#b97708 !important;}
.heatmap-legend-grid .legend-card.pressure{
  background:linear-gradient(135deg,rgba(255,123,123,.24),rgba(255,123,123,.08)) !important;
  border-color:rgba(255,123,123,.44) !important;
}
.heatmap-legend-grid .legend-card.pressure strong{color:#dc2626 !important;}
html[data-theme="dark"] .heatmap-legend-grid .legend-card.supportive strong{color:#6bcf98 !important;}
html[data-theme="dark"] .heatmap-legend-grid .legend-card.mixed strong{color:#f2b85b !important;}
html[data-theme="dark"] .heatmap-legend-grid .legend-card.pressure strong{color:#ff7b7b !important;}

/* V33.10 — Professional XAUt reserve timeline chart */
.xaut-chart-card{
  overflow:hidden;
}
.xaut-bar-chart{
  display:block;
  min-height:auto;
  padding:0;
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.01));
  border-radius:22px;
}
.xaut-pro-chart{
  display:grid;
  gap:18px;
}
.xaut-chart-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.xaut-chart-kpis>div{
  border:1px solid rgba(214,174,88,.18);
  background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025));
  border-radius:18px;
  padding:14px 15px;
  min-width:0;
}
.xaut-chart-kpis span,
.xaut-chart-kpis small{
  display:block;
  color:var(--muted);
  line-height:1.25;
}
.xaut-chart-kpis span{
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.11em;
  font-weight:900;
}
.xaut-chart-kpis strong{
  display:block;
  margin:6px 0 4px;
  color:var(--text);
  font-size:1.15rem;
  line-height:1.15;
}
.xaut-svg-scroll{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:4px 0 2px;
  scrollbar-width:thin;
}
.xaut-reserve-svg{
  width:100%;
  min-width:760px;
  height:auto;
  display:block;
}
.xaut-chart-bg{
  fill:rgba(255,255,255,.035);
  stroke:rgba(214,174,88,.16);
}
.xaut-grid-line line{
  stroke:rgba(144,160,185,.18);
  stroke-width:1;
}
.xaut-grid-line text{
  fill:var(--muted);
  font-size:13px;
  font-weight:800;
}
.xaut-area{
  fill:url(#xautReserveArea);
}
.xaut-line{
  fill:none;
  stroke:url(#xautReserveLine);
  stroke-width:5;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 8px 18px rgba(214,155,36,.22));
}
.xaut-point line{
  stroke:rgba(144,160,185,.14);
  stroke-dasharray:4 9;
}
.xaut-point circle{
  fill:#fff8e6;
  stroke:#d49a22;
  stroke-width:4;
  filter:drop-shadow(0 8px 16px rgba(214,155,36,.24));
}
.xaut-point[data-estimate="true"] circle{
  fill:#0fbf73;
  stroke:#c6f6d5;
}
.xaut-point-value{
  fill:var(--text);
  font-size:20px;
  font-weight:950;
}
.xaut-point-label{
  fill:var(--text);
  font-size:13px;
  font-weight:950;
}
.xaut-point-date{
  fill:var(--muted);
  font-size:12px;
  font-weight:700;
}
.xaut-chart-caption{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.92rem;
}
.xaut-chart-caption strong{
  color:var(--text);
}
.xaut-chart-caption code{
  font-family:inherit;
  background:rgba(214,174,88,.12);
  border:1px solid rgba(214,174,88,.18);
  border-radius:8px;
  padding:1px 6px;
}
.xaut-chart-empty{
  padding:28px;
  border-radius:18px;
  border:1px dashed rgba(214,174,88,.3);
  color:var(--muted);
  text-align:center;
}
html[data-theme="light"] .xaut-chart-kpis>div,
html:not([data-theme="dark"]) .xaut-chart-kpis>div{
  background:linear-gradient(145deg,#fff,#f7fafc);
  border-color:#e5e7eb;
  box-shadow:0 16px 38px rgba(15,23,42,.06);
}
html[data-theme="light"] .xaut-chart-bg,
html:not([data-theme="dark"]) .xaut-chart-bg{
  fill:#fff;
  stroke:#e5e7eb;
}
html[data-theme="light"] .xaut-grid-line line,
html:not([data-theme="dark"]) .xaut-grid-line line{
  stroke:#e5e7eb;
}
html[data-theme="light"] .xaut-point circle,
html:not([data-theme="dark"]) .xaut-point circle{
  fill:#fffdf6;
}
@media (max-width:900px){
  .xaut-chart-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:620px){
  .xaut-chart-card{padding:18px;}
  .xaut-chart-kpis{grid-template-columns:1fr;}
  .xaut-reserve-svg{min-width:680px;}
  .xaut-chart-caption{font-size:.82rem;}
}

/* v33.12 XAUt latest-developments cleanup: remove accidental parent box in light mode and make cards readable. */
html[data-theme="light"] .xaut-news-list,
html:not([data-theme="dark"]) .xaut-news-list{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}
html[data-theme="light"] .xaut-news-list article,
html:not([data-theme="dark"]) .xaut-news-list article{
  background:linear-gradient(180deg,#ffffff,#f7f9fc)!important;
  border:1px solid rgba(17,24,39,.10)!important;
  box-shadow:0 12px 30px rgba(15,23,42,.07)!important;
  color:#111827!important;
}
html[data-theme="light"] .xaut-news-list time,
html:not([data-theme="dark"]) .xaut-news-list time{
  color:#b87405!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-theme="light"] .xaut-news-list h3,
html:not([data-theme="dark"]) .xaut-news-list h3{
  color:#111827!important;
}
html[data-theme="light"] .xaut-news-list p,
html:not([data-theme="dark"]) .xaut-news-list p{
  color:#334155!important;
}
html[data-theme="light"] .xaut-news-list :is(strong,b),
html:not([data-theme="dark"]) .xaut-news-list :is(strong,b){
  color:#111827!important;
}

/* V33.13 bullion calculator light-mode polish */
html[data-theme="light"] body.bullion-page,
html:not([data-theme="dark"]) body.bullion-page{
  background:linear-gradient(180deg,#f7f9fc 0%,#eef2f7 100%)!important;
  color:#0f172a!important;
}
html[data-theme="light"] .bullion-page .agau-page,
html:not([data-theme="dark"]) .bullion-page .agau-page{
  color:#0f172a!important;
}
html[data-theme="light"] .bullion-page .agau-hero-main,
html:not([data-theme="dark"]) .bullion-page .agau-hero-main{
  background:linear-gradient(135deg,#ffffff 0%,#fbf7ed 54%,#eef3f9 100%)!important;
  color:#0f172a!important;
  border-color:rgba(15,23,42,.10)!important;
  box-shadow:0 22px 60px rgba(15,23,42,.10)!important;
}
html[data-theme="light"] .bullion-page .agau-hero-main::after,
html:not([data-theme="dark"]) .bullion-page .agau-hero-main::after{
  background:radial-gradient(circle,rgba(216,154,33,.22),transparent 62%)!important;
}
html[data-theme="light"] .bullion-page .agau-hero-main h1,
html:not([data-theme="dark"]) .bullion-page .agau-hero-main h1,
html[data-theme="light"] .bullion-page h1,
html:not([data-theme="dark"]) .bullion-page h1{
  color:#111827!important;
}
html[data-theme="light"] .bullion-page .agau-hero p,
html:not([data-theme="dark"]) .bullion-page .agau-hero p,
html[data-theme="light"] .bullion-page .agau-card-title p,
html:not([data-theme="dark"]) .bullion-page .agau-card-title p,
html[data-theme="light"] .bullion-page .agau-result-sub,
html:not([data-theme="dark"]) .bullion-page .agau-result-sub,
html[data-theme="light"] .bullion-page .agau-status,
html:not([data-theme="dark"]) .bullion-page .agau-status{
  color:#475569!important;
}
html[data-theme="light"] .bullion-page .agau-spot-card,
html:not([data-theme="dark"]) .bullion-page .agau-spot-card,
html[data-theme="light"] .bullion-page .agau-card,
html:not([data-theme="dark"]) .bullion-page .agau-card{
  background:rgba(255,255,255,.94)!important;
  color:#0f172a!important;
  border-color:rgba(15,23,42,.12)!important;
  box-shadow:0 18px 48px rgba(15,23,42,.08)!important;
}
html[data-theme="light"] .bullion-page .agau-card h2,
html:not([data-theme="dark"]) .bullion-page .agau-card h2,
html[data-theme="light"] .bullion-page .agau-spot-card h2,
html:not([data-theme="dark"]) .bullion-page .agau-spot-card h2,
html[data-theme="light"] .bullion-page .agau-field label,
html:not([data-theme="dark"]) .bullion-page .agau-field label{
  color:#0f172a!important;
}
html[data-theme="light"] .bullion-page .agau-spot-row,
html:not([data-theme="dark"]) .bullion-page .agau-spot-row,
html[data-theme="light"] .bullion-page .agau-result-tile,
html:not([data-theme="dark"]) .bullion-page .agau-result-tile{
  background:#f8fafc!important;
  border-color:rgba(15,23,42,.10)!important;
  color:#0f172a!important;
}
html[data-theme="light"] .bullion-page .agau-spot-label,
html:not([data-theme="dark"]) .bullion-page .agau-spot-label,
html[data-theme="light"] .bullion-page .agau-result-label,
html:not([data-theme="dark"]) .bullion-page .agau-result-label{
  color:#64748b!important;
}
html[data-theme="light"] .bullion-page .agau-presets,
html:not([data-theme="dark"]) .bullion-page .agau-presets{
  gap:10px!important;
}
html[data-theme="light"] .bullion-page .agau-chip,
html:not([data-theme="dark"]) .bullion-page .agau-chip{
  color:#334155!important;
  background:#f8fafc!important;
  border:1px solid rgba(15,23,42,.12)!important;
  box-shadow:0 1px 0 rgba(15,23,42,.03)!important;
}
html[data-theme="light"] .bullion-page .agau-chip:hover,
html:not([data-theme="dark"]) .bullion-page .agau-chip:hover,
html[data-theme="light"] .bullion-page .agau-chip.active,
html:not([data-theme="dark"]) .bullion-page .agau-chip.active{
  color:#111827!important;
  background:linear-gradient(135deg,#f8d98b,#d99a24)!important;
  border-color:rgba(191,126,14,.36)!important;
}
html[data-theme="light"] .bullion-page .agau-fine-toggle,
html:not([data-theme="dark"]) .bullion-page .agau-fine-toggle{
  background:linear-gradient(135deg,#fff 0%,#f7f9fc 100%)!important;
  border:1px solid rgba(15,23,42,.14)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;
}
html[data-theme="light"] .bullion-page .agau-fine-toggle span:first-child,
html:not([data-theme="dark"]) .bullion-page .agau-fine-toggle span:first-child{
  color:#334155!important;
}
html[data-theme="light"] .bullion-page .agau-fine-toggle span:last-child,
html:not([data-theme="dark"]) .bullion-page .agau-fine-toggle span:last-child{
  color:#64748b!important;
}
html[data-theme="light"] .bullion-page .agau-switch,
html:not([data-theme="dark"]) .bullion-page .agau-switch{
  width:68px!important;
  height:38px!important;
}
html[data-theme="light"] .bullion-page .agau-slider,
html:not([data-theme="dark"]) .bullion-page .agau-slider{
  background:#e5eaf1!important;
  border:1px solid rgba(15,23,42,.18)!important;
  box-shadow:inset 0 2px 6px rgba(15,23,42,.08),0 8px 18px rgba(15,23,42,.07)!important;
}
html[data-theme="light"] .bullion-page .agau-slider::before,
html:not([data-theme="dark"]) .bullion-page .agau-slider::before{
  width:30px!important;
  height:30px!important;
  left:3px!important;
  top:3px!important;
  background:#fff!important;
  border:1px solid rgba(15,23,42,.08)!important;
  box-shadow:0 5px 14px rgba(15,23,42,.18)!important;
}
html[data-theme="light"] .bullion-page .agau-switch input:checked + .agau-slider,
html:not([data-theme="dark"]) .bullion-page .agau-switch input:checked + .agau-slider{
  background:linear-gradient(135deg,#f6d991,#d99a24)!important;
  border-color:rgba(191,126,14,.45)!important;
}
html[data-theme="light"] .bullion-page .agau-switch input:checked + .agau-slider::before,
html:not([data-theme="dark"]) .bullion-page .agau-switch input:checked + .agau-slider::before{
  transform:translateX(30px)!important;
  background:#fff!important;
}
html[data-theme="light"] .bullion-page .agau-help,
html:not([data-theme="dark"]) .bullion-page .agau-help{
  color:#475569!important;
}
html[data-theme="light"] .bullion-page .agau-result-main,
html:not([data-theme="dark"]) .bullion-page .agau-result-main{
  background:linear-gradient(145deg,#fff8e8,#ffffff 68%)!important;
  border-color:rgba(216,154,33,.24)!important;
  color:#0f172a!important;
}
html[data-theme="light"] .bullion-page .agau-note,
html:not([data-theme="dark"]) .bullion-page .agau-note{
  color:#334155!important;
  background:#f8fafc!important;
  border-color:rgba(15,23,42,.12)!important;
}

/* V33.14 bullion calculator spot panel and common-size refinements */
.bullion-page .agau-spot-grid-enhanced{
  gap:12px;
}
.bullion-page .agau-spot-row-stack{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  row-gap:7px;
}
.bullion-page .agau-spot-row-stack .agau-spot-subprice{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:8px;
  border-top:1px solid rgba(148,163,184,.18);
  color:var(--muted);
  font-size:.86rem;
}
.bullion-page .agau-spot-row-stack .agau-spot-subprice strong{
  color:var(--text);
  font-weight:850;
}
.bullion-page .agau-spot-input-wrap{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 13px;
  background:rgba(255,255,255,.035);
}
.bullion-page .agau-spot-input-wrap label{
  display:block;
  margin:0 0 8px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:850;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.bullion-page .agau-spot-input-wrap input{
  width:100%;
  min-height:44px;
  border-radius:13px;
  padding:10px 12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.055);
  color:var(--text);
  font:inherit;
  outline:none;
}
.bullion-page .agau-spot-input-wrap input:focus{
  border-color:rgba(216,154,33,.55);
  box-shadow:0 0 0 4px rgba(216,154,33,.10);
}
.bullion-page .agau-spot-input-wrap span{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:.78rem;
  line-height:1.35;
}
.bullion-page .agau-presets{
  display:grid !important;
  gap:10px !important;
}
.bullion-page .agau-preset-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.bullion-page .agau-preset-row-coins{
  margin-top:2px;
  padding-top:10px;
  border-top:1px solid rgba(148,163,184,.18);
}
.bullion-page .agau-preset-row-coins .agau-chip{
  font-size:.8rem;
}
html[data-theme="light"] .bullion-page .agau-spot-row-stack .agau-spot-subprice,
html:not([data-theme="dark"]) .bullion-page .agau-spot-row-stack .agau-spot-subprice{
  border-top-color:rgba(15,23,42,.10)!important;
  color:#64748b!important;
}
html[data-theme="light"] .bullion-page .agau-spot-row-stack .agau-spot-subprice strong,
html:not([data-theme="dark"]) .bullion-page .agau-spot-row-stack .agau-spot-subprice strong{
  color:#0f172a!important;
}
html[data-theme="light"] .bullion-page .agau-spot-input-wrap,
html:not([data-theme="dark"]) .bullion-page .agau-spot-input-wrap{
  background:#f8fafc!important;
  border-color:rgba(15,23,42,.10)!important;
  color:#0f172a!important;
}
html[data-theme="light"] .bullion-page .agau-spot-input-wrap label,
html:not([data-theme="dark"]) .bullion-page .agau-spot-input-wrap label{
  color:#475569!important;
}
html[data-theme="light"] .bullion-page .agau-spot-input-wrap span,
html:not([data-theme="dark"]) .bullion-page .agau-spot-input-wrap span{
  color:#64748b!important;
}
html[data-theme="light"] .bullion-page .agau-spot-input-wrap input,
html:not([data-theme="dark"]) .bullion-page .agau-spot-input-wrap input{
  background:#fff!important;
  color:#111827!important;
  border-color:rgba(15,23,42,.14)!important;
}
html[data-theme="light"] .bullion-page .agau-preset-row-coins,
html:not([data-theme="dark"]) .bullion-page .agau-preset-row-coins{
  border-top-color:rgba(15,23,42,.10)!important;
}
@media (max-width: 760px){
  .bullion-page .agau-spot-row-stack{grid-template-columns:1fr;}
  .bullion-page .agau-spot-row-stack .agau-spot-price{justify-self:start;}
  .bullion-page .agau-preset-row{gap:7px;}
  .bullion-page .agau-chip{padding:8px 10px!important;}
}

/* V33.15 Bullion: prominent price-being-asked input */
.bullion-page .agau-spot-input-feature{
  margin-top:4px;
  padding:16px!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(216,154,33,.12),rgba(255,255,255,.045))!important;
  border:1px solid rgba(216,154,33,.28)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.16)!important;
}
.bullion-page .agau-spot-input-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
.bullion-page .agau-spot-input-feature label{margin:0!important;color:var(--agau-gold)!important;font-size:.82rem!important;}
.bullion-page .agau-spot-input-currency{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 9px;border-radius:999px;background:rgba(216,154,33,.14);border:1px solid rgba(216,154,33,.25);color:var(--agau-gold);font-size:.76rem;font-weight:900;letter-spacing:.04em;}
.bullion-page .agau-price-input-control{position:relative;display:flex;align-items:center;}
.bullion-page .agau-price-currency-symbol{position:absolute;left:14px;z-index:2;color:var(--agau-text);font-weight:950;font-size:1rem;pointer-events:none;}
.bullion-page .agau-price-input-control input{min-height:54px!important;padding-left:40px!important;font-size:1.08rem!important;font-weight:850;border-width:2px!important;}
html[data-theme="light"] .bullion-page .agau-spot-input-feature,html:not([data-theme="dark"]) .bullion-page .agau-spot-input-feature{background:linear-gradient(145deg,#fff8ea,#ffffff)!important;border-color:rgba(190,123,7,.28)!important;box-shadow:0 18px 42px rgba(15,23,42,.10)!important;}
html[data-theme="light"] .bullion-page .agau-spot-input-feature label,html:not([data-theme="dark"]) .bullion-page .agau-spot-input-feature label{color:#9a690f!important;}
html[data-theme="light"] .bullion-page .agau-spot-input-currency,html:not([data-theme="dark"]) .bullion-page .agau-spot-input-currency{background:#fff1cf!important;border-color:rgba(190,123,7,.28)!important;color:#7c4a03!important;}
html[data-theme="light"] .bullion-page .agau-price-currency-symbol,html:not([data-theme="dark"]) .bullion-page .agau-price-currency-symbol{color:#111827!important;}
html[data-theme="light"] .bullion-page .agau-price-input-control input,html:not([data-theme="dark"]) .bullion-page .agau-price-input-control input{background:#ffffff!important;border-color:rgba(190,123,7,.28)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 0 4px rgba(216,154,33,.08)!important;}
@media(max-width:760px){.bullion-page .agau-spot-input-feature{padding:14px!important}.bullion-page .agau-price-input-control input{min-height:52px!important}}

/* ==========================================================
   V33.17 Daily Outlook homepage module
   ========================================================== */
.daily-outlook-section{margin-top:clamp(1.2rem,2vw,2.4rem)}
.daily-outlook-card{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:32px;padding:clamp(1.25rem,3vw,2rem);background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,250,252,.90));box-shadow:0 24px 70px rgba(15,23,42,.08)}
.daily-outlook-card::before{content:"";position:absolute;inset:auto -12% -42% 45%;height:70%;background:radial-gradient(circle at 50% 50%,rgba(212,154,45,.22),transparent 68%);pointer-events:none}
.daily-outlook-head{position:relative;z-index:1;display:flex;gap:1.5rem;align-items:flex-start;justify-content:space-between;margin-bottom:1.15rem}
.daily-outlook-head h2{margin:.2rem 0 .25rem;font-size:clamp(2rem,4vw,4.2rem);letter-spacing:-.06em;line-height:.94;color:var(--text)}
.daily-outlook-subtitle{margin:0;color:var(--muted);max-width:780px;font-size:1.05rem;line-height:1.6}
.daily-outlook-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem}
.daily-outlook-mini{border:1px solid var(--border);border-radius:22px;padding:1rem;background:rgba(255,255,255,.76);box-shadow:0 14px 34px rgba(15,23,42,.05)}
.daily-outlook-mini span{display:block;margin-bottom:.5rem;text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;font-weight:900;color:var(--gold-700)}
.daily-outlook-mini p{margin:0;color:var(--text);font-weight:650;line-height:1.5}
.daily-outlook-footer{position:relative;z-index:1;display:flex;gap:1rem;align-items:center;justify-content:space-between;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border)}
.daily-outlook-footer p{margin:0;color:var(--muted);font-size:.92rem;line-height:1.45}
html[data-theme="dark"] .daily-outlook-card{background:linear-gradient(135deg,rgba(17,25,37,.96),rgba(8,13,20,.94));box-shadow:0 28px 80px rgba(0,0,0,.35)}
html[data-theme="dark"] .daily-outlook-mini{background:rgba(17,25,37,.72)}
@media (max-width:980px){.daily-outlook-head{flex-direction:column}.daily-outlook-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-outlook-footer{flex-direction:column;align-items:flex-start}}
@media (max-width:620px){.daily-outlook-card{border-radius:24px;padding:1rem}.daily-outlook-grid{grid-template-columns:1fr}.daily-outlook-head h2{font-size:2.2rem}.daily-outlook-mini{border-radius:18px}}


/* V34.0 visitor polish: streamlined navigation, clearer homepage, professional public states */
.home-visitor-hero .hero-lede{max-width:760px;}
.daily-read-panel .panel-topline{align-items:center;}
.home-change-section .section-title{margin-bottom:18px;}
.daily-brief-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.brief-list-card .compact-list{margin:12px 0 0;padding-left:18px;}
.brief-list-card .compact-list li{margin-bottom:10px;line-height:1.45;}
.home-heatmap-callout .heatmap-mini-card h3{margin-top:8px;}
.compact-features article .inline-link{display:inline-block;margin-top:12px;}
html[data-theme="light"] .brief-list-card .compact-list li,html:not([data-theme="dark"]) .brief-list-card .compact-list li{color:#334155;}
html[data-theme="dark"] .brief-list-card .compact-list li{color:rgba(232,238,246,.82);}
.nav a{white-space:nowrap;}
.site-header .nav{gap:10px;}
.agau-footer-links{align-content:flex-start;}
@media (max-width:1100px){.daily-brief-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:700px){.daily-brief-grid{grid-template-columns:1fr;}.home-visitor-hero .hero-actions{align-items:stretch;}.home-visitor-hero .button{justify-content:center;}}
