:root {
  --green: #0b3d2a;
  --green-deep: #072a1c;
  --green-mid: #14563b;
  --cream: #fbf4e4;
  --bg: #fbf4e4;
  --bg-header: rgba(11, 61, 42, 0.92);
  --card: #fffdf8;
  --card2: #fff6e8;
  --gold: #c48b28;
  --gold-deep: #0b3d2a;
  --gold-line: rgba(196, 161, 90, 0.45);
  --text: #1a1a1a;
  --muted: #666666;
  --buy: #2fa500;
  --sell: #ff3a3a;
  --navy: #0b3d2a;
  --border: rgba(196, 161, 90, 0.55);
  --input: rgba(255, 253, 248, 0.9);
}

html,
body {
  width: 100%;
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.page,
.page.scrollable {
  width: 100%;
  height: auto !important;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  padding-bottom: 4rem;
  background: var(--bg) url("../imgs/mj-bg.svg") no-repeat center top / cover;
  background-attachment: scroll;
}

/* keep class aliases for JS */
html.scrollable,
body.scrollable {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100%;
}

/* Desktop header nav — hidden on mobile */
.top-nav {
  display: none;
}

/* ===== Site footer ===== */
.site-footer {
  width: min(920px, 92%);
  max-width: 920px;
  margin: 2rem auto 1.5rem;
  padding: 1.4rem 1.2rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(6, 40, 26, 0.94), rgba(4, 30, 19, 0.96));
  border: 1px solid rgba(196, 139, 40, 0.4);
  color: #f5e6c8;
  box-sizing: border-box;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 1.4rem 1.6rem;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer-brand b {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #f5e6c8;
}

.site-footer-brand p,
#footerTagline {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: rgba(245, 230, 200, 0.75);
  letter-spacing: 0.04em;
}

.site-footer-col h4 {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4af37;
}

.site-footer-link {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  color: #f5e6c8;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.28rem 0;
  cursor: pointer;
}

.site-footer-link:hover,
.site-footer-link.on {
  color: #ecb131;
}

.site-footer-col p,
.site-footer-a {
  display: block;
  margin: 0.28rem 0;
  color: rgba(245, 230, 200, 0.88);
  font-size: 0.86rem;
  text-decoration: none;
  line-height: 1.4;
}

.site-footer-a:hover {
  color: #ecb131;
}

.site-footer-hours,
.site-footer-gst {
  margin-top: 0.55rem !important;
  font-size: 0.78rem !important;
  color: rgba(245, 230, 200, 0.7) !important;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(196, 139, 40, 0.28);
  font-size: 0.75rem;
  color: rgba(245, 230, 200, 0.65);
}

.site-footer-powered {
  color: #d4af37;
}

@media (max-width: 768px) {
  .site-footer {
    display: none !important;
  }
}

.top {
  display: table;
  width: 100%;
  height: 9vh;
  background: var(--bg-header);
}

.top-cell {
  display: table-cell;
  width: 33.33%;
  vertical-align: middle;
}

.top-center {
  text-align: center;
}

.top-right {
  text-align: right;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6vw;
  vertical-align: middle;
}

.brand-mark {
  width: 4.6vw;
  height: 4.6vw;
  object-fit: contain;
}

.brand-rule {
  width: 1px;
  height: 3.2vw;
  background: #251901;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-align: left;
}

.brand-copy b {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.7vw;
  letter-spacing: 0.08em;
  color: #123a2a;
}

.brand-mid {
  display: flex;
  align-items: center;
  margin-top: 0.2vh;
  color: #123a2a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62vw;
  letter-spacing: 0.22em;
}

.brand-mid i {
  width: 1.1vw;
  height: 1px;
  margin: 0 0.35vw;
  background: #251901;
}

.brand-copy small {
  margin-top: 0.35vh;
  color: #251901;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48vw;
  letter-spacing: 0.04em;
}

.icon-btn {
  width: 2.2vw;
  height: 2.2vw;
  line-height: 2.05vw;
  border-color: #e6d3b0;
  background: linear-gradient(160deg, #fffaf0, #f3e2b8);
  color: #123a2a;
}

.user-wrap {
  display: inline-block;
}

.user-chip {
  background: #fffdf8;
  color: #123a2a;
  border-color: #e6d3b0;
}

.user-name,
.user-id {
  color: #123a2a;
}

.kyc {
  background: rgba(255, 252, 248, 0.78);
  color: #6b5a4a;
  text-align: left !important;
  overflow: hidden;
  padding: 0.55vh 0;
  border-bottom: 1px solid rgba(196, 161, 90, 0.35);
}

.kyc-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.kyc-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  animation: kyc-marquee 32s linear infinite;
  will-change: transform;
}

.kyc-item {
  display: inline-block;
  padding: 0 3rem;
  font-size: clamp(11px, 0.85vw, 14px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.kyc-marquee:hover .kyc-track {
  animation-play-state: paused;
}

@keyframes kyc-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.live-head,
.live-market-panel,
#viewLive .tabs,
.layout {
  max-width: 1400px;
  width: calc(100% - 2.8vw);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.live-market-panel {
  margin-top: 0.8vh;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.live-market-panel .live-head {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-market-panel .tabs {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.live-market-panel .cards {
  width: 100%;
  margin-top: 0.8vh;
}

/* Tab with products only (e.g. GOLD COINS) — no MCX header cards */
#viewLive .cards.cards-collapsed,
.live-market-panel .cards.cards-collapsed {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.live-market-panel.no-mcx-cards {
  gap: 8px;
  padding-bottom: 10px;
}

.live-head {
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid rgba(228, 214, 184, 0.9);
  border-radius: 1.2vw;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0.9vh 1vw;
}

.live-head .trade-info {
  flex: 0 0 auto;
  margin: 0;
  margin-left: auto;
}

.trade-lock {
  display: none;
}

.card-spark {
  display: none;
}

.live-head-title,
.live-head-sub,
.trade-info-text strong,
.trade-info-text span {
  color: #0b3d2a;
}


.trade-info {
  border-color: #efe4cf;
  background: #fffdf8;
}

#viewLive .tabs,
.tabs {
  max-width: 1400px;
  width: calc(100% - 2.8vw);
  margin: 0.8vh auto 0;
  padding: 0.45vh 0.5vw;
  background: #fffdf8;
  border: 1px solid rgba(228, 214, 184, 0.9);
  border-radius: 1.2vw;
  box-sizing: border-box;
}

.tabs.tabs-one {
  max-width: 1400px;
  width: calc(100% - 2.8vw);
}

.tab {
  color: #123a2a;
}

.tab.on {
  background: linear-gradient(90deg, #0b3d2a, #072a1c);
  color: #fff;
}

.card {
  background: #fffdf8;
  border-color: #e6d3b0;
  box-shadow: 0 8px 18px rgba(11, 61, 42, 0.06);
}

.card-gold {
  background: #fff6e8;
}

.card-blue {
  background: #f3f7fd;
}

.card-lavender {
  background: #f4f1fa;
}

.card-title,
.card-price,
.prod,
.buy-val,
.sell-val {
  color: #123a2a;
}

.card-hl {
  border-top-color: rgba(196, 161, 90, 0.35);
}

.products-head-left svg {
  color: #123a2a;
}

.badge-buy,
.badge-sell {
  border: 0;
  border-radius: 999px;
  padding: 0.45vh 0.9vw;
}

.badge-buy {
  background: #123a2a;
  color: #fff;
}

.badge-sell {
  background: #f6e3b4;
  color: #123a2a;
}

#products,
.products-wrap {
  overflow: visible !important;
  max-height: none !important;
}

.prod-row {
  display: table;
  background: #fffdf8;
  border-color: #e6d3b0;
}

.prod-name {
  display: inline-block;
  vertical-align: middle;
}

.prod-name b,
.prod-name small {
  display: block;
  color: #123a2a;
  font-weight: 700;
}

.prod-name b {
  font-size: clamp(15px, 1.15vw, 20px);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prod-name small {
  font-size: 0.72vw;
  font-weight: 600;
  opacity: 0.85;
}

.icon-gold {
  background: #f8e7c4;
  border-color: #e4c98a;
}

.icon-silver {
  background: #eef2f8;
  border-color: #d5deea;
}

.metal-icon,
.metal-icon-sm {
  object-fit: cover;
  border-radius: 50%;
}

.nav-desktop {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: min(720px, calc(100% - 2rem)) !important;
  max-width: 720px !important;
  margin: 0 auto;
  padding: 0.55rem 0.75rem !important;
  table-layout: auto;
  border-radius: 999px !important;
  border: 1.5px solid rgba(196, 139, 40, 0.65) !important;
  background: linear-gradient(180deg, #fffefb 0%, #fbf4e4 100%) !important;
  box-shadow:
    0 12px 32px rgba(6, 40, 26, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
}

.nav-mobile {
  display: none;
}

.bottom-wrap {
  left: 0;
  right: 0;
  width: auto;
  transform: none;
  padding: 0.75rem 1rem 1.25rem;
  background: transparent;
}

.bottom-nav {
  background: rgba(255, 252, 248, 0.96);
  border-color: #eadcc4;
  box-shadow: 0 10px 28px rgba(11, 61, 42, 0.08);
}

.nav-desktop .nav-item {
  display: flex !important;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: auto;
  min-height: 52px;
  padding: 0.35rem 0.4rem;
  border-radius: 14px;
  color: #0b3d2a !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav-desktop .nav-item svg {
  display: block !important;
  margin: 0 !important;
  width: 18px;
  height: 18px;
}

.nav-desktop .nav-item:hover {
  background: rgba(11, 61, 42, 0.06);
  color: #072a1c !important;
}

.nav-desktop .nav-item.on {
  color: #072a1c !important;
  font-weight: 800;
  background: rgba(196, 139, 40, 0.14);
}

.nav-desktop .nav-live {
  flex: 1.35 1 0;
}

.nav-desktop .live-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(160deg, #125236 0%, #1a6a47 45%, #06281a 100%) !important;
  color: #f5e6c8 !important;
  box-shadow: 0 6px 16px rgba(11, 61, 42, 0.35);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-desktop .live-pill svg {
  color: #ecb131;
}

.nav-desktop .nav-live:hover .live-pill {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(11, 61, 42, 0.42);
}

.nav-desktop .nav-live.on .live-pill {
  box-shadow:
    0 0 0 2px rgba(236, 177, 49, 0.35),
    0 8px 18px rgba(11, 61, 42, 0.4);
}

.live-pill {
  background: linear-gradient(160deg, #125236, #06281a);
  color: #f5e6c8;
}

/* Booking cards: in-flow on mobile only (scroll with content, not sticky) */
.mobile-dock-cards {
  display: none;
}

.modal-box,
.order-card,
.order-card-v2,
.login-card,
.drawer {
  background: #fffdf8;
  color: #123a2a;
}

.drawer {
  background: #f7f1ea url("../imgs/mj-bg.svg") no-repeat center top / cover;
}

.drawer-card,
.drawer-support {
  background: rgba(255, 253, 248, 0.92);
  color: #123a2a;
}

.mode-pill {
  background: #fff;
  border-color: #eadcc4;
}

.mode-pill .mode.on {
  color: #fff;
  background: #123a2a;
}

.bidask-v2 .bid {
  color: #dc2626;
}

.bidask-v2 .ask {
  color: #16a34a;
}

.btn-sell {
  background: #b4232c;
  color: #fff;
}

.btn-buy {
  background: #123a2a;
  color: #fff;
}

.order-product-icon {
  overflow: hidden;
  background: #f8e7c4;
  border-color: #e4c98a;
  line-height: 0;
}

.order-product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-logo {
  width: 5vw;
  height: auto;
  max-height: 12vh;
}

/* Mobile: scrollable page + app-style dock + compact cards */
@media (max-width: 768px) {
  html,
  body,
  .page {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .page,
  .page.scrollable {
    overflow-y: auto !important;
    height: auto !important;
  }

  /* Always show bottom dock on mobile (ignore desktop nav-hidden) */
  body.nav-hidden .bottom-wrap {
    display: block !important;
  }

  .nav-desktop {
    display: none !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .bottom-wrap {
    display: block !important;
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 0 calc(10px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
    background: transparent;
    z-index: 200 !important;
    pointer-events: none;
  }

  /* Sidebar must cover bottom nav when open */
  .drawer-bg {
    z-index: 220 !important;
  }

  .drawer {
    z-index: 230 !important;
  }

  .bottom-wrap .bottom-nav {
    pointer-events: auto;
  }

  /* App BottomTab floating pill */
  .nav-mobile {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 92% !important;
    max-width: none;
    height: 64px;
    margin: 0 auto;
    padding: 0 10px;
    border-radius: 32px;
    border: 1.5px solid #d9c08a;
    background: #fffefb;
    box-shadow: 0 6px 14px rgba(11, 61, 42, 0.1);
    overflow: visible;
    position: relative;
    box-sizing: border-box;
  }

  .nav-mobile .nav-item {
    display: flex !important;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 100%;
    padding: 0 2px;
    color: #123a2a !important;
    font-size: 10px;
    font-weight: 500;
    white-space: normal;
    background: transparent;
    position: relative;
    overflow: visible;
  }

  .nav-mobile .nav-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0 0 3px;
    color: #123a2a;
  }

  .nav-mobile .nav-ico svg {
    display: block !important;
    margin: 0 !important;
  }

  .nav-mobile .nav-label {
    display: block;
    white-space: nowrap;
    line-height: 1.1;
    color: #123a2a;
  }

  /* Gold circle always on Live Rates — other tabs only bold/unbold label */
  .nav-live-mob {
    overflow: visible !important;
  }

  /* Mitesh: green elevated Live circle + gold icon */
  .nav-mobile .live-circle,
  .nav-mobile .nav-live-mob .nav-ico.live-circle {
    width: 52px;
    height: 52px;
    margin: -18px auto 2px;
    border-radius: 50%;
    border: 1.5px solid #c9a45c;
    background: linear-gradient(160deg, #125236 0%, #1a6a47 48%, #06281a 100%);
    box-shadow: 0 4px 12px rgba(11, 61, 42, 0.4);
    color: #ecb131;
  }

  .nav-mobile .nav-ico {
    color: #0b3d2a;
  }

  .nav-mobile .nav-label {
    font-weight: 500;
    color: #123a2a;
  }

  .nav-mobile .nav-item.on .nav-label {
    font-weight: 800;
    color: #0b3d2a;
  }

  .layout,
  .margin-page,
  .empty-screen,
  .notify-list,
  #viewOrders .layout,
  #viewLive .layout {
    padding-bottom: 96px !important;
  }

  .top {
    height: 72px;
    padding: 0;
  }

  .top-cell {
    padding: 0 8px;
  }

  .brand-lockup {
    gap: 8px;
    max-width: calc(100vw - 96px);
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .brand-rule {
    width: 1px;
    height: 36px;
  }

  .brand-copy b {
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .brand-mid {
    font-size: 8px;
    letter-spacing: 0.18em;
    margin-top: 1px;
  }

  .brand-mid i {
    width: 10px;
    margin: 0 4px;
  }

  .brand-copy small {
    font-size: 7px;
    letter-spacing: 0.02em;
    margin-top: 2px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
    line-height: 32px;
  }

  .live-head {
    margin: 8px 10px 0;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .live-head-title {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .live-head-sub {
    font-size: 10px;
  }

  .trade-info {
    margin-top: 6px;
    padding: 6px 8px;
  }

  .tabs,
  .tabs.tabs-one {
    margin: 8px 10px 0;
    padding: 2px;
    border-radius: 12px;
  }

  .tab {
    padding: 7px 12px;
    font-size: 11px;
  }

  .layout {
    padding: 8px 10px 110px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .card {
    min-height: 0;
    height: auto;
    padding: 8px 8px 6px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(11, 61, 42, 0.06);
  }

  .card-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
  }

  .card-icon {
    display: block;
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .card-info {
    display: block;
    text-align: left;
    min-width: 0;
    flex: 1;
  }

  .metal-icon {
    width: 28px;
    height: 28px;
  }

  .card-title {
    font-size: 10px;
    letter-spacing: 0.04em;
    text-align: left;
  }

  .card-price {
    margin-top: 2px;
    font-size: 15px;
    line-height: 1.15;
  }

  .card-hl {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 9px;
  }

  .card-hl i {
    margin-top: 1px;
    font-size: 10px;
  }

  .products-head {
    margin: 10px 0 6px;
  }

  .products-head-left {
    font-size: 12px;
  }

  .prod-row {
    padding: 10px 10px;
    border-radius: 12px;
  }

  .prod-name b {
    font-size: 16px;
    line-height: 1.25;
  }

  .prod-name small {
    margin-top: 3px;
    font-size: 11px !important;
    line-height: 1.35;
    font-weight: 600;
    color: #5a6b7c;
    opacity: 1;
    white-space: normal;
    word-break: break-word;
  }

  .metal-icon-sm {
    width: 22px;
    height: 22px;
  }

  .login-logo {
    width: auto;
    max-width: 70vw;
    max-height: 72px;
    height: auto;
  }

  .brand-mark {
    width: auto;
    height: 56px;
    max-width: calc(100vw - 100px);
  }

  .brand-rule,
  .brand-copy {
    display: none !important;
  }
}

/* ===== Mitesh brand overrides (green/gold) ===== */
.top {
  height: 11vh;
  border-bottom: 1px solid rgba(196, 139, 40, 0.35);
  background: linear-gradient(180deg, rgba(6, 40, 26, 0.9) 0%, rgba(11, 61, 42, 0.75) 55%, rgba(11, 61, 42, 0.25) 100%);
}

.top-left {
  color: #f5e6c8;
}

.brand-lockup {
  gap: 0;
  justify-content: center;
}

.brand-mark {
  width: auto;
  height: 9vh;
  max-width: 32vw;
  object-fit: contain;
}

.brand-rule,
.brand-copy {
  display: none;
}

.icon-btn {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #f5e6c8;
}

.user-chip {
  background: rgba(255, 253, 248, 0.95);
  color: var(--green);
  border-color: rgba(196, 161, 90, 0.55);
}

.user-name,
.user-id {
  color: var(--green);
}

.title-row,
.title-row .spark,
.title-row #pageTitle {
  color: #f5e6c8;
}

.title-row .line {
  background: linear-gradient(90deg, transparent, rgba(196, 139, 40, 0.85), transparent);
}

.empty,
.empty-screen {
  color: #f5e6c8 !important;
}

.white {
  color: #ffffff !important;
}

.tab.on {
  background: linear-gradient(90deg, #072a1c, #14563b);
  color: #fff;
}

.badge-buy {
  background: var(--green);
  color: #fff;
}

.btn-buy,
.gold-btn {
  background: linear-gradient(90deg, #072a1c, #14563b);
  color: #fff;
}

.live-pill {
  background: linear-gradient(160deg, #14563b, #072a1c);
  color: #f5e6c8;
}

.drawer {
  background: #0b3d2a url("../imgs/mj-bg.svg") no-repeat center top / cover;
  color: #f5e6c8;
  border-right: 1px solid rgba(196, 139, 40, 0.35);
}

.drawer-user-text b {
  color: #fff;
}

.drawer-user-text i {
  color: rgba(245, 230, 200, 0.85);
}

.drawer-bell {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #f5e6c8;
}

.drawer-card {
  background: linear-gradient(90deg, #072a1c, #0f4a31);
  border-color: rgba(196, 139, 40, 0.4);
  color: #fff;
}

.drawer-card.on {
  border-color: var(--gold);
}

.drawer-support {
  background: rgba(255, 253, 248, 0.96);
  border-color: rgba(196, 139, 40, 0.45);
}

.drawer-support-text,
.drawer-support-text b,
.drawer-support-kicker {
  color: var(--green);
}

.drawer-logout {
  background: linear-gradient(90deg, #0b3d2a, #166040);
  color: #fff;
}

.drawer-powered {
  color: #d9bb7f;
}

.login-logo {
  width: auto;
  max-width: 16vw;
  max-height: 18vh;
  height: auto;
}

.login-kicker,
.login-title {
  color: var(--green);
}

/* Margin panels on dark green bg */
.margin-outer {
  background: rgba(6, 40, 26, 0.45);
  border-color: rgba(196, 139, 40, 0.55);
}

.margin-inner {
  background: rgba(4, 30, 19, 0.55);
  border-color: rgba(196, 139, 40, 0.4);
}

.margin-metric,
.metric-left {
  color: #f5e6c8;
}

.margin-metric strong {
  color: #fff;
}

.margin-gold h2 {
  color: var(--gold);
}

.margin-silver h2 {
  color: #e8eef5;
}

.notify-item {
  background: rgba(255, 253, 248, 0.96);
  border-color: rgba(196, 139, 40, 0.45);
}

.notify-item b {
  color: var(--green);
}

.nav-toggle {
  background: linear-gradient(160deg, #125236, #06281a);
  border: 1.5px solid #c9a45c;
  color: #f5e6c8;
  box-shadow: 0 8px 18px rgba(6, 40, 26, 0.35);
}

.nav-toggle:hover {
  filter: brightness(1.08);
}

/* Keep product rows clear of floating bottom dock (desktop + mobile) */
#viewLive .layout,
#viewOrders .layout,
.margin-page,
.empty-screen,
.notify-list {
  padding-bottom: 7rem;
}

/* ===== Desktop web: header nav, no sidebar / bottom dock ===== */
@media (min-width: 769px) {
  .top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    width: 100%;
    padding: 0.55rem 1rem 0.7rem;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(6, 40, 26, 0.92) 0%, rgba(11, 61, 42, 0.55) 100%);
    border-bottom: 1px solid rgba(196, 139, 40, 0.35);
  }

  .top-nav-item {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: #f5e6c8;
    font-size: clamp(12px, 0.85vw, 14px);
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  .top-nav-item:hover {
    background: rgba(255, 252, 248, 0.12);
    border-color: rgba(212, 175, 55, 0.35);
  }

  .top-nav-item.on {
    background: linear-gradient(90deg, #0b3d2a, #17603f);
    border-color: rgba(212, 175, 55, 0.55);
    color: #f5e6c8;
    box-shadow: 0 4px 12px rgba(6, 40, 26, 0.35);
  }

  .bottom-wrap,
  .nav-desktop,
  .nav-mobile,
  .nav-toggle,
  .drawer,
  .drawer-bg {
    display: none !important;
  }

  .page.scrollable {
    padding-bottom: 2rem;
  }

  #viewLive .layout,
  #viewOrders .layout,
  .margin-page,
  .empty-screen,
  .notify-list {
    padding-bottom: 2.5rem !important;
  }
}

.live-head-title,
.live-head-sub,
.prod-name b,
.prod-name small,
.card-title,
.card-price,
.buy-val,
.sell-val {
  color: var(--green);
}

.prod-name small {
  color: #7a5c33;
  font-weight: 600;
}

.kyc {
  background: rgba(255, 252, 248, 0.78);
  color: var(--muted);
}

.bottom-nav {
  background: rgba(255, 252, 248, 0.98);
  border-color: rgba(196, 161, 90, 0.5);
}

/* desk/mob label switches */
.live-title-mob,
.live-sub-mob,
.prod-title-mob,
.badge-mob {
  display: none;
}

.live-title-desk,
.live-sub-desk,
.prod-title-desk,
.badge-desk {
  display: inline;
}

/* ==========================================================================
   Mitesh Jewels — green / gold / cream layer.
   Mobile (<=768) mirrors the app mock 1:1; iPad (769–1180) keeps the same
   card language at a larger scale; web/TV (>=1181) splits the live board
   into spot cards (left) and the LIVE MARKET table (right).
   Everything below must stay last in the file: it wins over the inherited
   JP/base rules by order, and only uses !important where those did.
   ========================================================================== */
:root {
  --mj-green: #0b3d2a;
  --mj-green-2: #0f4a33;
  --mj-green-deep: #062a1c;
  --mj-gold: #d4a440;
  --mj-gold-light: #f3d388;
  --mj-gold-text: #f1c75b;
  --mj-brown: #9a6a1f;
  --mj-cream: #fdf8ec;
  --mj-cream-2: #f7ecd3;
  --mj-line: #ecd9ae;
  --mj-ink: #1d2a22;
  --mj-low: #d32424;
  --mj-high: #1f9d3a;
  --mj-font: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mj-serif: "Cinzel", Georgia, "Times New Roman", serif;
}

html {
  background: #fbf4e4;
}

body {
  background: transparent !important;
  font-family: var(--mj-font);
  color: var(--mj-ink);
}

/* Fixed layer instead of background-attachment:fixed — iOS Safari ignores
   the latter, which would scroll the gold waves away with the content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #fbf4e4 url("../imgs/mj-bg.svg") no-repeat center bottom / cover;
}

.page,
.page.scrollable {
  background: transparent !important;
}

/* ---------- Header ---------- */
.top {
  position: relative;
  height: auto;
  min-height: 150px;
  border-bottom: 0;
  background: var(--mj-green) url("../imgs/mj-header.svg") no-repeat center bottom / cover;
}

.top-cell {
  vertical-align: top;
  padding-top: 18px;
}

.top-left {
  color: #f3e3bd;
  font-weight: 600;
}

.mj-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  user-select: none;
}

.mj-diamond {
  width: 30px;
  height: 20px;
  margin-bottom: -2px;
}

.mj-mono,
.mj-name {
  font-family: var(--mj-serif);
  font-weight: 700;
  background: linear-gradient(180deg, #fff1c2 0%, #f0cd76 45%, #c08a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.mj-mono {
  font-size: 46px;
  letter-spacing: -3px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.mj-name {
  margin-top: 2px;
  font-size: 24px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.mj-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #ecd398;
  font-family: var(--mj-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.mj-tag i {
  display: block;
  width: 20px;
  height: 1px;
  background: #d9b65d;
}

.icon-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  line-height: 1;
  border-radius: 50%;
  border: 1.5px solid #e6c97f !important;
  background: radial-gradient(circle at 35% 30%, #fffdf5 0%, #f8ecd0 70%, #efdcae 100%) !important;
  color: var(--mj-green) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  vertical-align: middle;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.user-chip {
  border-radius: 999px;
  border: 1.5px solid #e6c97f;
  background: linear-gradient(180deg, #fffdf6, #f6ead0);
  color: var(--mj-green);
  font-family: var(--mj-font);
}

.user-name,
.user-id {
  color: var(--mj-green);
}

.login-pop .gold-btn,
.gold-btn,
.btn-buy {
  background: linear-gradient(180deg, var(--mj-green-2), var(--mj-green-deep));
  color: #fff;
  border: 1px solid rgba(212, 164, 64, 0.55);
}

/* ---------- Status pill (only shown when trading is closed on mobile) ---------- */
.trade-info.closed .trade-info-text strong {
  color: #b4232c !important;
}

/* ---------- Tabs ---------- */
#viewLive .tabs,
.live-market-panel .tabs,
.tabs,
.tabs.tabs-one {
  display: flex !important;
  align-items: center;
  gap: 0;
  padding: 5px;
  border-radius: 999px;
  border: 1.5px solid #dcb866;
  background: linear-gradient(180deg, #fffdf6 0%, #f8eed8 100%);
  box-shadow:
    0 4px 12px rgba(120, 90, 30, 0.14),
    inset 0 1px 0 #fff;
  overflow: hidden;
  white-space: nowrap;
}

#viewLive .tab,
.live-market-panel .tab,
.tabs .tab {
  position: relative;
  flex: 1 1 0% !important;
  display: block !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 12px 6px;
  border-radius: 999px;
  background: transparent;
  color: var(--mj-ink);
  font-family: var(--mj-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: none;
}

.tabs .tab:not(.on) + .tab:not(.on)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 22px;
  margin-top: -11px;
  background: #c9a14e;
}

#viewLive .tab.on,
.tabs .tab.on,
.tab.on {
  background: linear-gradient(180deg, #145a3d 0%, var(--mj-green) 55%, var(--mj-green-deep) 100%) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 3px 8px rgba(6, 42, 28, 0.35) !important;
}

.tab.on::after {
  display: none !important;
}

/* ---------- Spot cards (GOLD $ / SILVER $ / INR) ---------- */
#viewLive .cards,
.live-market-panel .cards {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

#viewLive .card,
.live-market-panel .card {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0;
  margin: 0;
  padding: 14px 6px 12px;
  border-radius: 14px;
  border: 1px solid var(--mj-line) !important;
  background: linear-gradient(180deg, #fffdf8 0%, #f8efda 100%) !important;
  box-shadow:
    0 6px 14px rgba(120, 90, 30, 0.14),
    inset 0 1px 0 #fff !important;
  text-align: center;
}

/* card-info flattened into the grid so icon + title share line 1 and the
   price spans line 2, matching the mock without touching app.js markup. */
#viewLive .card-top {
  display: grid !important;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 6px;
  text-align: center;
}

#viewLive .card-info {
  display: contents !important;
}

#viewLive .card-icon {
  display: block !important;
  width: auto !important;
  max-width: none;
  height: auto;
  margin: 0 !important;
  border: 0;
  background: transparent;
}

#viewLive .metal-icon {
  display: block;
  width: 32px !important;
  height: 24px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 1px 1px rgba(90, 60, 10, 0.3));
}

#viewLive .card-title {
  margin: 0;
  color: var(--mj-ink) !important;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: nowrap;
}

#viewLive .card-price,
#viewLive .card-price.white {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--mj-ink) !important;
  font-family: var(--mj-font);
  font-size: 26px !important;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
}

#viewLive .card-price.green {
  color: #15803d !important;
}

#viewLive .card-price.red {
  color: #dc2626 !important;
}

#viewLive .card-hl {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding-top: 0;
  border-top: 0 !important;
}

#viewLive .card-hl b {
  display: none;
}

#viewLive .card-hl .hl-col {
  display: inline;
  width: auto;
}

#viewLive .card-hl i,
#viewLive .card-hl .hl-low,
#viewLive .card-hl .hl-high {
  font-size: 12px !important;
  font-weight: 700;
  font-style: normal;
}

#viewLive .card-hl i.hl-low {
  color: var(--mj-low) !important;
}

#viewLive .card-hl i.hl-high {
  color: var(--mj-high) !important;
}

#viewLive .card-hl .hl-mid {
  display: inline-block;
  width: 1px;
  height: 13px;
  margin: 0;
  background: #b9a47a;
}

#viewLive .card-spark {
  display: none !important;
}

/* ---------- LIVE MARKET table ---------- */
#viewLive .products-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--mj-line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #fffdf8, #fbf3e1);
  box-shadow: none;
}

#viewLive .products-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#viewLive .products-head-left span {
  color: var(--mj-green) !important;
  font-family: var(--mj-font);
  font-size: 20px !important;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

#viewLive .products-head-left .mj-chart-ico {
  width: 32px;
  height: 32px;
  color: #b8862f !important;
  flex-shrink: 0;
}

#viewLive .products-badges {
  display: none !important;
}

/* Selected by id: setLive() rewrites className to "live-badge" / "live-badge off". */
#liveBadge {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  border: 1px solid #bfe0b5;
  background: linear-gradient(180deg, #f1faee, #dcefd5);
  color: #0b5a2e;
  font-family: var(--mj-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#liveBadge i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #19a34a;
  box-shadow: 0 0 0 3px rgba(25, 163, 74, 0.18);
  animation: mj-live-pulse 1.6s ease-in-out infinite;
}

#liveBadge.off {
  border-color: #f0c2c2;
  background: linear-gradient(180deg, #fff3f3, #fbe1e1);
  color: #a11d1d;
}

#liveBadge.off i {
  background: #d32424;
  box-shadow: 0 0 0 3px rgba(211, 36, 36, 0.18);
  animation: none;
}

@keyframes mj-live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

#viewLive .products-wrap {
  margin: 0;
  padding: 0 8px 10px;
  border: 1px solid var(--mj-line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #fbf3e1, #f8eed8);
  box-shadow: 0 8px 18px rgba(120, 90, 30, 0.14);
}

#viewLive #products {
  margin: 0;
  padding: 0;
  border: 1px solid #e3cf9e;
  border-radius: 4px;
  background: #fffaf0;
  box-shadow: none;
  overflow: hidden !important;
}

#viewLive .prod-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 27% 27%;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 58px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #eadbb5 !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, #fffcf4, #fbf3e1) !important;
  box-shadow: none;
}

#viewLive .prod-row:last-child {
  border-bottom: 0 !important;
}

#viewLive .prod-row > div {
  display: flex !important;
  align-items: center;
}

#viewLive .prod {
  gap: 12px;
  min-width: 0;
  padding: 6px 10px;
}

#viewLive .icon-wrap {
  display: inline-block;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1.5px solid #d6a84a;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7dc 0%, #f0d58f 60%, #d9a945 100%);
  box-shadow:
    0 2px 5px rgba(120, 90, 30, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  overflow: hidden;
  line-height: 0;
}

#viewLive .icon-wrap.icon-silver {
  border-color: #b7bfca;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e3e7ee 60%, #aab3bf 100%);
}

#viewLive .metal-icon-sm {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  transform: scale(1.45);
  mix-blend-mode: multiply;
}

#viewLive .prod-name b {
  color: var(--mj-brown) !important;
  font-family: var(--mj-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#viewLive .buy-col,
#viewLive .sell-col {
  justify-content: center;
  flex-direction: column;
  width: auto;
  min-width: 0;
  padding: 6px 4px;
  background: linear-gradient(180deg, var(--mj-green-2), #0a3a27);
  border-left: 1px solid rgba(233, 200, 120, 0.35);
  text-align: center;
  cursor: pointer;
}

#viewLive .buy-val,
#viewLive .sell-val {
  color: var(--mj-gold-text) !important;
  font-family: var(--mj-font);
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

#viewLive .prod-silver .buy-val,
#viewLive .prod-silver .sell-val {
  color: #ffffff !important;
}

/* Tick flash keeps working on the dark cells, in tones readable on green. */
#viewLive .buy-val.green,
#viewLive .sell-val.green {
  color: #7ee2a0 !important;
}

#viewLive .buy-val.red,
#viewLive .sell-val.red {
  color: #ff9a9a !important;
}

#viewLive .sub {
  display: block;
  margin-top: 3px;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0;
}

#viewLive .buy-col .sub {
  color: #ffb1a8 !important;
}

#viewLive .sell-col .sub {
  color: #9fe6b5 !important;
}

#viewLive .empty,
.empty,
.empty-screen {
  color: #6b5a3a !important;
}

#products .empty {
  padding: 18px 10px;
  text-align: center;
}

/* ---------- Booking banner ---------- */
#viewLive .mobile-dock-cards,
.mobile-dock-cards {
  display: block !important;
  margin-top: 16px;
}

.mj-book {
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(212, 164, 64, 0.6);
  background: linear-gradient(90deg, var(--mj-green) 0%, var(--mj-green-2) 60%, var(--mj-green) 100%);
  box-shadow: 0 8px 18px rgba(6, 42, 28, 0.28);
  text-decoration: none;
  color: #fff;
}

.mj-book-row {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 10px 14px 10px 16px;
}

.mj-book-wa {
  display: inline-flex;
  flex-shrink: 0;
  color: #fff;
}

.mj-book-divider {
  flex-shrink: 0;
  width: 1px;
  height: 42px;
  margin: 0 14px;
  background: linear-gradient(180deg, transparent, #d4a440, transparent);
}

.mj-book-copy {
  flex: 1;
  min-width: 0;
}

.mj-book-copy b {
  display: block;
  color: var(--mj-gold-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.mj-book-copy small {
  display: block;
  margin-top: 4px;
  color: #f3ead3;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mj-book-trophy {
  font-size: 12px;
}

.mj-book-chev {
  display: inline-flex;
  flex-shrink: 0;
  padding-left: 8px;
  color: var(--mj-gold-text);
}

/* ---------- Other views on cream ---------- */
.title-row,
.title-row .spark,
.title-row #pageTitle {
  color: var(--mj-green);
  font-family: var(--mj-serif);
}

.title-row .line {
  background: linear-gradient(90deg, transparent, #c9a14e, transparent);
}

.kyc {
  background: linear-gradient(90deg, rgba(253, 248, 236, 0.4), rgba(253, 248, 236, 0.95), rgba(253, 248, 236, 0.4));
  color: var(--mj-brown);
  border-top: 1px solid rgba(212, 164, 64, 0.35);
  border-bottom: 1px solid rgba(212, 164, 64, 0.35);
}

.margin-outer {
  background: linear-gradient(180deg, var(--mj-green-2), var(--mj-green-deep));
}

.margin-inner {
  background: rgba(4, 30, 19, 0.55);
}

.margin-gold h2 {
  color: var(--mj-gold-text);
}

.drawer {
  background: var(--mj-green-deep) url("../imgs/mj-header.svg") no-repeat center top / 100% auto;
}

.drawer-card.on {
  border-color: var(--mj-gold-text);
}

.site-footer {
  background: linear-gradient(180deg, var(--mj-green-2), var(--mj-green-deep));
  border-color: rgba(212, 164, 64, 0.45);
}

.site-footer-logo {
  border-radius: 50%;
}

.login-card {
  border: 1px solid rgba(212, 164, 64, 0.5);
}

.login-logo {
  width: 96px !important;
  height: 96px !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(6, 42, 28, 0.35);
}

.login-submit,
.gold-btn.login-submit {
  background: linear-gradient(180deg, var(--mj-green-2), var(--mj-green-deep)) !important;
  color: #fff !important;
}

/* Base uses table-cells here, which ignore height:1px and paint the whole row. */
.login-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mj-brown);
}

.login-or i {
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a14e, transparent);
}

.login-or b {
  display: block;
  width: auto;
  padding: 0;
}

.login-social-btn {
  border-color: #c9a14e;
  color: var(--mj-green);
}

/* ==========================================================================
   Mobile (<= 768px) — 1:1 with the app mock
   ========================================================================== */
@media (max-width: 768px) {
  .live-title-desk,
  .live-sub-desk,
  .prod-title-desk,
  .badge-desk {
    display: none !important;
  }

  .live-title-mob,
  .live-sub-mob,
  .prod-title-mob,
  .badge-mob {
    display: inline !important;
  }

  .user-wrap,
  #phoneText,
  #pageTitleRow,
  #kycBanner,
  .trade-status-dot,
  #tradeClock {
    display: none !important;
  }

  /* Base sheet sets .top z-index 60; dropped so the cream sheet below can
     ride over the swoosh while the call/WA buttons (top 18px) stay clear. */
  .top {
    display: block;
    z-index: 1;
    min-height: 168px;
    height: auto;
    padding: 0;
  }

  .top-center {
    display: block;
    width: 100%;
    padding: 14px 0 0;
    text-align: center;
  }

  /* Call + WhatsApp sit together top-right like the app, so both cells
     are pulled out of the table flow. */
  .top-left,
  .top-right {
    position: absolute;
    top: 18px;
    width: auto;
    padding: 0;
    z-index: 2;
  }

  .top-left {
    right: 68px;
  }

  .top-right {
    right: 12px;
  }

  .icon-btn {
    margin: 0 !important;
  }

  .mj-brand {
    max-width: calc(100vw - 150px);
  }

  .mj-name {
    font-size: clamp(18px, 6.2vw, 24px);
  }

  /* Cream sheet with rounded top lifted over the header swoosh. */
  .view-panel.show {
    position: relative;
    z-index: 2;
    margin-top: -26px;
    padding-top: 14px;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(180deg, var(--mj-cream) 0, rgba(253, 248, 236, 0.92) 220px, rgba(253, 248, 236, 0) 520px);
  }

  .live-market-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: auto !important;
    max-width: none;
    margin: 0 12px !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .live-market-panel .live-head {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  /* Trading-closed is the only state worth interrupting the mock layout for. */
  .live-market-panel .live-head:has(.trade-info.closed) {
    display: flex;
    justify-content: center;
  }

  .live-head-left {
    display: none !important;
  }

  .live-head .trade-info,
  .trade-info {
    position: static !important;
    transform: none;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0 auto;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #f0c2c2;
    background: linear-gradient(180deg, #fff3f3, #fbe1e1);
    box-shadow: none;
  }

  .trade-lock {
    display: inline-flex !important;
    width: 18px;
    height: 18px;
    color: #b4232c;
  }

  .trade-info-text strong {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .tabs .tab {
    padding: 12px 4px;
    font-size: clamp(13px, 3.9vw, 15px);
  }

  /* Mock shows 3 spot cards; stores with more header scripts (e.g. SILVER ₹,
     GOLD ₹) swipe sideways instead of squeezing every price unreadable. */
  #viewLive .cards {
    width: auto !important;
    gap: 10px;
    margin: 0 -12px !important;
    padding: 2px 12px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #viewLive .cards::-webkit-scrollbar {
    display: none;
  }

  #viewLive .card {
    flex: 0 0 calc((100% - 44px) / 3) !important;
    padding: 14px 4px 12px;
    scroll-snap-align: start;
  }

  #viewLive .card-title {
    font-size: clamp(10.5px, 3.2vw, 12.5px);
  }

  #viewLive .metal-icon {
    width: clamp(24px, 7.6vw, 32px) !important;
    height: clamp(18px, 5.6vw, 24px) !important;
  }

  #viewLive .card-price,
  #viewLive .card-price.white {
    font-size: clamp(20px, 6.7vw, 26px) !important;
  }

  #viewLive .card-hl i,
  #viewLive .card-hl .hl-low,
  #viewLive .card-hl .hl-high {
    font-size: clamp(10px, 3.1vw, 12px) !important;
  }

  #viewLive .layout,
  .layout {
    padding: 16px 12px 124px !important;
  }

  /* Mock shows bare buy/sell numbers; L/H lives in the spot cards above. */
  #viewLive .sub {
    display: none !important;
  }

  #viewLive .buy-val,
  #viewLive .sell-val {
    font-size: clamp(14px, 4.4vw, 17px) !important;
  }

  #viewLive .prod-name b {
    font-size: clamp(13px, 3.9vw, 15px);
  }

  #viewLive .icon-wrap {
    width: clamp(36px, 11vw, 44px);
    height: clamp(36px, 11vw, 44px);
  }

  #viewLive .prod {
    gap: 10px;
    padding: 6px 8px 6px 10px;
  }

  /* ---------- Bottom dock ---------- */
  .bottom-wrap {
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .nav-mobile {
    width: 100% !important;
    height: 76px;
    padding: 0 6px;
    border-radius: 22px;
    border: 1px solid rgba(212, 164, 64, 0.5);
    background: linear-gradient(180deg, #11503a 0%, var(--mj-green) 45%, var(--mj-green-deep) 100%);
    box-shadow:
      0 10px 24px rgba(6, 42, 28, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .nav-mobile .nav-item {
    color: #f5ecd6 !important;
    font-family: var(--mj-font);
  }

  .nav-mobile .nav-ico {
    width: 26px;
    height: 26px;
    margin: 0 0 5px;
    color: #f5ecd6;
  }

  .nav-mobile .nav-ico svg {
    width: 26px;
    height: 26px;
  }

  .nav-mobile .nav-label {
    color: #f5ecd6;
    font-size: 12.5px;
    font-weight: 600;
  }

  .nav-mobile .nav-item.on:not(.nav-live-mob) .nav-ico,
  .nav-mobile .nav-item.on:not(.nav-live-mob) .nav-label {
    color: var(--mj-gold-text);
    font-weight: 700;
  }

  /* Raised gold medallion; the label sits inside the circle as in the mock. */
  .nav-mobile .nav-live-mob {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    margin-top: -30px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 28%, #fff3c9 0%, #f3d17c 40%, #d9a540 75%, #b07c22 100%);
    border: 2px solid #f6dc95;
    box-shadow:
      0 0 0 4px rgba(243, 211, 136, 0.28),
      0 10px 18px rgba(0, 0, 0, 0.35),
      inset 0 -4px 8px rgba(120, 80, 20, 0.35);
  }

  .nav-mobile .live-circle,
  .nav-mobile .nav-live-mob .nav-ico.live-circle {
    width: 30px;
    height: 30px;
    margin: 4px auto 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--mj-green);
  }

  .nav-mobile .nav-live-mob .nav-ico svg {
    width: 30px;
    height: 30px;
  }

  .nav-mobile .nav-live-mob .nav-label,
  .nav-mobile .nav-live-mob.on .nav-label {
    color: var(--mj-green) !important;
    font-weight: 700;
  }

  .layout,
  .margin-page,
  .empty-screen,
  .notify-list,
  #viewOrders .layout {
    padding-bottom: 124px !important;
  }

  .login-card {
    background: #fffdf8 !important;
  }

  .login-title {
    color: var(--mj-green) !important;
  }
}

/* ==========================================================================
   iPad + web shared (>= 769px): cream nav pill hanging off the header
   ========================================================================== */
@media (min-width: 769px) {
  .top {
    min-height: 168px;
    padding: 0 clamp(16px, 2.4vw, 40px) 40px;
  }

  .top-cell {
    padding: 22px 0 0;
  }

  .top-left {
    font-size: clamp(13px, 1vw, 16px);
  }

  .top-left .icon-btn {
    margin-right: 10px;
  }

  .top-right .icon-btn {
    margin-right: 10px;
  }

  .mj-diamond {
    width: 36px;
    height: 24px;
  }

  .mj-mono {
    font-size: clamp(48px, 4vw, 64px);
  }

  .mj-name {
    font-size: clamp(24px, 2vw, 32px);
  }

  .mj-tag {
    font-size: clamp(10px, 0.75vw, 12px);
  }

  /* Must beat .top's z-index 60 from the base sheet or the pill hides under the swoosh. */
  .top-nav {
    position: relative;
    z-index: 70;
    width: min(1100px, calc(100% - 32px));
    margin: -30px auto 0;
    padding: 6px;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 999px;
    border: 1.5px solid #dcb866;
    background: linear-gradient(180deg, #fffdf6 0%, #f8eed8 100%);
    box-shadow:
      0 6px 16px rgba(120, 90, 30, 0.18),
      inset 0 1px 0 #fff;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav-item {
    flex: 1 1 auto;
    padding: 10px 12px;
    color: var(--mj-green);
    font-family: var(--mj-font);
    font-size: clamp(12px, 0.9vw, 15px);
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .top-nav-item:hover {
    background: rgba(11, 61, 42, 0.07);
    border-color: transparent;
  }

  .top-nav-item.on {
    background: linear-gradient(180deg, #145a3d 0%, var(--mj-green) 55%, var(--mj-green-deep) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 3px 8px rgba(6, 42, 28, 0.35);
  }

  .title-row {
    margin-top: 10px;
    font-size: clamp(16px, 1.2vw, 22px);
  }

  .title-row .spark {
    display: inline;
    color: var(--mj-gold);
  }

  .kyc {
    width: min(1100px, calc(100% - 32px));
    margin: 6px auto 0;
    border-radius: 999px;
    border: 1px solid rgba(212, 164, 64, 0.35);
  }

  /* style.css hides .page.scrollable .live-head; the status + clock row is wanted here. */
  .page.scrollable #viewLive .live-head,
  #viewLive .live-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .live-head-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mj-green) !important;
    font-family: var(--mj-serif);
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 700;
    letter-spacing: 0.06em;
  }

  .live-head-title svg {
    color: #b8862f;
  }

  .live-head-sub {
    margin: 2px 0 0;
    color: var(--mj-brown) !important;
    font-size: 12px;
  }

  .live-head .trade-info {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #bfe0b5;
    background: linear-gradient(180deg, #f1faee, #dcefd5);
  }

  .live-head .trade-info.closed {
    border-color: #f0c2c2;
    background: linear-gradient(180deg, #fff3f3, #fbe1e1);
  }

  .trade-info-text strong {
    display: block;
    color: #0b5a2e !important;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .trade-info-text span {
    color: var(--mj-ink) !important;
    font-size: 11px;
  }

  .live-market-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--mj-line);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(248, 239, 218, 0.96));
    box-shadow: 0 10px 24px rgba(120, 90, 30, 0.16);
  }

  .live-market-panel .live-head,
  .live-market-panel .tabs,
  .live-market-panel .cards {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  /* Header grid shares the table's content box so WE BUY / WE SELL sit exactly
     over the green columns: wrap border 1 + wrap padding 8 + table border 1
     = header border 1 + header padding 9. */
  #viewLive .products-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 27% 27%;
    align-items: center;
    padding: 14px 9px 0;
  }

  #viewLive .products-head-left {
    grid-column: 1;
    grid-row: 1;
    padding: 0 0 12px 9px;
  }

  #viewLive #liveBadge {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin: 0 12px 12px 0;
  }

  #viewLive .products-badges {
    display: contents !important;
  }

  #viewLive .badge-buy,
  #viewLive .badge-sell {
    grid-row: 1;
    align-self: end;
    justify-self: stretch;
    margin: 0;
    padding: 6px 0;
    border-radius: 10px 10px 0 0;
    border: 0;
    background: linear-gradient(180deg, #145a3d, var(--mj-green-2)) !important;
    color: var(--mj-gold-text) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
  }

  #viewLive .badge-buy {
    grid-column: 2;
  }

  #viewLive .badge-sell {
    grid-column: 3;
    margin-left: 1px;
  }

  #viewLive .products-wrap {
    padding-top: 0;
  }

  #viewLive #products {
    border-top-left-radius: 4px;
    border-top-right-radius: 0;
  }

  .site-footer {
    width: min(1100px, calc(100% - 32px));
    max-width: none;
  }
}

/* ==========================================================================
   iPad (769–1180px): single column, mobile card language scaled up
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1180px) {
  .live-market-panel,
  #viewLive .layout {
    width: min(900px, calc(100% - 40px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .live-market-panel {
    margin-top: 16px !important;
  }

  #viewLive .layout {
    padding: 18px 0 3rem !important;
  }

  #viewLive .cards {
    gap: 16px;
  }

  #viewLive .card {
    padding: 20px 10px 16px;
    border-radius: 16px;
  }

  #viewLive .metal-icon {
    width: 40px !important;
    height: 30px !important;
  }

  #viewLive .card-title {
    font-size: 15px;
  }

  #viewLive .card-price,
  #viewLive .card-price.white {
    font-size: 34px !important;
  }

  #viewLive .card-hl i,
  #viewLive .card-hl .hl-low,
  #viewLive .card-hl .hl-high {
    font-size: 14px !important;
  }

  .tabs .tab {
    padding: 14px 8px;
    font-size: 17px;
  }

  #viewLive .prod-row {
    min-height: 70px;
  }

  #viewLive .icon-wrap {
    width: 52px;
    height: 52px;
  }

  #viewLive .prod-name b {
    font-size: 18px;
  }

  #viewLive .buy-val,
  #viewLive .sell-val {
    font-size: 22px !important;
  }

  .mj-book-copy b {
    font-size: 22px;
  }

  .mj-book-copy small {
    font-size: 14px;
  }
}

/* ==========================================================================
   Web / TV (>= 1181px): spot cards left, LIVE MARKET table right
   ========================================================================== */
@media (min-width: 1181px) {
  #viewLive.show {
    display: grid !important;
    grid-template-columns: minmax(340px, 30%) minmax(0, 1fr);
    align-items: start;
    gap: clamp(18px, 1.6vw, 32px);
    width: min(1600px, calc(100% - 4vw));
    margin: 18px auto 0;
  }

  #viewLive .live-market-panel,
  #viewLive .layout {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  #viewLive .layout {
    padding: 0 0 2.5rem !important;
  }

  /* Column direction: the shared flex:1 1 0 would collapse every card to 0 height. */
  #viewLive .cards {
    flex-direction: column;
    gap: 10px;
  }

  #viewLive .card {
    flex: 0 0 auto !important;
  }

  /* Wide horizontal spot cards: icon+title left, price right, L|H under price. */
  #viewLive .card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    padding: clamp(10px, 0.75vw, 16px) clamp(14px, 1.1vw, 22px);
    border-radius: 14px;
    text-align: left;
  }

  #viewLive .card-top {
    display: contents !important;
  }

  #viewLive .card-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex !important;
    align-items: center;
    gap: 12px;
  }

  #viewLive .card-title {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-left: 64px;
    font-size: clamp(15px, 1vw, 20px);
  }

  #viewLive .metal-icon {
    width: 52px !important;
    height: 38px !important;
  }

  #viewLive .card-price,
  #viewLive .card-price.white {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: clamp(26px, 1.9vw, 42px) !important;
    text-align: right;
  }

  #viewLive .card-hl {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
    margin-top: 4px;
  }

  #viewLive .card-hl i,
  #viewLive .card-hl .hl-low,
  #viewLive .card-hl .hl-high {
    font-size: clamp(13px, 0.85vw, 17px) !important;
  }

  .tabs .tab {
    padding: 13px 8px;
    font-size: clamp(14px, 0.95vw, 18px);
  }

  #viewLive .products-head-left span {
    font-size: clamp(20px, 1.4vw, 28px) !important;
  }

  #viewLive .prod-row {
    min-height: clamp(70px, 5.4vw, 96px);
  }

  #viewLive .icon-wrap {
    width: clamp(50px, 3.4vw, 64px);
    height: clamp(50px, 3.4vw, 64px);
  }

  #viewLive .prod {
    gap: 16px;
    padding: 8px 18px;
  }

  #viewLive .prod-name b {
    font-size: clamp(17px, 1.25vw, 26px);
  }

  #viewLive .buy-val,
  #viewLive .sell-val {
    font-size: clamp(22px, 1.75vw, 36px) !important;
  }

  #viewLive .sub {
    font-size: clamp(11px, 0.75vw, 15px) !important;
  }

  .mj-book-row {
    min-height: 84px;
    padding: 12px 22px;
  }

  .mj-book-copy b {
    font-size: clamp(20px, 1.4vw, 26px);
  }

  .mj-book-copy small {
    font-size: clamp(13px, 0.9vw, 16px);
  }
}
