:root {
  --bg0: #240000;
  --bg1: #310000;
  --header0: #4a0000;
  --header1: #250000;
  --card: #3a0000;
  --card2: #2c0000;
  --gold: #f4b900;
  --gold-hi: #ffd75a;
  --grad: linear-gradient(135deg, #9d6100, #ffd75a 55%, #b87900);
  --text: #fff9e8;
  --muted: #d9b98a;
  --line: rgba(244, 185, 0, 0.35);
  --up: #1e8f4e;
  --down: #b51f3c;
  --pill: #b51f3c;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --nav-h: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Poppins", "Montserrat", "Segoe UI", sans-serif;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg1), var(--bg0) 70%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 0; height: 0; }
::selection { background: var(--gold); color: #200; }

.app {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  min-height: 100vh;
  position: relative;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 14px;
  padding-top: calc(12px + env(safe-area-inset-top));
  min-height: 88px;
  background: linear-gradient(180deg, var(--header0), var(--header1));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.appbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--grad);
  opacity: 0.7;
}
.iconbtn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 215, 90, 0.06);
  color: var(--gold-hi);
  font-size: 18px;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.iconbtn:active { transform: scale(.9); background: rgba(255, 215, 90, 0.18); }
.iconbtn svg { width: 22px; height: 22px; }
.appbar .brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 96px);
  gap: 0;
  pointer-events: none;
}
.appbar .brand .brand-mark {
  height: 68px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
  mix-blend-mode: screen;
}
.appbar .brand .brand-name {
  height: auto;
  width: auto;
  flex: 0 1 auto;
  max-width: 260px;
  max-height: 76px;
  object-fit: contain;
  animation: none;
  mix-blend-mode: screen;
  margin-left: -18px;
}
.appbar .brand .btxt { line-height: 1; }
.appbar .brand .btxt b { font-size: 14px; letter-spacing: 2px; color: var(--gold-hi); }
.appbar .brand .btxt span { font-size: 8px; letter-spacing: 3px; color: var(--muted); display: block; margin-top: 2px; }
.bell-dot { position: relative; }
.bell-dot::after { content: ""; position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--header1); animation: pulse 1.6s infinite; }

.page { padding: 14px; animation: pageIn .45s cubic-bezier(.22,.61,.36,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 70% { transform: scale(2.2); opacity: 0; } 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .6s forwards; }

.card {
  background: linear-gradient(160deg, var(--card), var(--card2));
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 215, 90, 0.05);
  overflow: hidden;
  margin-bottom: 14px;
}
.ribbon {
  display: block;
  text-align: center;
  margin: 0 auto;
  width: max-content;
  padding: 7px 26px;
  background: var(--grad);
  color: #2a0000;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 13px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.section-title { text-align: center; color: var(--gold-hi); letter-spacing: 3px; font-weight: 800; margin: 22px 0 14px; font-size: 17px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }

.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.summary .cell { padding: 7px 6px; text-align: center; position: relative; }
.summary .cell + .cell::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: var(--line); }
.summary .cell .nm { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--gold-hi); font-weight: 700; font-size: 12px; letter-spacing: .4px; }
.summary .cell .nm .metal-ico { width: 15px; height: 15px; }
.summary .cell .nm .metal-ico svg { width: 10px; height: 10px; }
.summary .cell .val { font-size: 16px; font-weight: 800; margin-top: 1px; line-height: 1.25; font-variant-numeric: tabular-nums; transition: color .25s; }
.summary .cell .hl { font-size: 9.5px; color: var(--muted); margin-top: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary .cell .mv { font-size: 11px; margin-top: 2px; color: var(--muted); }

.rtable { width: 100%; border-collapse: collapse; }
/* Future Rates: hide Product / Buy / Sell heading row */
.future-table thead { display: none; }
.rtable th { background: var(--grad); color: #2a0000; font-size: 12px; letter-spacing: 1px; padding: 8px 10px; text-transform: uppercase; }
.rtable th:first-child { text-align: left; }
.rtable th:not(:first-child) { text-align: right; }
.rtable td { padding: 10px; border-top: 1px solid rgba(244,185,0,.12); vertical-align: middle; }
.rtable .prod { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.rtable .num { text-align: right; }
.rtable .num .big { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; padding: 2px 8px; border-radius: 8px; transition: background .3s, color .3s; }
/* Live Bullion Rates (main section): bigger, highlighted Buy / Sell rates */
/* fixed column widths so every row/pill lines up on all screen sizes */
.bullion-table { table-layout: fixed; }
.bullion-table th:nth-child(1) { width: 36%; }
.bullion-table th:nth-child(2), .bullion-table th:nth-child(3) { width: 32%; text-align: center; }
.bullion-table th { padding: 8px 6px; font-size: clamp(10px, 2.9vw, 12px); }
.bullion-table th:first-child { padding-left: 10px; }
.bullion-table td { padding: 10px 3px; }
.bullion-table td:first-child { padding-left: 10px; padding-right: 4px; }
.bullion-table td:last-child { padding-right: 8px; }
.bullion-table .prod { font-size: clamp(11px, 3.2vw, 13px); line-height: 1.25; gap: 6px; word-break: break-word; }
.bullion-table .prod .metal-ico { flex: 0 0 auto; }
.bullion-table .num { text-align: center; }
/* rate scales with screen width: ~15px on 320px phones, up to 24px on wide screens */
.bullion-table .num .big {
  display: flex; justify-content: center; width: 100%;
  font-size: clamp(15px, 5vw, 24px); line-height: 1.3; letter-spacing: 0;
  padding: 3px 2px; white-space: nowrap;
  color: var(--gold-hi); text-shadow: 0 1px 6px rgba(255, 215, 90, .25);
}
.bullion-table .num .big.rup, .bullion-table .num .big.rdown, .bullion-table .flash-up .big, .bullion-table .flash-down .big { text-shadow: none; }
/* Future Rates (GOLD FUTURE / SILVER FUTURE): color code buy/sell like EMA up/down */
.future-table { table-layout: fixed; width: 100%; }
.future-table th:nth-child(1), .future-table td:nth-child(1) { width: 22%; }
.future-table th:nth-child(2), .future-table td:nth-child(2),
.future-table th:nth-child(3), .future-table td:nth-child(3) { width: 23%; }
.future-table td { padding: 10px 2px; }
.future-table .prod { font-size: clamp(10px, 3vw, 12px); }
.future-table .num .big { font-size: clamp(12px, 3.6vw, 16px); padding: 2px 4px; white-space: nowrap; text-shadow: none; border-radius: 6px; transition: color .3s, background .3s; }
.future-table .num .big.rup { background: rgba(30,143,78,.92) !important; color: #eafff1 !important; }
.future-table .num .big.rdown { background: var(--pill, #b51f3c) !important; color: #fff !important; }
.rtable .num .sub { font-size: 10px; color: var(--muted); margin-top: 3px;text-align: center;display: none; }
/* Future Rates: MCX high / low shown on the side, like the website */
.future-table .hlcol { text-align: right; white-space: nowrap; width: 32%; padding-right: 6px; padding-left: 0; }
.future-table .hlcol .hi, .future-table .hlcol .lo { display: inline; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.4; }
.future-table .hlcol .hi::after { content: " / "; color: #d9b98a; }
.future-table .hlcol .hi { color: #d9b98a; }
.future-table .hlcol .lo { color: #d9b98a; }
.flash-up .big { background: rgba(30,143,78,.9); color: #eafff1 !important; }
.flash-down .big { background: var(--pill); color: #fff !important; }
.arrow { font-size: 11px; }

.mstrip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line);display: none; }
.mstrip .tag { background: var(--grad); color: #2a0000; font-weight: 800; font-size: 10px; letter-spacing: 1px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.mstrip .msg { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.mstrip .msg b { color: var(--gold-hi); }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); display: inline-block; margin-right: 5px; animation: pulse2 1.4s infinite; }
@keyframes pulse2 { 0%,100% { box-shadow: 0 0 0 0 rgba(30,143,78,.6);} 50% { box-shadow: 0 0 0 6px rgba(30,143,78,0);} }

.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x mandatory; }
.pcard { flex: 0 0 44%; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; background: var(--card2); box-shadow: var(--shadow); transition: transform .3s; }
.pcard:active { transform: scale(.96); }
.pcard img { width: 100%; height: 108px; object-fit: cover; display: block; }
.pcard .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; text-align: center; font-size: 12px; font-weight: 600; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); }

.news-item { padding: 12px 14px; border-top: 1px solid rgba(244,185,0,.12); }
.news-item:first-child { border-top: 0; }
.news-item .dt { font-size: 10px; color: var(--gold); letter-spacing: .5px; }
.news-item .hl { font-size: 13px; margin-top: 4px; line-height: 1.4; }
.viewall { display: block; text-align: center; padding: 12px; color: var(--gold-hi); font-weight: 700; letter-spacing: 1px; border-top: 1px solid var(--line); }

.gauge-wrap { display: grid; place-items: center; padding: 18px 0 6px; }
.gauge { position: relative; width: 170px; height: 170px; }
.gauge svg { transform: rotate(-90deg); }
.gauge .ring-bg { stroke: rgba(255,255,255,.08); }
.gauge .ring-fg { stroke: url(#gg); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.22,.61,.36,1); }
.gauge .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .center .lbl { font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.gauge .center .res { font-size: 30px; font-weight: 900; letter-spacing: 2px; }
.trend-note { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 14px 12px; }
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 10px 14px; border-top: 1px solid rgba(244,185,0,.12); font-size: 13px; }
.kv td:last-child { text-align: right; color: var(--gold-hi); font-weight: 700; font-variant-numeric: tabular-nums; }

.info-card { padding: 16px; text-align: center; }
.info-card h3 { color: var(--gold-hi); letter-spacing: 1px; margin: 0 0 10px; }
.info-card p { margin: 3px 0; font-size: 13px; color: var(--muted); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 10px; font-weight: 700; letter-spacing: .5px; border: none; cursor: pointer; font-size: 13px; transition: transform .15s, filter .2s; }
.btn:active { transform: scale(.95); }
.btn-gold { background: var(--grad); color: #2a0000; }
.btn-green { background: linear-gradient(135deg, #17a05a, #0c7c40); color: #fff; }
.btn-red { background: linear-gradient(135deg, #d33a54, #9c1730); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--gold-hi); }
.btn-block { width: 100%; justify-content: center; }

.footer { text-align: center; padding: 16px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, var(--header1)); }
.footer .links { margin-top: 6px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.footer .links a { color: var(--gold); }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; justify-content: space-around; align-items: flex-end;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(180deg, var(--header0), var(--header1));
  border-top: 1px solid var(--line);
  max-width: 520px; margin: 0 auto;
}
.bottomnav::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--grad); opacity: .7; }
.navitem { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10px; padding: 8px 0; cursor: pointer; transition: color .2s, transform .2s; }
.navitem svg { width: 22px; height: 22px; }
.navitem.active { color: var(--gold-hi); }
.navitem.active svg { filter: drop-shadow(0 0 6px rgba(244,185,0,.7)); }
.navitem:active { transform: translateY(-2px); }
.navitem.center { margin-top: -18px; }
.navitem.center .book { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #2a0000; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(244,185,0,.4); border: 3px solid var(--header1); }
.navitem.center .book svg { width: 26px; height: 26px; }

.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 60; }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: 82%; max-width: 340px; z-index: 70;
  background: linear-gradient(160deg, var(--header0), #1c0000);
  border-right: 1px solid var(--line);
  transform: translateX(-105%);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top);
  overflow-y: auto;
}
.drawer.show { transform: none; }
.drawer .dhead { padding: 22px 18px; text-align: center; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.drawer .dhead .dhead-mark { height: 72px; width: auto; object-fit: contain; mix-blend-mode: screen; }
.drawer .dhead .dhead-name { width: auto; max-width: 220px; max-height: 70px; object-fit: contain; mix-blend-mode: screen; }
.drawer .dnav { padding: 10px; }
.drawer .dnav a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 500; margin-bottom: 2px; transition: background .2s, transform .2s; }
.drawer .dnav a svg { width: 20px; height: 20px; color: var(--gold); }
.drawer .dnav a:active { background: rgba(255,215,90,.12); transform: translateX(4px); }
.drawer .dnav a.logout { color: #ff9db0; }
.drawer .dnav a.logout svg { color: #ff9db0; }
.drawer .dver { margin-top: auto; padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); text-align: center; font-size: 11px; letter-spacing: 1.2px; font-weight: 600; color: var(--gold); opacity: .75; border-top: 1px solid var(--line); }

.fab { position: fixed; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 44; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.5); color: #fff; animation: floaty 3s ease-in-out infinite; }
.fab svg { width: 26px; height: 26px; }
.fab.wa { left: 16px; background: #25d366; }
.fab.call { right: 16px; background: var(--grad); color: #2a0000; }

.snackbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 84px + env(safe-area-inset-bottom)); z-index: 55; max-width: 496px; margin: 0 auto; background: linear-gradient(160deg, var(--card), var(--card2)); border: 1px solid var(--line); border-radius: 12px; padding: 14px 46px 14px 16px; box-shadow: var(--shadow); font-size: 13px; transform: translateY(220%); opacity: 0; transition: transform .4s, opacity .4s; }
.snackbar.show { transform: none; opacity: 1; }
.snackbar .x { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--gold-hi); cursor: pointer; z-index: 2; border-radius: 8px; background: rgba(255,215,90,.08); }
.snackbar .x svg { width: 18px; height: 18px; pointer-events: none; }
.snackbar .x:active { background: rgba(255,215,90,.25); }
.snackbar b { color: var(--gold-hi); }

.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 24px; background: rgba(0,0,0,.7); }
.modal.show { display: grid; }
.modal .box { background: linear-gradient(160deg, var(--card), var(--card2)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-align: center; max-width: 340px; width: 100%; animation: rise .4s; box-shadow: var(--shadow); }
.modal .box img { height: 60px; margin-bottom: 10px; }
.modal .box h3 { color: var(--gold-hi); margin: 0 0 8px; letter-spacing: 1px; }
.modal .box p { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.modal .box .m-actions { display: flex; gap: 10px; justify-content: center; }

.ticker-bar { overflow: hidden; background: var(--grad); color: #2a0000; white-space: nowrap; }
.ticker-bar .track { display: inline-block; padding: 7px 0; font-weight: 600; font-size: 12px; animation: marquee 22s linear infinite; }
@keyframes marquee { from { transform: translateX(100%);} to { transform: translateX(-100%);} }

.spinner { width: 38px; height: 38px; border: 3px solid rgba(244,185,0,.25); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 14px; }

.offline { position: fixed; left: 0; right: 0; top: 0; z-index: 90; background: var(--down); color: #fff; text-align: center; font-size: 12px; padding: 7px; transform: translateY(-100%); transition: transform .3s; }
.offline.show { transform: none; }

.metal-ico { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.metal-ico svg { width: 13px; height: 13px; animation: coinspin 6s linear infinite; }
.metal-gold { background: radial-gradient(circle at 35% 30%, #ffe9a8, #e0a400 60%, #a06e00); color: #6b4a00; }
.metal-silver { background: radial-gradient(circle at 35% 30%, #ffffff, #c9cfd6 60%, #8b929b); color: #4a5560; }
@keyframes coinspin { 0%,80% { transform: rotateY(0);} 90% { transform: rotateY(180deg);} 100% { transform: rotateY(360deg);} }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 4px; background: transparent; border: none;
  border-bottom: 2px solid var(--line); color: var(--text); font-size: 15px; outline: none; transition: border-color .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field select option { background: var(--card); }
.line-input { width: 100%; padding: 12px 4px; background: transparent; border: none; border-bottom: 2px solid var(--line); color: var(--text); font-size: 15px; outline: none; }

.seg { display: flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.seg button { flex: 1; padding: 12px; background: transparent; border: none; color: var(--muted); font-weight: 700; letter-spacing: 1px; cursor: pointer; transition: all .25s; }
.seg button.active { background: var(--grad); color: #2a0000; box-shadow: inset 0 -3px 8px rgba(0,0,0,.2); }

.bidask { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.bidask .c { padding: 18px; text-align: center; }
.bidask .c + .c { border-left: 2px solid var(--line); }
.bidask .c .k { font-size: 12px; letter-spacing: 1px; color: var(--gold); }
.bidask .c .v { font-size: 30px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }

.title-banner { background: var(--grad); color: #2a0000; text-align: center; font-weight: 800; letter-spacing: 2px; padding: 12px; border-radius: 12px; margin-bottom: 16px; box-shadow: var(--shadow); }

.trade-block { border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; color: #fff; box-shadow: var(--shadow); animation: rise .5s; }
.trade-buy { background: linear-gradient(135deg, #1d3f7a, #14284d); border: 1px solid rgba(120,160,255,.3); }
.trade-sell { background: linear-gradient(135deg, #7a1d2e, #4d1420); border: 1px solid rgba(255,120,140,.3); }
.trade-block .r1 { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.trade-block .r2 { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; opacity: .9; }
.trade-block .r3 { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11px; }
.chip { padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.18); }

@media (min-width: 720px) {
  .app { max-width: 720px; }
  .bottomnav { max-width: 720px; }
}

.rup { background: rgba(30,143,78,.92) !important; color: #eafff1 !important; }
.rdown { background: var(--pill) !important; color: #fff !important; }
.summary .cell .val .pill { display: inline-block; padding: 0 8px; border-radius: 6px; transition: background .3s, color .3s; }
