@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #17251f;
  --muted: #768079;
  --line: #e8e8e1;
  --green: #153f35;
  --green-2: #21594a;
  --gold: #b48a43;
  --gold-light: #e9d7af;
  --gold-pale: #f5efe2;
  --up: #c84242;
  --down: #16815b;
  --shadow: 0 18px 55px rgba(24, 48, 39, .07);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: "DM Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.site-header { height: 76px; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(21,63,53,.08); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--green); }
.brand-mark svg { width: 27px; fill: none; stroke: var(--gold-light); stroke-width: 1.5; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 19px; letter-spacing: 2px; }
.brand small { font-size: 8px; letter-spacing: 2.5px; color: var(--gold); margin-top: 5px; font-weight: 700; }
.main-nav { display: flex; gap: 28px; font-size: 14px; color: #59665f; }
.main-nav a { transition: color .2s; }
.main-nav a:hover { color: var(--gold); }
.main-nav a.active { color: var(--green); font-weight: 700; }
.silver-page .main-nav a.active { color: #526d7a; }
.mobile-page-tabs { display: none; }
.refresh-btn { border: 1px solid #dfe3dd; color: var(--green); background: #fff; height: 38px; padding: 0 15px; border-radius: 10px; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; transition: .2s; }
.refresh-btn:hover { border-color: var(--gold); color: var(--gold); }
.refresh-btn svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.refresh-btn.loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero { position: relative; overflow: hidden; background: var(--green); color: #fff; padding: 66px 0 72px; }
.hero:before { content: ""; position: absolute; inset: 0; opacity: .055; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to right, #000, transparent 80%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.glow-one { width: 500px; height: 500px; right: -130px; top: -280px; background: radial-gradient(circle, rgba(197,161,91,.22), transparent 68%); }
.glow-two { width: 400px; height: 400px; left: 28%; bottom: -360px; background: radial-gradient(circle, rgba(197,161,91,.13), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #e1cfaa; font-size: 12px; letter-spacing: 1.8px; border: 1px solid rgba(225,207,170,.25); padding: 6px 12px; border-radius: 30px; }
.pulse-dot { width: 6px; height: 6px; background: #d8bb7f; border-radius: 50%; box-shadow: 0 0 0 5px rgba(216,187,127,.1); }
.hero h1 { font-size: clamp(40px, 4.2vw, 59px); line-height: 1.22; letter-spacing: -1px; margin: 23px 0 20px; font-weight: 700; }
.hero h1 em { font-style: normal; color: #e5c98e; }
.hero-copy > p { color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.9; }
.hero-notes { display: flex; gap: 22px; margin-top: 27px; font-size: 12px; color: rgba(255,255,255,.62); }
.hero-notes span { display: flex; align-items: center; gap: 6px; }
.hero-notes svg { width: 15px; fill: none; stroke: #d8bb7f; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.quote-card { color: var(--ink); background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.35); border-radius: 24px; padding: 25px 28px 18px; box-shadow: 0 28px 70px rgba(0,0,0,.2); }
.quote-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.instrument { display: flex; align-items: center; gap: 12px; }
.instrument-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #f4e6c7, #d5b779); color: #60471f; font-family: Georgia, serif; font-size: 18px; font-weight: 700; border: 1px solid #ceb073; }
.instrument div { display: flex; flex-direction: column; }
.instrument strong { font-size: 14px; }
.instrument small { font-size: 10px; color: var(--muted); margin-top: 2px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--down); background: #ecf7f1; border-radius: 20px; padding: 5px 10px; white-space: nowrap; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.loading { color: #9a793d; background: #f8f1e4; }
.status-badge.cached, .status-badge.error { color: #8b6b36; background: #f8f1e4; }
.unit-tabs { display: inline-flex; background: #f3f4f0; border-radius: 9px; padding: 3px; margin-top: 21px; }
.unit-tabs button { border: 0; background: transparent; color: var(--muted); font-size: 11px; border-radius: 7px; padding: 6px 12px; }
.unit-tabs button.active { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,.06); font-weight: 600; }
.main-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 17px; }
.main-price { font-size: clamp(40px, 4.2vw, 54px); font-weight: 700; letter-spacing: -2px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.currency-symbol { font-size: .52em; font-weight: 500; vertical-align: top; display: inline-block; margin: 7px 5px 0 0; color: #52615a; letter-spacing: 0; }
.price-unit { font-size: 11px; color: var(--muted); margin-top: 8px; }
.change-box { text-align: right; display: flex; flex-direction: column; padding-bottom: 5px; }
.change-box strong { font-size: 19px; font-weight: 700; }
.change-box span { font-size: 10px; color: var(--muted); }
.change-box.up strong { color: var(--up); }
.change-box.down strong { color: var(--down); }
.change-box.neutral strong { color: var(--muted); }
.quote-meta { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 15px 0; font-size: 10px; color: var(--muted); }
.quote-meta > span:first-child { display: flex; align-items: center; gap: 6px; }
.live-dot { width: 5px; height: 5px; background: var(--down); border-radius: 50%; }
.market-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 0 13px; }
.market-stats div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.market-stats span { font-size: 9px; color: var(--muted); white-space: nowrap; }
.market-stats strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.quote-disclaimer { font-size: 9px; color: #9a9f9b; text-align: center; border-top: 1px dashed #ecece6; padding-top: 11px; }

.purity-section { margin-top: -25px; position: relative; z-index: 2; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading.compact { background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; padding: 22px 25px 0; margin-bottom: 0; }
.section-heading.compact > p { display: none; }
.section-kicker { display: block; color: var(--gold); font-size: 9px; letter-spacing: 2px; font-weight: 700; margin-bottom: 4px; }
.section-heading h2, .panel-header h2 { font-size: 22px; letter-spacing: -.5px; }
.section-heading > p, .panel-header p { color: var(--muted); font-size: 12px; }
.purity-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.purity-card { padding: 24px 26px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 15px; position: relative; }
.purity-card + .purity-card { border-left: 1px solid var(--line); }
.purity-card > div:first-child { display: flex; flex-direction: column; }
.purity-card > div:first-child > strong { font-size: 24px; line-height: 1.2; }
.purity-tag { color: var(--muted); font-size: 11px; }
.purity-value { font-size: 23px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.purity-value small { color: var(--muted); font-size: 10px; font-weight: 400; }
.purity-card p { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.purity-card.featured { background: linear-gradient(115deg, #fff, #fbf7ed); }
.purity-card.featured:after { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 3px; background: var(--gold); border-radius: 0 3px 3px 0; }

.section { margin-top: 52px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chart-panel { padding: 27px 29px 18px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-header p { margin-top: 5px; }
.range-tabs { display: flex; gap: 4px; background: #f3f4f0; padding: 4px; border-radius: 10px; }
.range-tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 7px; font-size: 11px; padding: 7px 15px; }
.range-tabs button.active { background: var(--green); color: #fff; }
.chart-summary { display: flex; gap: 45px; margin: 23px 0 8px; }
.chart-summary div { display: flex; flex-direction: column; gap: 2px; }
.chart-summary span { font-size: 10px; color: var(--muted); }
.chart-summary strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.chart-summary strong.up { color: var(--up); }
.chart-summary strong.down { color: var(--down); }
.chart-wrap { position: relative; width: 100%; min-height: 280px; }
#priceChart { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.chart-tooltip { position: absolute; pointer-events: none; z-index: 4; background: var(--green); color: #fff; border-radius: 9px; padding: 8px 11px; box-shadow: 0 8px 25px rgba(0,0,0,.15); transform: translate(-50%, -115%); white-space: nowrap; }
.chart-tooltip span { display: block; font-size: 9px; color: rgba(255,255,255,.65); }
.chart-tooltip strong { display: block; font-size: 12px; }
.chart-footnote { border-top: 1px solid var(--line); padding-top: 13px; display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 9px; }
.chart-footnote span:first-child { display: flex; align-items: center; gap: 6px; }
.legend-line { width: 16px; height: 2px; background: var(--gold); }

.standalone-hero { position: relative; overflow: hidden; padding: 48px 0 70px; color: #fff; background: #293e47; }
.standalone-hero:after { content: "Ag"; position: absolute; right: 8%; top: -70px; color: rgba(255,255,255,.035); font-family: Georgia, serif; font-size: 260px; line-height: 1; pointer-events: none; }
.standalone-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.standalone-hero h1 { margin: 18px 0 10px; font-size: clamp(34px, 4vw, 49px); line-height: 1.25; }
.standalone-hero h1 em { color: #d5dee2; font-style: normal; }
.standalone-hero p { color: rgba(255,255,255,.62); font-size: 13px; }
.silver-page-hero .eyebrow { color: #d5dee2; border-color: rgba(213,222,226,.25); }
.silver-page-hero .pulse-dot { background: #d5dee2; box-shadow: 0 0 0 5px rgba(213,222,226,.1); }
.page-switch-link { flex: none; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 13px 17px; color: #fff; font-size: 12px; transition: .2s; }
.page-switch-link:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); }
.page-switch-link svg, .cross-page-banner a svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.silver-brand-mark { background: #526d7a; }
.silver-standalone { position: relative; z-index: 2; margin-top: -34px; }
.silver-page-heading { align-items: center; }
.silver-page-heading .status-badge { margin-bottom: 5px; }
.silver-quote-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 24px; color: #9a9f9b; font-size: 9px; }
.silver-info-section { margin-bottom: 30px; }
.cross-page-banner { margin-bottom: 52px; padding: 26px 30px; border-radius: 18px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.cross-page-banner > div > span { color: #d8bb7f; font-size: 8px; letter-spacing: 2px; }
.cross-page-banner h2 { margin: 3px 0; font-size: 20px; }
.cross-page-banner p { color: rgba(255,255,255,.55); font-size: 10px; }
.cross-page-banner a { flex: none; display: flex; align-items: center; gap: 9px; color: #f1d9a7; border: 1px solid rgba(241,217,167,.35); border-radius: 10px; padding: 10px 14px; font-size: 11px; }

.domestic-page .main-nav a.active { color: #8b6535; }
.domestic-page .mobile-page-tabs a.active { background: #8b6535; }
.domestic-brand-mark { background: #8b6535; }
.domestic-page-hero { background: #4a3828; }
.domestic-page-hero:after { content: "CN"; }
.domestic-page-hero .eyebrow { color: #ead4b0; border-color: rgba(234,212,176,.25); }
.domestic-hero-links { display: flex; gap: 10px; flex-wrap: wrap; }
.domestic-overview { position: relative; z-index: 2; margin-top: -34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.domestic-overview-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px 16px; }
.domestic-overview-top h2 { font-size: 21px; }
.domestic-status-wrap { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; }
.domestic-status-wrap small { color: var(--muted); font-size: 9px; }
.domestic-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.domestic-summary-grid article { padding: 21px 26px; display: flex; flex-direction: column; }
.domestic-summary-grid article + article { border-left: 1px solid var(--line); }
.domestic-summary-grid span { color: var(--muted); font-size: 10px; }
.domestic-summary-grid strong { margin: 5px 0 2px; color: #6f4c24; font-size: 28px; font-variant-numeric: tabular-nums; }
.domestic-summary-grid small { color: #9a9f9b; font-size: 9px; }
.domestic-source-line { display: flex; justify-content: space-between; gap: 15px; padding: 10px 26px; background: #faf8f4; border-top: 1px solid var(--line); color: #938572; font-size: 9px; }
.domestic-table-panel { overflow: hidden; }
.domestic-table-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 23px; border-bottom: 1px solid var(--line); }
.domestic-table-title { display: flex; flex-direction: column; }
.domestic-table-title strong { font-size: 13px; }
.domestic-table-title span { color: var(--muted); font-size: 9px; }
.domestic-search { width: 220px; display: flex; align-items: center; gap: 7px; padding: 8px 11px; background: #f7f7f3; border: 1px solid var(--line); border-radius: 9px; }
.domestic-search svg { width: 14px; flex: none; fill: none; stroke: #929a94; stroke-width: 1.6; stroke-linecap: round; }
.domestic-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.domestic-table-wrap { overflow-x: auto; }
.domestic-table { width: 100%; border-collapse: collapse; text-align: left; }
.domestic-table th { padding: 12px 23px; background: #fafaf7; color: var(--muted); font-size: 9px; font-weight: 500; white-space: nowrap; }
.domestic-table td { padding: 13px 23px; border-top: 1px solid #f0f0ea; color: #5b655f; font-size: 11px; white-space: nowrap; }
.domestic-table tbody tr:hover { background: #fcfbF8; }
.domestic-name { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.domestic-name-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: var(--gold-pale); color: #8b6535; font-size: 11px; font-weight: 700; }
.bank-name .domestic-name-icon { background: #edf2f0; color: var(--green); }
.domestic-name strong { font-size: 12px; }
.wholesale-tag { padding: 2px 5px; border-radius: 4px; background: #f1eee8; color: #8b7961; font-size: 8px; }
.domestic-price { color: #6f4c24 !important; font-size: 15px !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.domestic-price small, .domestic-table td > small { color: var(--muted); font-size: 8px; font-weight: 400; }
.domestic-time { color: var(--muted) !important; font-size: 10px !important; font-variant-numeric: tabular-nums; }
.price-na { color: #b1b6b2; }
.table-loading { padding: 35px !important; text-align: center; color: var(--muted) !important; }
.domestic-table-note { padding: 11px 23px; background: #fafaf7; border-top: 1px solid var(--line); color: #929a94; font-size: 9px; line-height: 1.7; }
.domestic-info { margin-bottom: 25px; }
.domestic-source-card { margin-bottom: 52px; padding: 23px 26px; border: 1px solid #e5ddd0; border-radius: 16px; background: #f7f2e9; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.domestic-source-card strong { font-size: 13px; }
.domestic-source-card p { margin-top: 6px; color: #817461; font-size: 10px; line-height: 1.8; }
.domestic-source-card p a { color: #8b6535; text-decoration: underline; }
.official-links { display: flex; flex-direction: column; gap: 5px; font-size: 9px; }
.official-links span { color: #9a8b75; }
.official-links a { color: #6f4c24; }

.silver-panel { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.silver-quote-panel { padding: 27px 29px; border-right: 1px solid var(--line); background: linear-gradient(135deg, #fff, #f5f7f8); }
.silver-instrument { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.silver-symbol { background: #edf0f2; color: #657580; border: 1px solid #d9dfe3; }
.silver-live { display: inline-flex; align-items: center; gap: 5px; color: var(--down); background: #ecf7f1; padding: 4px 8px; border-radius: 20px; font-size: 9px; white-space: nowrap; }
.silver-live i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.silver-price-label { margin-top: 28px; color: var(--muted); font-size: 10px; }
.silver-main-price { margin-top: 3px; color: #2c3c45; font-size: 46px; line-height: 1.2; font-weight: 700; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.silver-change { margin-top: 7px; font-size: 12px; font-weight: 600; }
.silver-change.up { color: var(--up); }
.silver-change.down { color: var(--down); }
.silver-change.neutral { color: var(--muted); }
.silver-update { margin-top: 24px; color: #9a9f9b; font-size: 9px; }
.silver-other-prices { padding: 27px 29px 22px; }
.silver-conversions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.silver-conversions > div { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fbfbfa; display: flex; flex-direction: column; }
.silver-conversions span, .silver-day-stats span { color: var(--muted); font-size: 10px; }
.silver-conversions strong { margin-top: 7px; font-size: 21px; color: #2c3c45; font-variant-numeric: tabular-nums; }
.silver-conversions small { margin-top: 5px; color: #9a9f9b; font-size: 8px; }
.silver-day-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.silver-day-stats div { display: flex; flex-direction: column; gap: 5px; }
.silver-day-stats strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.silver-price-note { margin-top: 17px; color: #9a9f9b; font-size: 9px; }
@media (max-width: 850px) {
  .silver-panel { grid-template-columns: 1fr; }
  .silver-quote-panel { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .silver-quote-panel, .silver-other-prices { padding: 21px 18px; }
  .silver-main-price { font-size: 40px; }
  .silver-conversions { grid-template-columns: 1fr; }
  .silver-day-stats { gap: 8px; }
  .silver-day-stats span { font-size: 8px; }
}

.calculator-panel { display: grid; grid-template-columns: 1.4fr .85fr; overflow: hidden; }
.calc-inputs { padding: 29px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.field input, .field select { width: 100%; border: 1px solid #dfe2dc; border-radius: 10px; color: var(--ink); background: #fff; padding: 12px 13px; outline: 0; transition: border .2s, box-shadow .2s; }
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,138,67,.1); }
.input-combo { display: grid; grid-template-columns: 1fr 105px; }
.input-combo input { border-radius: 10px 0 0 10px; }
.input-combo select { border-left: 0; border-radius: 0 10px 10px 0; background: #f7f7f3; }
.quick-weights { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quick-weights > span { color: var(--muted); font-size: 10px; margin-right: 3px; }
.quick-weights button { border: 1px solid var(--line); background: #fafaf7; color: #5d6962; padding: 5px 11px; border-radius: 7px; font-size: 10px; }
.quick-weights button:hover { color: var(--gold); border-color: var(--gold); }
.calc-output { background: var(--green); color: #fff; padding: 30px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.calc-output:after { content: "Au"; position: absolute; right: -10px; bottom: -55px; font-family: Georgia, serif; font-size: 150px; color: rgba(255,255,255,.035); }
.calc-output > span { font-size: 11px; color: #d6c49e; }
.calc-output > strong { font-size: clamp(29px, 3vw, 39px); margin: 7px 0 2px; color: #f1d9a7; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.calc-output > small { color: rgba(255,255,255,.55); font-size: 11px; }
.calc-formula { margin-top: 19px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: 9px; position: relative; z-index: 1; }

.metals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.metal-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; transition: transform .2s, box-shadow .2s; }
.metal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.metal-head { display: flex; align-items: center; gap: 10px; }
.metal-symbol { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-pale); color: #8b682c; font-family: Georgia, serif; font-weight: 700; }
.metal-head div { display: flex; flex-direction: column; }
.metal-head strong { font-size: 13px; }
.metal-head small { font-size: 9px; color: var(--muted); }
.metal-price { margin-top: 20px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.metal-price small { color: var(--muted); font-size: 10px; font-weight: 400; }
.metal-usd { color: var(--muted); font-size: 10px; margin-top: 4px; }
.skeleton { min-height: 145px; background: linear-gradient(100deg, #fff 20%, #f2f2ed 40%, #fff 60%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }

.info-section { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 55px; }
.info-card { display: flex; gap: 17px; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.45); }
.info-number { color: var(--gold); font-family: Georgia, serif; font-size: 22px; line-height: 1.3; }
.info-card h3 { font-size: 14px; margin-bottom: 7px; }
.info-card p { color: var(--muted); font-size: 11px; line-height: 1.85; }
.site-footer { background: #eceee8; border-top: 1px solid #e0e3db; padding: 30px 0; }
.footer-wrap { display: grid; grid-template-columns: 160px 1fr auto; gap: 30px; align-items: center; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { letter-spacing: 2px; }
.footer-brand span { color: var(--gold); font-size: 9px; letter-spacing: 1px; }
.footer-wrap p { color: var(--muted); font-size: 9px; line-height: 1.8; }
.footer-time { color: var(--muted); font-size: 9px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); background: #17251f; color: #fff; border-radius: 10px; padding: 10px 17px; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 10px 35px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .mobile-page-tabs { display: flex; justify-content: center; gap: 6px; padding: 9px 14px; background: #fff; border-bottom: 1px solid var(--line); }
  .mobile-page-tabs a { flex: 1; min-width: 0; padding: 7px 8px; border-radius: 8px; text-align: center; color: var(--muted); font-size: 12px; }
  .mobile-page-tabs a.active { background: var(--green); color: #fff; font-weight: 600; }
  .silver-page .mobile-page-tabs a.active { background: #526d7a; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy > p br { display: none; }
  .hero-notes { justify-content: center; }
  .quote-card { max-width: 650px; width: 100%; margin: 0 auto; }
  .metals-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-wrap { grid-template-columns: 130px 1fr; }
  .footer-time { display: none; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1160px); }
  .site-header { height: 65px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand strong { font-size: 17px; }
  .refresh-btn { padding: 0 11px; }
  .refresh-btn span { display: none; }
  .hero { padding: 42px 0 52px; }
  .standalone-hero { padding: 35px 0 56px; }
  .standalone-hero-inner { align-items: flex-start; flex-direction: column; gap: 22px; }
  .standalone-hero h1 { font-size: 34px; }
  .page-switch-link { padding: 10px 13px; }
  .silver-standalone { margin-top: -24px; }
  .silver-quote-meta { flex-direction: column; gap: 4px; }
  .cross-page-banner { align-items: flex-start; flex-direction: column; padding: 22px; }
  .domestic-overview { margin-top: -24px; }
  .domestic-overview-top { align-items: flex-start; padding: 18px; }
  .domestic-overview-top h2 { font-size: 18px; }
  .domestic-summary-grid { grid-template-columns: 1fr; }
  .domestic-summary-grid article { padding: 16px 20px; }
  .domestic-summary-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .domestic-summary-grid strong { font-size: 24px; }
  .domestic-source-line { flex-direction: column; gap: 4px; padding: 10px 18px; }
  .domestic-table-tools { align-items: stretch; flex-direction: column; gap: 12px; padding: 15px 17px; }
  .domestic-search { width: 100%; }
  .domestic-table { min-width: 620px; }
  .domestic-table th, .domestic-table td { padding-left: 17px; padding-right: 17px; }
  .domestic-table-note { padding: 11px 17px; }
  .domestic-source-card { grid-template-columns: 1fr; gap: 17px; padding: 20px; }
  .hero h1 { font-size: 39px; }
  .hero-copy > p { font-size: 13px; }
  .quote-card { padding: 20px 18px 15px; border-radius: 18px; }
  .instrument small { font-size: 9px; }
  .main-price { font-size: 42px; }
  .market-stats { grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .market-stats span { font-size: 10px; }
  .quote-meta { font-size: 9px; }
  .purity-section { margin-top: 22px; }
  .section-heading.compact { padding: 18px 18px 0; }
  .purity-grid { grid-template-columns: 1fr; }
  .purity-card + .purity-card { border-left: 0; border-top: 1px solid var(--line); }
  .purity-card { padding: 18px 20px; }
  .section { margin-top: 38px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .section-heading h2, .panel-header h2 { font-size: 20px; }
  .chart-panel { padding: 20px 14px 14px; }
  .panel-header { align-items: center; }
  .panel-header p { font-size: 10px; }
  .range-tabs button { padding: 6px 10px; }
  .chart-summary { gap: 25px; margin-left: 4px; }
  .chart-wrap { min-height: 220px; }
  .chart-footnote span:last-child { display: none; }
  .calculator-panel { grid-template-columns: 1fr; }
  .calc-inputs { padding: 22px 18px; grid-template-columns: 1fr; gap: 17px; }
  .quick-weights { grid-column: auto; }
  .calc-output { padding: 24px; }
  .info-section { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 430px) {
  .hero-notes { gap: 12px; font-size: 10px; }
  .status-badge { padding: 4px 7px; }
  .instrument-icon { width: 36px; height: 36px; }
  .instrument strong { font-size: 12px; }
  .main-price { font-size: 36px; }
  .change-box strong { font-size: 16px; }
  .metals-grid { grid-template-columns: 1fr; }
  .chart-summary { justify-content: space-between; gap: 10px; }
  .chart-summary strong { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}
