/* ============================================================================
   SVARHI-COMPATIBLE GOLD THEME — "Classic Light Gold"
   Brand language borrowed from the original Svarahi Liverates page
   (cream canvas, warm gold radial glow, gold pill bars, circular gold buttons,
   rounded panels) restored for Brahmani Trading.
   ============================================================================ */

:root {
  --gold-deep: #a96900;
  --gold: #dfa81d;
  --gold-light: #ffdf67;
  --gold-pale: #fff7d3;
  --red: #c52026;
  --green: #08a63e;
  --ink: #101010;
  --muted: #7a5a2a;

  --page: #fffefb;
  --page-2: #fff9e8;
  --panel: #fffdf3;
  --panel-2: #fffaf0;
  --input-bg: #ffffff;
  --line: rgba(169, 105, 0, .28);
  --line-strong: rgba(169, 105, 0, .5);

  --gold-gradient: linear-gradient(135deg, #fff4a4 4%, #d89c0a 48%, #ffe582 82%, #bb7600 100%);
  --gold-bar: linear-gradient(100deg, #dca51d 0%, #fff19a 21%, #d39a12 52%, #ffe786 76%, #d59d18 100%);
  --green-chip: linear-gradient(135deg, #05a136, #0dbc4c 48%, #078f32);
  --shadow: 0 10px 24px rgba(94, 59, 0, .16);
  --shadow-soft: 0 8px 20px rgba(94, 59, 0, .12);
  --glow-gold: 0 0 18px rgba(214, 161, 20, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #ffe8b6; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffdf67, #dfa81d);
  border-radius: 10px;
}
html { scrollbar-color: #dfa81d #ffe8b6; scrollbar-width: thin; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 223, 103, .18), transparent 24rem),
    radial-gradient(circle at 100% 22%, rgba(169, 105, 0, .10), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, var(--page) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4, .brand-name, .page-head h1, .section-title, .welcome-bar {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: .02em;
}

a { text-decoration: none; }

img { max-width: 100%; height: auto; }

.page-shell {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding: 0 16px;
}

/* ============ BULLION BACKDROP (decorative, from Brahmani) ============ */
#bullionBackdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bullion-row {
  position: absolute;
  left: -8%;
  width: 116%;
  transform: rotate(-6deg);
  opacity: .10;
}
.bullion-row-b, .bullion-row-d, .bullion-row-e { opacity: .07; }
.bullion-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: bfScroll linear infinite;
}
.bullion-half { display: flex; align-items: center; }
.bullion-item {
  color: var(--gold-deep);
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}
.bullion-item img {
  width: 1em;
  height: 1em;
  display: block;
  opacity: .9;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, .25));
  border-radius: 4px;
}
@keyframes bfScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ TOP INFO STRIP ============ */
.top-strip {
  background: var(--gold-pale);
  border-bottom: 1px solid var(--gold);
  font-size: .82rem;
  color: #6a4400;
  padding: 6px 0;
}
.top-strip a { color: #6a4400; }
.top-strip a:hover { color: var(--gold-deep); }
.top-strip .divider { color: var(--gold-deep); margin: 0 10px; }
.top-strip i { margin-right: 6px; color: var(--gold-deep); }

.container-xl, .rate-container { width: 100%; }

/* ============ SPINNER ============ */
#maSpinner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 254, 251, .88);
}
#maSpinner .ring {
  width: 44px;
  height: 44px;
  border: 4px solid #ffe2a1;
  border-top-color: var(--gold-deep);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ SITE HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 8px 0 0;
  background: rgba(255, 254, 251, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 18px rgba(94, 59, 0, .10);
}

.header-grid {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gold-button {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(223, 168, 29, .6);
  border-radius: 50%;
  color: #3a2700;
  background: var(--gold-gradient);
  box-shadow: 0 7px 14px rgba(94, 59, 0, .35), inset 0 1px 3px rgba(255, 255, 255, .85);
  font-size: 1.55rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gold-button:hover,
.gold-button:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 22px rgba(94, 59, 0, .4), 0 0 18px rgba(255, 209, 45, .45);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  text-decoration: none;
  color: inherit;
  gap: 4px;
}
.brand-image {
  width: clamp(200px, 26vw, 300px);
  max-width: 92%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(94, 59, 0, .22), 0 0 0 1px rgba(223, 168, 29, .45);
}
.brand-name {
  color: var(--gold-deep);
  font-weight: 800;
  font-size: clamp(1rem, 2.6vw, 1.45rem);
  letter-spacing: 3px;
  line-height: 1.1;
  text-transform: uppercase;
}
.brand-tagline {
  color: #b48a33;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* ============ NAVIGATION STRIP ============ */
.nav-strip {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 243, .6);
}
.nav-strip .page-shell {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 18px;
}
.nav-strip a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 2px 12px;
  color: #6a4400;
  font-size: clamp(.72rem, 1.6vw, .88rem);
  font-weight: 700;
  letter-spacing: .4px;
  position: relative;
  white-space: nowrap;
  transition: color .25s ease, transform .25s ease;
}
.nav-strip a i { font-size: .9em; color: var(--gold-deep); }
.nav-strip a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold-bar);
  transition: width .3s ease;
}
.nav-strip a:hover { color: var(--gold-deep); transform: translateY(-2px); }
.nav-strip a:hover::after,
.nav-strip a.active::after { width: 100%; }

/* ============ RESPONSIVE HAMBURGER MENU (Live Rates) ============ */
.live-rates-page .site-header { position: sticky; }
.live-rates-page .nav-toggle { display: none; }

@media (max-width: 767.98px) {
  .live-rates-page .header-grid { position: relative; }

  .live-rates-page .nav-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(122, 78, 0, .35);
    border-radius: 50%;
    color: #3a2700;
    background: var(--gold-gradient);
    box-shadow: 0 5px 12px rgba(94, 59, 0, .3), inset 0 1px 2px rgba(255, 255, 255, .8);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
  }

  .live-rates-page .nav-strip { display: none; }
  .live-rates-page .nav-strip.open { display: block; }

  .live-rates-page .nav-strip .page-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 10px;
    border-top: 1px solid var(--line-strong);
    background: var(--panel);
  }

  .live-rates-page .nav-strip a {
    justify-content: flex-start;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
  }
  .live-rates-page .nav-strip a:last-child { border-bottom: 0; }
  .live-rates-page .nav-strip a::after { display: none; }
  .live-rates-page .nav-strip a.active { color: var(--gold-deep); }
}

/* ============ OFF-CANVAS MENU ============ */
.offcanvas { --bs-offcanvas-width: 310px; background: var(--page); color: var(--ink); }
.offcanvas-header {
  background: var(--gold-bar);
  color: #3a2700;
}
.menu-list .nav-link {
  padding: 13px 10px;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.menu-list .nav-link i { color: var(--gold); margin-right: 10px; }
.menu-list .nav-link:hover { color: var(--gold-deep); padding-left: 18px; }
.menu-list .nav-link.active { color: var(--gold-deep); }

/* ============ WELCOME BAR ============ */
.welcome-bar,
.table-titlebar {
  border: 1px solid rgba(223, 168, 29, .6);
  background: var(--gold-bar);
  box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, .75);
  color: #3a2700;
}
.welcome-bar {
  max-width: 970px;
  margin: 10px auto 14px;
  padding: 12px 24px;
  border-radius: 999px;
  text-align: center;
  font-size: clamp(1.15rem, 3.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ============ MARKET CARDS ============ */
.market-strip { max-width: 970px; margin-inline: auto; }
.r {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.market-card {
  height: 100%;
  min-height: 148px;
  padding: 12px 14px;
  border: 2px solid #e0aa20;
  border-radius: 28px;
  background: linear-gradient(160deg, #ffffff, #fffdf3 52%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.market-card::before {
  content: "";
  width: 130px;
  height: 130px;
  position: absolute;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: rgba(255, 216, 70, .22);
  filter: blur(2px);
}
.market-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(94, 59, 0, .22), 0 0 22px rgba(238, 183, 32, .22);
}
.metal-art {
  width: 84px;
  height: 58px;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 5px 6px rgba(94, 59, 0, .35)) drop-shadow(0 0 10px rgba(255, 198, 25, .35));
}
.metal-art.silver {
  filter: drop-shadow(0 5px 6px rgba(80, 90, 105, .35)) drop-shadow(0 0 9px rgba(190, 205, 220, .55));
}
.rupee-art {
  width: 66px;
  height: 66px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(94, 59, 0, .35)) drop-shadow(0 0 9px rgba(255, 214, 57, .35));
}
.rupee-orb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 5px 14px rgba(94, 59, 0, .35), 0 0 15px rgba(255, 214, 57, .35);
  font-size: 2rem;
  font-weight: 800;
  color: #3a2700;
}
.trend-orb {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid #e1ad25;
  border-radius: 50%;
  color: #3a2700;
  background: var(--gold-gradient);
  box-shadow: 0 4px 12px rgba(94, 59, 0, .3);
  font-size: 1.4rem;
}
.market-name {
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .8px;
  color: #a95d00;
}
.market-value {
  color: #a95d00;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
  font-weight: 800;
}
.market-range { margin: 5px 0 0; font-size: .93rem; color: var(--muted); }

/* ============ RATES SECTION / PRODUCTS BOARD ============ */
.rates-section {
  width: 100%;
  max-width: 970px;
  margin: 14px auto 0;
  scroll-margin-top: 20px;
}
.table-titlebar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 18px 6px 24px;
  border-radius: 999px;
}
.table-titlebar h1 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rate-mode {
  min-width: 185px;
  padding: 10px 20px;
  border: 1px solid rgba(122, 74, 0, .45);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .6), #fff2c8);
  color: #3a2700;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
}

.spot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
  max-width: 970px;
  margin-inline: auto;
}
.spot-card {
  border: 2px solid #e0aa20;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff, #fffdf3 55%);
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}
.spot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(94, 59, 0, .2), 0 0 20px rgba(238, 183, 32, .2);
}
.spot-card__head {
  background: var(--gold-bar);
  color: #3a2700;
  font-weight: 800;
  text-align: center;
  padding: 10px 6px;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: .86rem;
}
.spot-card__body { text-align: center; padding: 18px 10px 14px; }
.spot-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #a95d00;
  letter-spacing: .5px;
}
.spot-range {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: .82rem;
}

.products-table { margin-top: 8px; position: relative; overflow: hidden; }
.products-table::before {
  content: "SVARAHI GOLD";
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-family: Georgia, serif;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--gold);
  opacity: .05;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}
.products-table > div { position: relative; z-index: 1; }

.products-head {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  background: var(--gold-bar);
  color: #3a2700;
  font-weight: 800;
  border-radius: 999px;
  padding: 9px 16px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: .88rem;
}
.products-head .col-right { text-align: center; }

.product-row {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  align-items: center;
  min-height: 62px;
  border: 2px solid rgba(224, 170, 32, .55);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 7px;
  background: linear-gradient(100deg, #ffffff, #fff9e8 42%, #fffdf4);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-row:hover {
  transform: translateY(-3px);
  border-color: #c7951a;
  box-shadow: var(--shadow-soft), 0 0 18px rgba(238, 183, 32, .18);
}
.product-name {
  color: #3a2f17;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.15;
}
.product-time {
  color: var(--muted);
  font-size: .68rem;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.buy-value { text-align: center; color: var(--gold-deep); font-weight: 800; font-size: 1.3rem; }
.sell-wrap { text-align: center; }
.sell-value {
  display: inline-block;
  min-width: 118px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-chip);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .4), 0 5px 12px rgba(0, 115, 40, .3);
  font-weight: 800;
  text-align: center;
  font-size: 1.28rem;
  line-height: 1;
}
.hl-range {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  font-size: .72rem;
  color: var(--muted);
  grid-column: 1 / -1;
  margin-top: 6px;
  opacity: .92;
}
.hl-range .l-val { grid-column: 2; text-align: center; }
.hl-range .h-val { grid-column: 3; text-align: center; }

.rate-pill {
  display: inline-block;
  padding: .18em .5em;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.3;
  color: inherit;
  background: transparent;
}
.rate-pill.up { color: #fff; background: rgba(25, 135, 84, .92); box-shadow: 0 1px 8px rgba(25, 135, 84, .5); }
.rate-pill.down { color: #fff; background: rgba(220, 53, 69, .92); box-shadow: 0 1px 8px rgba(220, 53, 69, .5); }

/* ============ FUTURE CARDS ============ */
.future-card {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(224, 170, 32, .55);
  border-radius: 28px;
  background: linear-gradient(160deg, #ffffff, #fffdf3 55%);
  box-shadow: var(--shadow);
}
.future-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: var(--gold-bar);
  color: #3a2700;
  font-weight: 800;
}
.future-head .metal-art { width: 62px; height: 42px; border-radius: 8px; }
.future-title { flex: 1; font-size: clamp(.95rem, 2vw, 1.2rem); letter-spacing: .6px; }
.future-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 12px 10px 14px;
  text-align: center;
}
.future-data > div:not(.future-low) + div:not(.future-low) { border-left: 1px solid var(--line-strong); }
.future-data > div { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.future-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.future-price { color: var(--gold-deep); font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 800; line-height: 1.1; }
.future-low { grid-column: 1 / -1; text-align: center; font-size: .82rem; color: var(--muted); font-weight: 700; letter-spacing: .4px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
#liveFuturesBody { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.future-card .rate-pill { background: transparent; box-shadow: none; border-radius: 0; padding: 0; color: var(--gold-deep); }
.future-card .rate-pill.up { color: #0a9c3a; }
.future-card .rate-pill.down { color: var(--red); }

/* ============ ROW ARROW / PRICE chips ============ */
.row-arrow {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #3a2700;
  background: var(--gold-gradient);
  box-shadow: 0 5px 11px rgba(94, 59, 0, .3), 0 0 10px rgba(255, 206, 29, .3);
  font-size: 1.6rem;
  transition: transform .2s ease;
}
.row-arrow:hover { transform: translateX(4px); }

.price-chip {
  min-width: 146px;
  display: inline-block;
  padding: 8px 15px;
  border-radius: 12px;
  color: #fff;
  background: var(--green-chip);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35), 0 5px 12px rgba(0, 115, 40, .25);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1;
  font-weight: 800;
  text-align: center;
}
.low-rate { display: block; margin-top: 5px; font-size: .92rem; color: var(--muted); white-space: nowrap; }

/* ============ MARKET TICKER ============ */
.market-ticker {
  background: var(--panel);
  border-bottom: 1px solid var(--line-strong);
  height: 38px;
  overflow: hidden;
  position: relative;
}
.market-ticker .ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-deep);
  animation: tickerScroll 45s linear infinite;
  padding-left: 100%;
  will-change: transform;
}
.market-ticker .ticker-chip {
  display: inline-flex;
  gap: 6px;
  margin-right: 28px;
  flex-shrink: 0;
}
.market-ticker .ticker-chip .sym { color: #3a2f17; }
.market-ticker .ticker-chip .px { color: var(--gold-deep); }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============ MARQUEE BAR (news ticker) ============ */
.marquee-bar {
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  margin: 20px auto 0;
  max-width: 970px;
  box-shadow: 0 0 16px rgba(223, 168, 29, .14);
}
.marquee-bar .welcome-tag {
  position: absolute;
  right: 14px;
  top: -1px;
  bottom: -1px;
  height: auto;
  display: flex;
  align-items: center;
  color: #3a2700;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: .82rem;
  background: var(--gold-bar);
  padding-left: 16px;
  padding-right: 22px;
  border-radius: 999px;
  border: 1px solid rgba(223, 168, 29, .6);
  z-index: 2;
}
.marquee-bar .welcome-tag::before {
  content: "";
  position: absolute;
  left: -24px; top: 0; bottom: 0; width: 24px;
  background: linear-gradient(90deg, transparent, var(--panel) 80%);
}
.marquee-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  color: #6a4400;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: .85rem;
  animation: scrollLeft 18s linear infinite;
}
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.marquee-bar.is-empty { display: none; }

/* ============ CONTACT DOCK ============ */
.contact-dock {
  max-width: 970px;
  display: flex;
  justify-content: space-between;
  margin: 16px auto 12px;
  padding-inline: 25px;
}
.contact-dock .gold-button {
  width: 64px;
  height: 64px;
  background: var(--gold-gradient);
  color: #3a2700;
  border: 3px solid #dda91c;
  box-shadow: 0 7px 14px rgba(94, 59, 0, .3), inset 0 1px 3px rgba(255, 255, 255, .85);
}
.contact-dock .bi-whatsapp,
.contact-dock .fa-whatsapp { color: #25d366; font-size: 2.2rem; text-shadow: 0 0 14px rgba(37, 211, 102, .35); }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 96px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
  z-index: 1000;
  animation: floatBounce 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============ FOOTER ============ */
.site-footer { background: var(--page); border-top: 2px solid var(--gold); margin-top: 30px; color: var(--muted); }

.footer-dock {
  max-width: 970px;
  margin: -30px auto 0;
  padding: 8px 10px;
  border: 2px solid var(--line-strong);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 20;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 4px;
}
.footer-link {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  color: #3a2f17;
  text-decoration: none;
  font-size: clamp(.68rem, 1.8vw, .95rem);
  font-weight: 700;
  text-align: center;
  transition: color .2s ease, transform .2s ease;
}
.footer-link i { font-size: clamp(1.45rem, 4vw, 1.9rem); line-height: 1; color: var(--gold); }
.footer-link:hover, .footer-link.active { color: var(--gold-deep); transform: translateY(-2px); }
.footer-link.active::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c68a00;
  box-shadow: 0 0 8px #f0b90c;
}

.footer-main { padding: 26px 0 10px; }
.footer-logo {
  width: auto;
  height: 42px;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(223, 168, 29, .45);
  object-fit: contain;
}
.footer-title {
  color: var(--gold-deep);
  font-weight: 800;
  font-size: .98rem;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: color .25s ease, padding-left .25s ease; }
.footer-links a i { color: var(--gold-deep); font-size: .82em; }
.footer-links a:hover { color: var(--gold-deep); padding-left: 4px; }
.footer-contact li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: .9rem;
}
.footer-contact i { color: var(--gold-deep); margin-top: 3px; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--gold-deep); }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin-right: 8px;
  color: var(--gold-deep);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.social-icons a:hover { background: var(--gold-bar); color: #3a2700; transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(169, 105, 0, .25);
  margin-top: 30px;
  padding: 16px 0;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}
.footer-bottom a { color: var(--gold-deep); }

/* ============ PAGE HEAD / PANELS ============ */
.page-head { margin-bottom: 18px; }
.eyebrow {
  display: inline-block;
  color: var(--gold-deep);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.page-head h1 {
  color: var(--gold-deep);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin: 0;
}

.glass {
  background: linear-gradient(150deg, #fffefb, #fff9e8);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  overflow: hidden;
}
.panel-pad { padding: 20px 24px; }
@media (max-width: 575px) { .panel-pad { padding: 16px 12px; } }

.copy-block h2 { color: var(--gold-deep); font-size: 1.08rem; margin: 20px 0 8px; font-weight: 800; }
.copy-block h2:first-child { margin-top: 0; }
.copy-block h3 { color: var(--gold-deep); font-size: 1rem; margin: 20px 0 8px; font-weight: 800; }
.copy-block h4 { color: var(--gold-deep); font-size: .95rem; margin: 14px 0 6px; font-weight: 800; }
.copy-block p { color: #4a3a1f; line-height: 1.85; font-size: .95rem; }
.copy-block ul, .copy-block ol { padding-left: 1.4rem; margin: 6px 0 12px; }
.copy-block li { color: #4a3a1f; line-height: 1.8; margin-bottom: 6px; }
.copy-block a { color: var(--gold-deep); text-decoration: underline; }
.copy-block a:hover { color: #7a4d00; }

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.info-row { display: flex; gap: 14px; margin-bottom: 16px; }
.info-row .glyph {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #3a2700;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(94, 59, 0, .3);
}
.info-row strong { display: block; color: var(--gold-deep); font-size: .86rem; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 1px; }
.info-row p, .info-row a { color: #4a3a1f; font-size: .92rem; }
.info-row a:hover { color: var(--gold-deep); }
.contact-map {
  width: 100%;
  height: 250px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  margin-top: 14px;
  filter: grayscale(.25) contrast(1.02);
}

/* ============ MESSAGES / BANK CARDS ============ */
.feed-status {
  background: var(--gold-pale);
  border: 1px solid rgba(169, 105, 0, .4);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 14px;
  font-size: .8rem;
  color: #6a4400;
  font-weight: 700;
}
.feed-status.feed-error { color: #b0271f; }
.bank-card {
  background: linear-gradient(150deg, #fffefb, #fff9ea);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 12px;
  color: #4a3a1f;
  font-size: .9rem;
  line-height: 1.75;
}
.bank-card p { margin: 8px 0; }
.bank-card strong { color: var(--gold-deep); }
.bank-card time { display: block; margin-top: 8px; font-size: .7rem; color: var(--gold-deep); font-weight: 700; }
.list-group { border-radius: 18px; overflow: hidden; }
.empty-state {
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
  padding: 20px 12px;
  list-style: none;
  margin: 0;
}
.empty-state a { color: var(--gold-deep); font-weight: 700; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fffdf3;
  border: 1px solid var(--line-strong);
  color: #6a4400;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .85rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.btn:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--glow-gold); color: #6a4400; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary { background: var(--gold-bar); color: #3a2700; border: none; }
.btn.primary:hover { box-shadow: 0 6px 18px rgba(255, 209, 45, .4); color: #3a2700; }

/* ============ HOME PAGE ============ */
.home-hero {
  position: relative;
  overflow: hidden;
  border: 2px solid #e0aa20;
  border-radius: 28px;
  background: linear-gradient(140deg, #ffffff, #fff6dd);
  box-shadow: var(--shadow);
}
.home-hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 38px 34px;
  min-height: 300px;
}
@media (max-width: 767px) {
  .home-hero-inner { grid-template-columns: 1fr; text-align: center; padding: 30px 18px; }
}
.home-script {
  color: var(--gold-deep);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 8px;
}
.home-hero-copy h1, .home-hero-copy h2 {
  color: var(--gold-deep);
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  line-height: 1.22;
  margin-bottom: 12px;
  font-weight: 800;
}
.home-hero-copy p { color: #4a3a1f; line-height: 1.7; font-size: .96rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
@media (max-width: 767px) { .home-actions { justify-content: center; } }
.home-actions .btn { font-size: .9rem; }
.home-text-link { color: var(--gold-deep); font-weight: 800; font-size: .86rem; text-decoration: underline; }
.home-hero-art {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.home-hero-art img {
  height: 110px;
  border-radius: 16px;
  filter: drop-shadow(0 8px 14px rgba(94, 59, 0, .3)) drop-shadow(0 0 18px rgba(255, 198, 25, .25));
}
@media (max-width: 767px) { .home-hero-art img { height: 72px; } }

.home-hero-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  background: rgba(223, 168, 29, .12);
  border-top: 1px solid var(--line-strong);
  font-size: .84rem;
  color: var(--muted);
}
.home-hero-foot i { color: var(--gold-deep); }

.home-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 20px 0 26px;
}
.home-section-nav a {
  background: #fffdf3;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .78rem;
  color: #6a4400;
  font-weight: 700;
  transition: background .2s, border-color .2s;
}
.home-section-nav a:hover,
.home-section-nav a[aria-current="true"] {
  background: var(--gold-bar);
  color: #3a2700;
  border-color: transparent;
}

.home-section { padding: 40px 0; }
@media (max-width: 767px) { .home-section { padding: 28px 0; } }
.home-section > div + div { margin-top: 18px; }
.home-section h2 { color: var(--gold-deep); font-size: clamp(1.25rem, 3vw, 1.7rem); margin-bottom: 10px; line-height: 1.3; font-weight: 800; }
.home-section p { color: #4a3a1f; line-height: 1.75; }
.home-about, .home-bullion, .home-trading, .home-services, .home-visit { border-top: 1px solid var(--line-strong); }

.home-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 14px 0 0;
  font-size: .9rem;
}
.home-facts dt { color: var(--muted); font-weight: 700; }
.home-facts dd { color: #3a2f17; margin: 0; }

.home-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 767px) { .home-steps { grid-template-columns: 1fr; } }
.home-steps li {
  counter-increment: step;
  background: #fffdf3;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 22px 20px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.home-steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-bar);
  color: #3a2700;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 12px;
}
.home-steps h3 { color: var(--gold-deep); font-size: 1rem; margin-bottom: 6px; font-weight: 800; }
.home-steps p { color: var(--muted); font-size: .85rem; line-height: 1.65; margin-bottom: 0; }

.home-service-links { display: grid; gap: 12px; max-width: 560px; }
.home-service-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fffdf3;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 16px 20px;
  color: #4a3a1f;
  transition: border-color .2s, transform .2s;
}
.home-service-links a:hover { border-color: var(--gold); transform: translateY(-2px); }
.home-service-links strong { display: block; color: var(--gold-deep); font-size: .94rem; margin-bottom: 2px; font-weight: 800; }
.home-service-links small { font-size: .78rem; color: var(--muted); }
.home-service-links span:last-child { color: var(--gold-deep); font-size: 1.2rem; }

.home-bullion-art { display: flex; gap: 16px; flex-wrap: wrap; }
.home-bullion-art img { height: 110px; border-radius: 16px; filter: drop-shadow(0 8px 14px rgba(94, 59, 0, .3)); }
@media (max-width: 767px) { .home-bullion-art { justify-content: center; } }

address { font-style: normal; color: #4a3a1f; line-height: 1.85; }

/* ============ TREND CHART ============ */
.trend-card { padding: 16px 18px; }
.trend-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.trend-legend { display: flex; gap: 18px; }
.trend-key { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.trend-key i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.trend-key-gold i { background: var(--gold-deep); box-shadow: 0 0 8px rgba(214, 161, 20, .8); }
.trend-key-silver i { background: #9aa3ad; box-shadow: 0 0 8px rgba(154, 163, 173, .5); }
.trend-last { display: flex; gap: 16px; }
@media (max-width: 575px) { .trend-last { gap: 10px; width: 100%; justify-content: space-between; } }
.trend-last-item { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.trend-last-item b { font-size: .65rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.trend-last-item strong { font-family: Georgia, serif; font-size: 1.12rem; font-weight: 800; line-height: 1.2; }
.trend-last-gold strong { color: var(--gold-deep); }
.trend-last-silver strong { color: #5f6b7a; }
.trend-delta { display: block; font-style: normal; font-size: .68rem; color: var(--muted); font-weight: 700; }
.trend-delta.is-up { color: #0a9c3a; }
.trend-delta.is-down { color: var(--red); }
.trend-canvas-wrap {
  position: relative;
  height: 320px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 209, 45, .12), transparent 70%);
  background-color: #fffdf5;
  overflow: hidden;
}
@media (max-width: 767px) { .trend-canvas-wrap { height: 240px; } }
.trend-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.trend-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 0 16px; }
.trend-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: .75rem; color: var(--muted); }
.trend-stamp { font-weight: 700; color: var(--gold-deep); }

/* ============ LIVE RATES GRID (trend + news) ============ */
.liverates-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 12px;
  margin-top: 14px;
  align-items: stretch;
  max-width: 970px;
  margin-inline: auto;
}
@media (max-width: 767px) { .liverates-grid { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; }
.news-card .panel-title { margin-bottom: 10px; }
.news-list {
  flex: 1;
  overflow-y: auto;
  max-height: 320px;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}
@media (max-width: 767px) { .news-list { max-height: none; } }
.news-item {
  padding: 12px 14px;
  background: #fffdf3;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}
.news-item p { margin: 0 0 6px; font-size: .85rem; color: #3a2f17; line-height: 1.6; }
.news-item time { font-size: .7rem; color: var(--gold-deep); font-weight: 800; letter-spacing: .5px; }
.news-list a { color: var(--gold-deep); font-weight: 700; }

.panel-title {
  color: var(--gold-deep);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(255, 209, 45, .8); flex-shrink: 0; }

.field-help, .calculation-help { font-size: .8rem; color: var(--muted); line-height: 1.7; }
.calculation-help a { color: var(--gold-deep); }

/* ============ SCROLL REVEAL ============ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1);
}
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============ PRICE FLASH ============ */
.price-flash { animation: priceFlash .75s ease; }
@keyframes priceFlash {
  0%, 100% { box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35), 0 5px 12px rgba(0, 115, 40, .25); }
  50% { box-shadow: 0 0 0 5px rgba(14, 188, 76, .16), 0 0 28px rgba(14, 188, 76, .5); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 767.98px) {
  .page-shell { padding-inline: 12px; }
  .site-header { padding-top: 10px; }
  .header-grid { justify-content: center; }
  .gold-button { width: 48px; height: 48px; font-size: 1.25rem; }
  .brand-name { letter-spacing: 1.5px; }
  .welcome-bar { padding: 10px 10px; font-size: 1rem; letter-spacing: .12em; }
  .market-card { min-height: 162px; padding: 15px; border-radius: 22px; }
  .table-titlebar { min-height: 50px; padding: 6px 10px 6px 16px; }
  .rate-mode { min-width: 122px; padding: 8px 12px; font-size: .98rem; }
  .product-row { grid-template-columns: 1.5fr 1fr 1fr; padding: 8px 10px; border-radius: 22px; }
  .products-head { padding: 8px 10px; border-radius: 22px; font-size: .78rem; }
  .buy-value, .sell-value { font-size: 1.12rem; }
  .price-chip { min-width: 112px; padding-inline: 8px; }
  .row-arrow { width: 40px; height: 40px; font-size: 1.3rem; }
  .footer-dock { margin-top: -26px; }
}

@media (max-width: 479.98px) {
  .brand-name { letter-spacing: 1px; }
  .product-row { grid-template-columns: 1.35fr 1fr 1fr; }
  .product-name { font-size: .9rem; }
  .buy-value, .sell-value { font-size: .98rem; }
  .footer-link span { font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .scroll-reveal { opacity: 1; transform: none; }
}