/* Live Rates page — table-only layout based on theme.jpeg. */

.live-rates-page .rates-only-main {
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 92px;
}

.live-rates-page .spot-overview,
.live-rates-page .future-section {
  width: 100%;
  max-width: 970px;
  margin-inline: auto;
}

.live-rates-page .spot-row {
  max-width: 970px;
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.live-rates-page .spot-card {
  min-width: 0;
  min-height: 148px;
  position: relative;
  padding: 11px 13px 10px;
  border-color: #e2ae28;
  border-radius: 22px;
  background: linear-gradient(150deg, #fff 0%, #fff 62%, #fff8df 100%);
}

.live-rates-page .spot-card__visual {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-rates-page .spot-card__visual .metal-art {
  width: 62px;
  height: 44px;
}

.live-rates-page .spot-card__visual .rupee-art {
  width: 44px;
  height: 44px;
}

.live-rates-page .spot-card__visual .trend-orb {
  width: 36px;
  height: 36px;
  position: static;
  flex: 0 0 36px;
  font-size: 1rem;
}

.live-rates-page .spot-card__head {
  padding: 4px 0 0;
  color: #16120a;
  background: transparent;
  text-align: left;
  font-size: clamp(.88rem, 1.8vw, 1.08rem);
  line-height: 1.15;
}

.live-rates-page .spot-card__body {
  padding: 2px 0 0;
  text-align: left;
}

.live-rates-page .spot-price {
  color: #a65d00;
  font-size: clamp(1.35rem, 2.7vw, 1.75rem);
  line-height: 1.08;
}

.live-rates-page .spot-range {
  justify-content: flex-start;
  gap: 12px;
  padding: 0;
  margin-top: 3px;
  color: #2d271f;
  font-size: .78rem;
}

.live-rates-page .rates-section {
  width: 100%;
  max-width: 970px;
  margin: 0 auto;
}

.live-rates-page .table-titlebar {
  min-height: 52px;
  padding: 6px 12px 6px 24px;
  border: 1px solid #dca51d;
  border-radius: 999px;
  background: linear-gradient(100deg, #d79d13 0%, #ffe87d 22%, #c98b08 50%, #ffed91 76%, #ce900c 100%);
  box-shadow:
    0 10px 24px rgba(94, 59, 0, .2),
    inset 0 2px 2px rgba(255, 255, 255, .72),
    inset 0 -2px 5px rgba(126, 75, 0, .15);
}

.live-rates-page .table-titlebar h1 {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0;
}

.live-rates-page .rate-mode {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  color: #111;
  background: linear-gradient(120deg, rgba(255, 243, 162, .45), #d2980f 82%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .42);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.live-rates-page .products-table {
  margin-top: 6px;
  padding: 0 2px 12px;
  overflow: visible;
}

.live-rates-page .products-table::before {
  color: #d4a018;
  opacity: .035;
}

.live-rates-page #liveProductsBody {
  display: block;
}

.live-rates-page .product-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(220px, 1.75fr) minmax(110px, .72fr) minmax(130px, .9fr) 46px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 7px 12px 6px 20px;
  margin-bottom: 8px;
  border: 2px solid #e2ae28;
  border-radius: 24px;
  background: linear-gradient(100deg, #fff 0%, #fff 52%, #fffdf7 100%);
  box-shadow:
    0 9px 15px rgba(96, 59, 0, .15),
    0 2px 3px rgba(223, 168, 29, .12),
    inset 0 1px 1px rgba(255, 255, 255, .9);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.live-rates-page .product-row:hover {
  transform: translateY(-3px);
  border-color: #c98d0b;
  box-shadow:
    0 13px 24px rgba(96, 59, 0, .2),
    0 0 18px rgba(238, 183, 32, .2),
    inset 0 1px 1px #fff;
}

.live-rates-page .product-name {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(.9rem, 1.8vw, 1.15rem);
  font-weight: 800;
  line-height: 1.12;
}

.live-rates-page .product-name-wrap {
  min-width: 0;
}

.live-rates-page .rate-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.live-rates-page .rate-label {
  color: #6f6048;
  font-size: .6rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.live-rates-page .product-time {
  margin-top: 2px;
  color: #6f6048;
  font-size: .6rem;
  letter-spacing: .6px;
}

.live-rates-page #liveProductsBody .buy-value,
.live-rates-page #liveProductsBody .sell-value {
  display: block;
  color: #181818;
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.live-rates-page #liveProductsBody .sell-value {
  min-width: 118px;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.live-rates-page #liveProductsBody .buy-value .rate-pill.up,
.live-rates-page #liveProductsBody .sell-value .rate-pill.up {
  color: #fff;
  background: rgba(25, 135, 84, .92);
  box-shadow: 0 1px 8px rgba(25, 135, 84, .5);
  animation: livePillUp 1.8s ease forwards;
}

.live-rates-page #liveProductsBody .buy-value .rate-pill.down,
.live-rates-page #liveProductsBody .sell-value .rate-pill.down {
  color: #fff;
  background: rgba(220, 53, 69, .92);
  box-shadow: 0 1px 8px rgba(220, 53, 69, .5);
  animation: livePillDown 1.8s ease forwards;
}

@keyframes livePillUp {
  to { background: transparent; color: inherit; box-shadow: none; }
}

@keyframes livePillDown {
  to { background: transparent; color: inherit; box-shadow: none; }
}

.live-rates-page .row-arrow {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(179, 110, 0, .25);
  border-radius: 50%;
  color: #17120a;
  background: linear-gradient(135deg, #fff19b 0%, #d99f13 58%, #ffe47a 100%);
  box-shadow:
    0 6px 12px rgba(109, 68, 0, .28),
    0 0 10px rgba(255, 206, 29, .24),
    inset 0 1px 2px rgba(255, 255, 255, .72);
  font-size: 1.3rem;
}

.live-rates-page .hl-range {
  grid-column: 1 / -1 !important;
  display: grid;
  grid-template-columns: minmax(220px, 1.75fr) minmax(110px, .72fr) minmax(130px, .9fr) 46px;
  column-gap: 10px;
  margin-top: 0;
  color: #26201a;
  font-size: .72rem;
  opacity: 1;
}

.live-rates-page .hl-range .l-val {
  grid-column: 2;
  text-align: center;
}

.live-rates-page .hl-range .h-val {
  grid-column: 3;
  text-align: center;
}

.live-rates-page .empty-state {
  margin: 14px 0;
  padding: 28px;
  border: 2px solid #e2ae28;
  border-radius: 28px;
  color: #6d4c0d;
  background: #fff;
  box-shadow: 0 9px 15px rgba(96, 59, 0, .12);
  text-align: center;
  font-weight: 700;
}

.live-rates-page .spot-row > .empty-state,
.live-rates-page #liveFuturesBody > .empty-state {
  grid-column: 1 / -1;
}

.live-rates-page .future-section {
  margin-top: 2px;
}

.live-rates-page #liveFuturesBody {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.live-rates-page .future-card {
  min-width: 0;
  isolation: isolate;
  border-color: #e2ae28;
  border-radius: 26px;
  background: #fff;
}

.live-rates-page .future-head {
  min-height: 76px;
  position: relative;
  z-index: 1;
  padding: 9px 14px;
  overflow: hidden;
}

.live-rates-page .future-card--gold .future-head,
.live-rates-page .future-card--silver .future-head {
  border-radius: 24px 24px 0 0;
}

.live-rates-page .future-card--gold .future-head {
  background: linear-gradient(105deg, #d89d0f 0%, #fff09a 42%, #d0950b 100%);
}

.live-rates-page .future-card--silver .future-head {
  background: linear-gradient(105deg, #f5f5f3 0%, #bfc2c6 42%, #f8f8f6 78%, #c4c6c8 100%);
}

.live-rates-page .future-title {
  min-width: 0;
  color: #17120a;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.1;
  white-space: nowrap;
  text-transform: uppercase;
}

.live-rates-page .future-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid rgba(179, 110, 0, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  box-shadow: 0 5px 11px rgba(94, 59, 0, .2);
  font-size: 1.25rem;
}

.live-rates-page .future-card--silver .future-arrow {
  border-color: rgba(91, 94, 99, .24);
  background: linear-gradient(135deg, #fff 0%, #d7d9dc 62%, #f5f5f3 100%);
  box-shadow: 0 5px 11px rgba(57, 60, 65, .18);
}

.live-rates-page .future-data {
  position: relative;
  z-index: 2;
  margin-top: -17px;
  padding: 22px 12px 16px;
  border-radius: 22px 22px 24px 24px;
  background: #fff;
}

.live-rates-page .future-label {
  color: #2d271f;
  font-size: .9rem;
}

.live-rates-page .future-price {
  color: #a65d00;
}

.live-rates-page #liveFuturesBody .buy-value,
.live-rates-page #liveFuturesBody .ask-value {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}

.live-rates-page .future-low {
  color: #2d271f;
}

@media (max-width: 767.98px) {
  .live-rates-page .rates-only-main {
    padding-top: 22px;
    padding-bottom: 66px;
  }

  .live-rates-page .spot-overview,
  .live-rates-page .rates-section,
  .live-rates-page .future-section {
    max-width: none;
  }

  .live-rates-page .spot-row { max-width: none; gap: 9px; }

  .live-rates-page .spot-card {
    min-height: 172px;
    padding: 12px 11px 11px;
    border-radius: 22px;
  }

  .live-rates-page .spot-card__visual { min-height: 48px; }

  .live-rates-page .spot-card__visual .metal-art {
    width: 62px;
    height: 44px;
  }

  .live-rates-page .spot-card__visual .rupee-art {
    width: 46px;
    height: 46px;
  }

  .live-rates-page .spot-card__visual .trend-orb {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: .95rem;
  }

  .live-rates-page .spot-range {
    gap: 6px;
    font-size: .68rem;
  }

  .live-rates-page .table-titlebar {
    min-height: 58px;
    padding: 7px 10px 7px 20px;
  }

  .live-rates-page .rate-mode {
    min-width: 124px;
    padding: 10px 14px;
    gap: 8px;
    font-size: 1rem;
  }

  .live-rates-page .product-row {
    min-height: 82px;
    grid-template-columns: minmax(0, 1.3fr) minmax(66px, .52fr) minmax(72px, .56fr) 38px;
    column-gap: 6px;
    padding: 10px 9px 8px 13px;
    border-radius: 22px;
  }

  .live-rates-page .product-name { font-size: 1rem; }
  .live-rates-page .rate-label { font-size: 10px; }
  .live-rates-page #liveProductsBody .buy-value { font-size: 1.05rem; }

  .live-rates-page #liveProductsBody .sell-value {
    min-width: 62px;
    padding: 8px;
    border-radius: 9px;
    font-size: 1.05rem;
  }

  .live-rates-page .row-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .live-rates-page .hl-range {
    grid-template-columns: minmax(0, 1.3fr) minmax(66px, .52fr) minmax(72px, .56fr) 38px;
    column-gap: 6px;
    font-size: .72rem;
  }

  .live-rates-page .future-head .metal-art {
    width: 44px;
    height: 32px;
  }

  .live-rates-page .future-head {
    gap: 7px;
    padding-inline: 9px;
  }

  .live-rates-page .future-title {
    font-size: .82rem;
  }

  .live-rates-page .future-arrow {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 1rem;
  }
}

@media (max-width: 479.98px) {
  .live-rates-page .table-titlebar h1 { font-size: 1.2rem; }

  .live-rates-page .rates-only-main { gap: 14px; }

  .live-rates-page .spot-card {
    min-height: 154px;
    padding: 9px 7px;
    border-radius: 18px;
  }

  .live-rates-page .spot-card__visual .metal-art {
    width: 46px;
    height: 35px;
  }

  .live-rates-page .spot-card__visual .rupee-art {
    width: 38px;
    height: 38px;
  }

  .live-rates-page .spot-card__visual .trend-orb {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: .78rem;
  }

  .live-rates-page .spot-card__head {
    font-size: .72rem;
    overflow-wrap: anywhere;
  }

  .live-rates-page .spot-price { font-size: 1.22rem; }

  .live-rates-page .spot-range {
    display: grid;
    gap: 1px;
    font-size: .6rem;
  }

  .live-rates-page .product-row {
    min-height: 70px;
    grid-template-columns: minmax(0, 1.25fr) minmax(52px, .52fr) minmax(56px, .56fr) 34px;
    column-gap: 4px;
    padding: 9px 6px 7px 11px;
    border-radius: 18px;
  }

  .live-rates-page .product-name { font-size: .86rem; }
  .live-rates-page .product-time { display: none; }
  .live-rates-page .rate-label { font-size: 9px; }
  .live-rates-page #liveProductsBody .buy-value { font-size: .95rem; }

  .live-rates-page #liveProductsBody .sell-value {
    min-width: 48px;
    padding: 7px 5px;
    border-radius: 8px;
    font-size: .95rem;
  }

  .live-rates-page .row-arrow {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .live-rates-page .hl-range {
    grid-template-columns: minmax(0, 1.25fr) minmax(52px, .52fr) minmax(56px, .56fr) 34px;
    column-gap: 4px;
    font-size: .64rem;
  }

  .live-rates-page #liveFuturesBody { gap: 8px; }

  .live-rates-page .future-card { border-radius: 20px; }

  .live-rates-page .future-head {
    min-height: 62px;
    gap: 5px;
    padding: 7px;
  }

  .live-rates-page .future-card--gold .future-head,
  .live-rates-page .future-card--silver .future-head {
    border-radius: 18px 18px 0 0;
  }

  .live-rates-page .future-head .metal-art {
    width: 38px;
    height: 30px;
  }

  .live-rates-page .future-title {
    font-size: .7rem;
  }

  .live-rates-page .future-arrow {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: .8rem;
  }

  .live-rates-page .future-data {
    margin-top: -15px;
    padding: 17px 5px 12px;
    border-radius: 16px 16px 18px 18px;
  }
  .live-rates-page .future-label { font-size: .68rem; }
  .live-rates-page .future-price { font-size: 1.08rem; }
  .live-rates-page #liveFuturesBody .buy-value,
  .live-rates-page #liveFuturesBody .ask-value { font-size: 1.08rem; }
  .live-rates-page .future-low { font-size: .62rem; }
}
