/* Live Rates: metallic lettering, text-only reference cards and outlined rows on the existing dark table theme. */
/* A single tapered blade of light crosses the viewport on page entry. */
.isg-live-page .jainam-load-flash {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
  user-select: none;
}
.jainam-load-blade {
  position: absolute;
  left: -75vw;
  top: 48%;
  width: 90vw;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #dfc17b 36%, #fff3b4 72%, #fff 86%, transparent);
  transform-origin: 85% 50%;
  animation: jainam-sword-flash 740ms cubic-bezier(.4, 0, .2, 1) 80ms 1 both;
}
.jainam-load-blade::before {
  content: "";
  position: absolute;
  inset: -26px 0;
  background: linear-gradient(180deg, transparent, #dfc17b24 48%, #fff3b440 50%, #dfc17b24 52%, transparent);
  clip-path: polygon(0 50%, 74% 0, 100% 50%, 74% 100%);
}
.jainam-load-blade::after {
  content: "";
  position: absolute;
  left: 85%;
  top: -10px;
  width: 23px;
  height: 23px;
  background: #fff3b4;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
@keyframes jainam-sword-flash {
  0% { opacity: 0; transform: translate3d(0, 18vh, 0) rotate(-28deg); }
  18% { opacity: .55; }
  42% { opacity: .85; }
  76% { opacity: .35; }
  100% { opacity: 0; transform: translate3d(200vw, -22vh, 0) rotate(-28deg); }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .isg-live-page .jainam-load-flash { display: none; }
  .jainam-load-blade { animation: none; }
}

.isg-live-page .app-main { isolation: isolate; }
.isg-live-page #liveBoard,
.isg-live-page .jainam-market-tabs,
.isg-live-page .market-marquee,
.isg-live-page .app-footer { position: relative; z-index: 1; }

.isg-live-page .jainam-brand-type strong {
  color: #f5d36b;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .isg-live-page .jainam-brand-type strong {
    background-image: linear-gradient(180deg, #fff3b4 0%, #ffe78b 22%, #f6ce57 45%, #bd7917 57%, #f2c94f 73%, #ffe595 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

@media (forced-colors: active) {
  .isg-live-page .jainam-brand-type strong {
    background-image: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}

/* Five reference/costing cards, with solid white live figures. */
.isg-live-page .isg-live-board .market-grid.row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.isg-live-page .isg-live-board .market-card {
  flex-direction: column;
  flex-wrap: nowrap;
  text-align: center;
}
.isg-live-page .isg-live-board .market-content { width: 100%; flex: 1 0 auto; }
.isg-live-page .isg-live-board .market-name { text-align: center; }
.isg-live-page .isg-live-board .market-value,
.isg-live-page .isg-live-board .range-value,
.isg-live-page .isg-live-board .rates-table .price-link:not([aria-disabled="true"]) {
  color: #fff !important;
  text-shadow: none;
}
.isg-live-page .isg-live-board .rates-table .price-link { font-weight: 700; }

@media (max-width: 900px) {
  .isg-live-page .isg-live-board .market-grid.row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .isg-live-page .isg-live-board .market-grid > .col-4 { grid-column: span 2; }
  .isg-live-page .isg-live-board .market-grid > .col-4:nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 768px) and (max-width: 900px) {
  .isg-live-page .isg-live-board .market-value { font-size: 24px !important; }
}
@media (max-width: 767px) {
  .isg-live-page .isg-live-board .market-value { font-size: clamp(14px, 4.5vw, 25px) !important; }
}

/* Compact desktop trading board: keep the catalogue high in the viewport. */
@media (min-width: 901px) {
  .isg-live-page .app-topbar,
  .isg-live-page .app-topbar.is-scrolled {
    grid-template-rows: 64px auto;
    min-height: 104px;
  }
  .isg-live-page .topbar-wordmark .board-wordmark img {
    width: 46px !important;
    height: 52px !important;
  }
  .isg-live-page .topbar-wordmark .jainam-brand-type { gap: 6px; }
  .isg-live-page .topbar-wordmark .jainam-brand-type strong { font-size: 26px; }
  .isg-live-page .app-topbar .topbar-nav-slot .ma-menu > li > .ma-menu-link,
  .isg-live-page .app-topbar .topbar-nav-slot .ma-menu > li > .ma-menu-trigger {
    min-height: 39px;
  }
  .isg-live-page .market-marquee { min-height: 32px; }
  .isg-live-page .market-marquee-label { padding: 4px 16px; font-size: 12px; }
  .isg-live-page .market-marquee-viewport { padding-block: 4px; }
  .isg-live-page .market-marquee-item { font-size: 13px; line-height: 1.4; }
  .isg-live-page .market-marquee-pause { min-height: 32px; padding-block: 4px; font-size: 12px; }
  .isg-live-page .jainam-market-tabs a,
  .isg-live-page .jainam-market-tabs button {
    min-height: 40px;
    height: 40px;
    padding-block: 6px;
    font-size: 15px;
    line-height: 1.4;
  }
  .isg-live-page .rates-page.container { margin: 12px auto 16px !important; }
  .isg-live-page .isg-live-board .market-grid.row { margin-bottom: 12px !important; }
  .isg-live-page .isg-live-board .market-card {
    min-height: 124px !important;
    padding: 10px 12px !important;
    flex-direction: column;
    flex-wrap: nowrap;
    text-align: center;
  }
  .isg-live-page .isg-live-board .market-content { width: 100%; flex: 1 0 auto; }
  .isg-live-page .isg-live-board .market-name { min-height: 32px; margin-bottom: 4px !important; font-size: 13px !important; text-align: center; }
  .isg-live-page .isg-live-board .market-value { font-size: clamp(20px, 2.3vw, 24px) !important; }
  .isg-live-page .isg-live-board .market-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 6px;
    padding-top: 6px;
    font-size: 10px;
    line-height: 1.4;
    gap: 2px;
    text-align: center;
  }
  .isg-live-page .isg-live-board .rates-table.table thead th {
    height: 40px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
  }
  .isg-live-page .isg-live-board .rates-table.table tbody th,
  .isg-live-page .isg-live-board .rates-table.table tbody td {
    height: 56px !important;
    padding: 4px 16px !important;
  }
  .isg-live-page .isg-live-board .rates-table .price-link {
    height: 32px;
    min-height: 32px;
  }
  .isg-live-page .isg-live-board .metal-mark { width: 10px; flex-basis: 10px; height: 28px; }
  .isg-live-page .isg-live-board .data-note { margin: 8px 0 0; font-size: 11px; line-height: 1.5; }
  .isg-live-page .isg-motion-toggle { min-height: 28px; margin: 0 0 0 8px; padding: 4px 8px; }
  .isg-live-page [data-market-status]:empty { display: none; }
}

/* Both market views share the reference row layout and the original Coins table background. */
.isg-live-page .isg-live-board .rates-table-wrap.table-responsive {
  border: 0 !important;
  border-radius: 0 !important;
  background: #02090d !important;
  overflow: visible !important;
}
.isg-live-page .isg-live-board .rates-table.table {
  border-collapse: separate !important;
  border-spacing: 0 9px !important;
}
.isg-live-page .isg-live-board .product-col { width: 60% !important; }
.isg-live-page .isg-live-board .price-col { width: 40% !important; }
.isg-live-page .isg-live-board .rates-table thead { background: #0c1a21; }
.isg-live-page .isg-live-board .rates-table.table thead th {
  background: transparent !important;
  border: 0 !important;
}
.isg-live-page .isg-live-board .rates-table.table thead th.numeric {
  padding-right: 90px !important;
}
.isg-live-page .isg-live-board .rates-table tbody tr {
  background: transparent;
  outline: 1px solid #bca455;
  outline-offset: -5px;
  border-radius: 14px;
}
.isg-live-page .isg-live-board .rates-table.table tbody th,
.isg-live-page .isg-live-board .rates-table.table tbody td {
  height: 88px !important;
  padding: 14px 22px !important;
  background: transparent !important;
  border: 0 !important;
}
.isg-live-page .isg-live-board .rates-table.table tbody tr > :first-child { border-radius: 14px 0 0 14px !important; }
.isg-live-page .isg-live-board .rates-table.table tbody tr > :last-child { border-radius: 0 14px 14px 0 !important; }
.isg-live-page .isg-live-board .rates-table.table tbody tr > :only-child { border-radius: 14px !important; }
.isg-live-page .isg-live-board .rates-table tbody tr:hover { background: #0b1920; }
.isg-live-page .isg-live-board .price::before { display: none; }
.isg-live-page .isg-live-board .product-name {
  font-size: 15px !important;
  font-weight: 600 !important;
}
.sell-quote { display: flex; align-items: center; gap: 16px; }
.sell-price-stack { flex: 1; min-width: 0; }
.isg-live-page .isg-live-board .sell-quote .price-link {
  min-height: 36px;
  height: 36px;
  font-size: 28px !important;
}
.rate-ranges { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 12px; row-gap: 2px; }
.isg-live-page .rate-ranges .rate-range { color: #e5ece8; font-size: 11px; }
.isg-live-page .rate-ranges .rate-range b { color: #d5dfdb; }
.rate-buy-sticker {
  display: inline-flex;
  flex: 0 0 62px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #f1d780;
  border-radius: 7px;
  background: #ebcd76;
  color: #102f35;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}
.rate-buy-sticker:hover { background: #ffe5a1; color: #102f35; text-decoration: none; }
.rate-buy-sticker:focus-visible { outline: 2px solid #fff1b3; outline-offset: 3px; }
.rate-buy-sticker[aria-disabled="true"] { background: #24494e; border-color: #6e8988; color: #b8cbc9; cursor: not-allowed; }
@media (max-width: 767px) {
  .isg-live-page .isg-live-board .market-card { min-height: 116px !important; }
  .isg-live-page .isg-live-board .product-col { width: 48% !important; }
  .isg-live-page .isg-live-board .price-col { width: 52% !important; }
  .isg-live-page .isg-live-board .rates-table.table tbody th,
  .isg-live-page .isg-live-board .rates-table.table tbody td { padding: 12px !important; }
  .isg-live-page .isg-live-board .rates-table.table thead th.numeric { padding-right: 64px !important; }
  .isg-live-page .isg-live-board .product-name { font-size: clamp(10px, 2.8vw, 14px) !important; }
  .isg-live-page .isg-live-board .sell-quote .price-link { font-size: clamp(14px, 4.1vw, 24px) !important; }
  .sell-quote { gap: 7px; }
  .rate-buy-sticker { flex-basis: 44px; font-size: 10px; }
  .isg-live-page .rate-ranges .rate-range { font-size: 9px; }
}
@media (forced-colors: active) {
  .isg-live-page .isg-live-board .rates-table tbody tr { outline-color: CanvasText; }
}
