/* =====================================================================
   LIVE RATES CARD — compact "Today's Buy Prices" strip used on the
   sell/cash pages (EN + FR). Reads /api/prices via /assets/js/live-rates.js
   and links through to the full price list. Baseline figures in the HTML
   stay visible if the endpoint is unreachable.
   ===================================================================== */
.lrs { background: #fff; padding: 34px 24px; }
.lrs-wrap { max-width: 720px; margin: 0 auto; }
/* Card nested inside an existing dark price section (the silver pages) —
   no white band of its own, just spacing above the block it follows. */
.lrs-inset { margin-top: 26px; }
.lrc {
  background: linear-gradient(145deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.03) 100%),
              linear-gradient(145deg, var(--nv, #0f1b35) 0%, var(--nv2, #1a3060) 100%);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(15,27,53,.28);
  overflow: hidden;
}
.lrc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 18px 22px 12px; }
.lrc-head h2 { color: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: .3px; display: flex; align-items: center; gap: 9px; text-align: left; margin: 0; }
.lrc-head h2 span { color: var(--gd, #f0b429); }
.lrc-live { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green, #10b981); background: rgba(16,185,129,.14); border-radius: 50px; padding: 4px 10px; white-space: nowrap; }
.lrc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green, #10b981); animation: lrcPulse 1.8s infinite; }
@keyframes lrcPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.lrc-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lrc table { width: 100%; border-collapse: collapse; }
.lrc th { text-align: right; font-size: .62rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.7); padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.16); }
.lrc th:first-child { text-align: left; padding-left: 22px; }
.lrc th:last-child { padding-right: 22px; }
.lrc td { padding: 10px 12px; font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.lrc td.lrc-item { color: #fff; font-weight: 700; padding-left: 22px; }
.lrc td.lrc-price { text-align: right; color: #c3d2e6; font-weight: 800; white-space: nowrap; }
.lrc td.lrc-price.lrc-best { color: var(--gl, #fcd34d); }
.lrc td:last-child { padding-right: 22px; }
.lrc-silver { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 22px; background: rgba(240,180,41,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.lrc-silver span { color: rgba(255,255,255,.72); font-size: .8rem; font-weight: 600; }
.lrc-silver b { color: #fff; font-weight: 800; }
.lrc-foot { padding: 14px 22px 18px; }
.lrc-note { color: rgba(255,255,255,.6); font-size: .74rem; margin: 0 0 12px; text-align: left; }
.lrc-note strong { color: rgba(255,255,255,.8); font-weight: 700; }
.lrc-bridge { color: rgba(255,255,255,.66); font-size: .74rem; margin: 0 0 14px; text-align: left; }
.lrc-bridge a { color: var(--gl, #fcd34d); font-weight: 700; text-decoration: underline; }
.lrc-upd { color: rgba(255,255,255,.58); font-size: .72rem; font-weight: 600; margin: 0 0 10px; }
.lrc-upd b { color: rgba(255,255,255,.8); font-weight: 700; }
.lrc-cta { display: inline-flex; align-items: center; gap: 7px; background: var(--gd, #f0b429); color: var(--nv, #0f1b35); font-weight: 800; font-size: .86rem; padding: 11px 20px; border-radius: 9px; }
.lrc-cta:hover { background: var(--gl, #fcd34d); }
@media (max-width: 600px) {
  .lrs { padding: 26px 14px; }
  .lrc-head { padding: 16px 16px 10px; }
  .lrc table { min-width: 340px; }
  .lrc th, .lrc td { padding: 9px 7px; font-size: .76rem; }
  .lrc th { font-size: .56rem; letter-spacing: .5px; }
  .lrc-silver { gap: 4px 10px; }
  .lrc-silver span { font-size: .76rem; }
  .lrc th:first-child, .lrc td.lrc-item { padding-left: 16px; }
  .lrc th:last-child, .lrc td:last-child { padding-right: 16px; }
  .lrc-silver, .lrc-foot { padding-left: 16px; padding-right: 16px; }
  .lrc-cta { width: 100%; justify-content: center; }
}
