/* "View today's rate" side tab and panel, shared by desktop and mobile */
.rate-tab{position:fixed;right:0;top:50%;z-index:45;transform:translateY(-50%) rotate(180deg);writing-mode:vertical-rl;
  display:flex;align-items:center;gap:10px;padding:18px 11px;border:0;border-radius:0 16px 16px 0;cursor:pointer;
  background:var(--gold);color:var(--black);font:inherit;font-weight:800;font-size:.95rem;letter-spacing:.01em;
  box-shadow:0 10px 30px rgba(0,0,0,.35);border:2px solid var(--black);border-left:0}
.rate-tab:hover{background:var(--gold-light)}
.rate-tab-coin{width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#FFF6CF,#D4AF37 50%,#8A6510);box-shadow:0 0 0 2px var(--black);flex:none}
dialog.rate-panel{border:0;padding:0;margin:0 0 0 auto;height:100%;max-height:100%;width:min(420px,100%);max-width:100%;
  background:var(--white);color:var(--black);border-left:3px solid var(--gold);overflow:auto}
dialog.rate-panel::backdrop{background:rgba(0,0,0,.65)}
dialog.rate-panel[open]{animation:slidein .32s cubic-bezier(.2,.9,.3,1)}
@keyframes slidein{from{transform:translateX(100%)}}
.rp-head{background:var(--black);color:var(--white);padding:28px 22px 22px;position:relative;border-bottom:3px solid var(--gold)}
.rp-head h2{font-size:1.6rem;color:var(--gold-light);padding-right:44px;line-height:1.2}
.rp-head p{margin-top:6px}
.rp-head .popup-x{position:absolute;right:14px;top:18px;width:40px;height:40px;border-radius:50%;border:1.5px solid var(--gold);background:none;color:var(--white);display:grid;place-items:center;cursor:pointer}
.rp-head .popup-x svg{width:18px;height:18px}
.rp-body{padding:22px}
.rp-body form{display:grid;gap:14px}
.rp-body .btn{width:100%}
.rp-rates{display:grid;gap:10px}
.rp-rate{display:flex;align-items:baseline;gap:10px;background:var(--black);color:var(--white);border:2px solid var(--gold);border-radius:16px;padding:14px 16px}
.rp-rate .kt{color:var(--gold);font-weight:800;min-width:42px}
.rp-rate b{font-size:1.7rem;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.rp-rate small{margin-left:auto;font-weight:600}
.rp-updated{margin-top:14px;font-weight:700}
.rp-note{margin:6px 0 18px;font-size:.92rem}
.rp-none{font-weight:700;border:2px solid var(--gold);border-radius:14px;padding:14px}
@media (max-width:767px){
  .rate-tab{font-size:.8rem;padding:14px 8px;gap:8px}
  .rate-tab-coin{width:14px;height:14px}
  dialog.rate-panel{width:90%}
}
@media (prefers-reduced-motion:reduce){dialog.rate-panel[open]{animation:none}}

/* live ticker + chart */
button.rp-rate{width:100%;font:inherit;text-align:left;cursor:pointer;transition:box-shadow .2s,transform .2s}
button.rp-rate[aria-pressed=true]{box-shadow:0 0 0 3px rgba(212,175,55,.55)}
.rp-rate b{transition:color .4s}
.rp-side{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.rp-side small{margin:0}
.rp-rate .chg{font-size:.82rem;font-weight:800;font-variant-numeric:tabular-nums}
.rp-rate .chg.up{color:#1FA855}
.rp-rate .chg.down{color:#E5484D}
.rp-rate b.flash-up{animation:rfu .7s ease}
.rp-rate b.flash-down{animation:rfd .7s ease}
@keyframes rfu{from{color:#1FA855}}
@keyframes rfd{from{color:#E5484D}}
.rp-chart{margin-top:14px;border:1.5px solid var(--gold);border-radius:16px;padding:12px 12px 8px;background:linear-gradient(180deg,rgba(212,175,55,.08),rgba(212,175,55,0))}
.rp-chart-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.85rem;font-weight:700;margin-bottom:6px}
.rp-chart-head>span:first-child{display:flex;align-items:center;gap:6px}
.rp-range{font-weight:600;font-variant-numeric:tabular-nums;opacity:.8}
#rateChart{display:block;width:100%;height:130px;overflow:visible}
.rc-line{fill:none;stroke:#B8902C;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.rc-base{stroke:currentColor;stroke-opacity:.35;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.rc-dot{fill:#D4AF37;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}
.rp-chart-hint{font-size:.78rem;margin-top:4px;opacity:.75}
.rate-panel .live-dot{width:8px;height:8px;border-radius:50%;background:#1FA855;box-shadow:0 0 0 3px rgba(31,168,85,.25);animation:rpulse 1.6s ease-in-out infinite;display:inline-block}
@keyframes rpulse{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.rate-panel .live-dot,.rp-rate b{animation:none!important}}

/* 24K first and large, 22K and 18K below it */
.rp-rates{grid-template-columns:1fr 1fr}
.rp-rate[data-kt="24K"]{grid-column:1/-1;flex-wrap:wrap;padding:18px 18px 16px}
.rp-rate[data-kt="24K"] .kt{font-size:1.05rem}
.rp-rate[data-kt="24K"] b{font-size:2.3rem;line-height:1.1}
.rp-rate:not([data-kt="24K"]){flex-direction:column;align-items:flex-start;gap:2px;padding:12px 14px}
.rp-rate:not([data-kt="24K"]) b{font-size:1.35rem}
.rp-rate:not([data-kt="24K"]) .rp-side{margin-left:0;align-items:flex-start;flex-direction:row;gap:8px}
#rateResult > .btn{margin-top:18px}

/* HiGold logo watermark over the whole rate panel: one-colour gold silhouette (mask), so "Hi" and "Gold" match in both themes */
dialog.rate-panel::after{content:"";position:absolute;inset:0;z-index:20;pointer-events:none;
  background:#9C7A1C;opacity:.08;
  -webkit-mask:url("../logo.png") center/120px auto space;mask:url("../logo.png") center/120px auto space}
html[data-theme=dark] dialog.rate-panel::after{background:#D4AF37;opacity:.05}

/* live rate: no price range label */
#chartRange{display:none!important}

/* thank-you popup after a pickup request (both sites) */
dialog.thanks-pop{max-width:400px;width:calc(100% - 32px);border:0;border-radius:24px;padding:0;text-align:center;background:#fff;color:#111;box-shadow:0 30px 80px -20px rgba(0,0,0,.45)}
dialog.thanks-pop::backdrop{background:rgba(0,0,0,.55)}
.thanks-body{position:relative;padding:38px 28px 28px}
.thanks-body .popup-x{position:absolute;top:12px;right:12px;color:#111;border:1.5px solid #D4AF37;background:#fff}
.thanks-body .popup-x svg{width:18px;height:18px;stroke:currentColor}
html[data-theme=dark] .thanks-body .popup-x{color:#fff;background:transparent}
.thanks-body .tick{width:64px;height:64px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#C9A227,#F3D97A);color:#2B2008}
.thanks-body .tick svg{width:30px;height:30px}
.thanks-body h2{margin:0 0 8px;font-size:1.5rem}
.thanks-body p{margin:0 0 20px;line-height:1.55}
.thanks-body .btn{min-width:140px;justify-content:center}
html[data-theme=dark] dialog.thanks-pop{background:#17140C;color:#fff}

/* social links in the contact section (both sites) */
.social{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px}
.social-label{font-weight:700;margin-right:4px}
.social .soc{display:inline-flex;align-items:center;gap:8px;padding:9px 16px 9px 10px;border-radius:999px;font-weight:700;font-size:.92rem;text-decoration:none;color:#fff;transition:transform .15s,box-shadow .15s}
.social .soc svg{width:20px;height:20px}
.social .soc:hover{transform:translateY(-2px);box-shadow:0 8px 18px -8px rgba(0,0,0,.45)}
.social .soc-fb{background:#1877F2}
.social .soc-ig{background:linear-gradient(45deg,#F58529,#DD2A7B 50%,#8134AF 80%,#515BD4)}
body[data-site=mobile] .social{margin:14px 0 16px;justify-content:center}
body[data-site=mobile] .social-label{width:100%;text-align:center;margin:0 0 2px}

/* ticking date / time under the rate panel heading */
.rp-clock{display:flex;align-items:center;gap:8px;margin-top:8px;font-weight:600;font-size:.92rem;font-variant-numeric:tabular-nums;white-space:pre;opacity:.9}
.rp-clock .live-dot{flex:none}
