@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #08070a;
  --ink2: #100d0c;
  --card: #15110d;
  --elev: #1a1510;
  --line: rgba(58, 45, 24, .7);
  --line-soft: rgba(58, 45, 24, .38);
  --gold: #d4a72c;
  --gold-br: #f2d15b;
  --gold-dk: #8a641a;
  --gold-mu: #a9863a;
  --buy: #40c58a;
  --sell: #ea5b60;
  --txt: #f1e9da;
  --txt2: #a89c8d;
  --txt3: #81786d;
  --r: 10px;
  --pad: 13px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--ink);
  color: var(--txt);
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 14px;
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(120% 55% at 50% -8%, #1d160f 0%, rgba(29, 22, 15, 0) 62%),
    linear-gradient(180deg, #0b090b 0%, var(--ink) 34%, #070609 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }

::-webkit-scrollbar { width: 0; height: 0; }
.top { padding-top: var(--sat); position: relative; z-index: 5; }

.bell {
  position: absolute; right: 10px; top: calc(var(--sat) + 10px);
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; color: var(--gold);
  transition: transform .25s var(--ease), background .25s;
}
.bell:active { transform: scale(.88); background: rgba(212, 167, 44, .12); }
.bell svg { animation: swing 5s ease-in-out infinite; transform-origin: 50% 15%; }
@keyframes swing { 0%, 82%, 100% { transform: rotate(0) } 86% { transform: rotate(13deg) } 90% { transform: rotate(-11deg) } 94% { transform: rotate(6deg) } }

.brand { display: grid; justify-items: center; gap: 3px; padding: 8px 0 10px; }
.crest {
  width: 52px; height: 52px;
  filter: drop-shadow(0 0 12px rgba(212, 167, 44, .28));
  animation: crestIn .9s var(--ease) both;
}
@keyframes crestIn { from { opacity: 0; transform: translateY(-8px) scale(.82) } to { opacity: 1; transform: none } }

.wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: 2.5px;
  background: linear-gradient(180deg, #fbebb4, var(--gold) 52%, #a97d1f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .7s .08s var(--ease) both;
}
.submark { font-size: 9px; font-weight: 600; letter-spacing: 6.5px; color: var(--gold-mu); animation: rise .7s .16s var(--ease) both; }
.strap { font-size: 7.5px; font-weight: 600; letter-spacing: 2.6px; color: rgba(169, 134, 58, .78); animation: rise .7s .24s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px) } to { opacity: 1; transform: none } }

.livebar {
  margin: 0 var(--pad) 9px; height: 31px; border-radius: 8px;
  background: linear-gradient(180deg, #171208, #100c07);
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; padding: 0 11px;
  font-size: 10px; font-weight: 600; letter-spacing: 1.3px; color: #cbb98f;
  animation: rise .6s .3s var(--ease) both;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--buy); flex: 0 0 auto; animation: pulse 1.8s infinite; }
.dot.warn { background: #e3a92c; } .dot.off { background: #6b6b6b; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(64, 197, 138, .55) } 70% { box-shadow: 0 0 0 7px rgba(64, 197, 138, 0) } 100% { box-shadow: 0 0 0 0 rgba(64, 197, 138, 0) } }
.livebar span { flex: 1; text-align: center; }

.marquee { overflow: hidden; margin: 0 var(--pad) 9px; border-radius: 8px; border: 1px solid var(--line-soft); background: #0e0b09; }
.marquee > div { display: inline-block; white-space: nowrap; padding: 5px 0; font-size: 11px; color: var(--gold-mu); animation: slide 22s linear infinite; }
.marquee p { display: inline; margin: 0; }
@keyframes slide { from { transform: translateX(100vw) } to { transform: translateX(-100%) } }
main { flex: 1; padding: 0 var(--pad) 8px; animation: viewIn .42s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px) scale(.994) } to { opacity: 1; transform: none } }
body.leaving main, body.leaving .top { animation: viewOut .2s var(--ease) both; }
@keyframes viewOut { to { opacity: 0; transform: translateY(-10px) } }

.stag > * { animation: rise .5s var(--ease) both; }
.stag > *:nth-child(1) { animation-delay: .04s } .stag > *:nth-child(2) { animation-delay: .08s }
.stag > *:nth-child(3) { animation-delay: .12s } .stag > *:nth-child(4) { animation-delay: .16s }
.stag > *:nth-child(5) { animation-delay: .2s } .stag > *:nth-child(6) { animation-delay: .24s }
.stag > *:nth-child(7) { animation-delay: .28s } .stag > *:nth-child(8) { animation-delay: .32s }
.stag > *:nth-child(n+9) { animation-delay: .36s }
.ptitle {
  margin: 2px 0 10px; padding: 9px 12px; border-radius: var(--r);
  border: 1px solid var(--line); background: linear-gradient(100deg, #1b1409, #241a0c 45%, #14100a);
  font-size: 11px; font-weight: 700; letter-spacing: 2.4px; color: var(--gold-br);
  display: flex; align-items: center; gap: 9px;
  animation: rise .5s var(--ease) both;
}
.ptitle svg { color: var(--gold); }
.cap { font-size: 8.5px; font-weight: 700; letter-spacing: 1.8px; color: var(--gold-mu); padding: 7px 11px; background: #0f0c08; border-bottom: 1px solid var(--line-soft); }
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 9px; }
.tcard {
  border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(180deg, #14100b, #0c0a08);
  padding: 7px 4px 6px; text-align: center; min-height: 64px;
  box-shadow: inset 0 1px 0 rgba(242, 209, 91, .07);
  transition: background .45s var(--ease), border-color .45s var(--ease), transform .2s var(--ease);
  animation: rise .55s var(--ease) both;
}
.tcard:nth-child(2) { animation-delay: .07s } .tcard:nth-child(3) { animation-delay: .14s }
.tcard:active { transform: scale(.97); }
.tcard b { display: block; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; color: var(--gold-mu); margin-bottom: 3px; }
.tcard u { display: block; text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.tcard i { display: block; font-style: normal; font-size: 8px; margin-top: 2px; line-height: 1.5; }
.tcard i em { font-style: normal; }
.up { background: rgba(64, 197, 138, .17) !important; border-color: rgba(64, 197, 138, .55) !important; }
.down { background: rgba(234, 91, 96, .17) !important; border-color: rgba(234, 91, 96, .55) !important; }
.g { color: var(--buy) } .r { color: var(--sell) } .mu { color: var(--txt3) } .gold { color: var(--gold) }
.tabs {
  position: relative; display: flex; background: #0d0b09; border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 3px; margin-bottom: 9px; height: 38px;
  animation: rise .55s .1s var(--ease) both;
}
.tabs .pill {
  position: absolute; top: 3px; bottom: 3px; border-radius: 7px;
  background: linear-gradient(180deg, #f4d367, var(--gold) 55%, #9d7420);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 9px rgba(212, 167, 44, .25);
  transition: left .34s var(--ease), width .34s var(--ease);
}
.tabs button {
  position: relative; flex: 1; background: none; border: 0; z-index: 1;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.1px; color: var(--txt2);
  transition: color .3s var(--ease); border-radius: 7px;
}
.tabs button.on { color: #241a06; }
.rt { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #0b0908; animation: rise .55s .16s var(--ease) both; }
.rth { display: flex; padding: 8px 11px; background: linear-gradient(180deg, #1a1309, #120e08); border-bottom: 1px solid var(--line); }
.rth b { font-size: 9px; font-weight: 700; letter-spacing: 1.4px; color: var(--gold-mu); }
.rth b:first-child { flex: 50 } .rth b:nth-child(2) { flex: 25; text-align: right } .rth b:last-child { flex: 25; text-align: right }

.row { display: flex; align-items: center; padding: 7px 11px; min-height: 50px; border-bottom: 1px solid rgba(58, 45, 24, .26); transition: background .45s var(--ease); }
.row:last-child { border-bottom: 0 }
.row.up { background: rgba(64, 197, 138, .13) !important }
.row.down { background: rgba(234, 91, 96, .13) !important }
.row .p { flex: 50; display: flex; align-items: center; gap: 7px; min-width: 0 }
.row .p div { min-width: 0 }
.row .p strong { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.row .p small { display: block; font-size: 7.5px; font-weight: 500; letter-spacing: 1.2px; color: var(--txt3); margin-top: 2px }
.row .v { flex: 25; text-align: right }
.row .v u { display: block; text-decoration: none; font-size: 16px; font-weight: 800; letter-spacing: -.4px }
.row .v s { display: block; text-decoration: none; font-size: 7.5px; color: var(--txt3); margin-top: 1px }
.row .np { font-size: 7.5px; color: var(--gold-mu); letter-spacing: .6px }
.empty { padding: 26px 12px; text-align: center; font-size: 10px; letter-spacing: 1.6px; color: var(--txt3) }
.mi { width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; }
.mi svg { width: 18px; height: 18px }
.mi.au { color: #e8bf4d; animation: shine 3.4s ease-in-out infinite }
.mi.ag { color: #cfd6dd; animation: shine 3.4s .6s ease-in-out infinite }
@keyframes shine { 0%, 100% { filter: brightness(1) } 50% { filter: brightness(1.55) drop-shadow(0 0 4px currentColor) } }
.trust { display: flex; margin: 9px 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #0c0a08; animation: rise .5s .2s var(--ease) both }
.trust div { flex: 1; padding: 7px 4px; text-align: center; border-right: 1px solid var(--line-soft) }
.trust div:last-child { border-right: 0 }
.trust b { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 9.5px; color: var(--gold-br); letter-spacing: .8px }
.trust b svg { width: 11px; height: 11px }
.trust span { display: block; font-size: 7px; letter-spacing: 1.2px; color: var(--txt3); margin-top: 2px }
.trust div:nth-child(2) b svg { animation: pulse2 1.6s infinite }
@keyframes pulse2 { 0%, 100% { opacity: .5; transform: scale(.9) } 50% { opacity: 1; transform: scale(1.12) } }

.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; animation: rise .5s .26s var(--ease) both }
.cta a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--line); background: linear-gradient(180deg, #191208, #0f0b07); transition: transform .2s var(--ease), box-shadow .3s }
.cta a:active { transform: scale(.96) }
.cta a.wa { border-color: rgba(37, 211, 102, .4); background: linear-gradient(180deg, #0d2b1c, #07180f) }
.cta em { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: linear-gradient(180deg, #f4d367, var(--gold-dk)); color: #241a06 }
.cta a.wa em { background: linear-gradient(180deg, #4ae585, #17a94b); color: #04240f; animation: bob 2.6s ease-in-out infinite }
.cta a em svg { animation: ring 4s ease-in-out infinite }
.cta a.wa em svg { animation: none }
@keyframes ring { 0%, 88%, 100% { transform: rotate(0) } 91% { transform: rotate(-14deg) } 94% { transform: rotate(12deg) } 97% { transform: rotate(-7deg) } }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-2.5px) } }
.cta b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .8px }
.cta small { display: block; font-size: 8.5px; color: var(--txt2); margin-top: 1px }

.stamp { text-align: center; font-size: 8px; letter-spacing: 1.3px; color: var(--txt3); padding: 10px 0 4px }
.stamp.stale { color: #6c6c6c }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(4, 3, 5, .74); backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: opacity .26s var(--ease) }
.modal.on { opacity: 1; pointer-events: auto }
.modal > div {
  width: 100%; max-width: 330px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #17120c, #0c0a08); padding: 16px; text-align: center;
  transform: translateY(18px) scale(.94); transition: transform .34s var(--ease);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .7);
}
.modal.on > div { transform: none }
.modal h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; color: var(--gold-br); letter-spacing: 1.4px; margin-bottom: 8px }
.modal .body { font-size: 12px; color: var(--txt2); line-height: 1.6 }
.modal .body p { margin: 0 0 6px }
.modal .acts { display: flex; gap: 8px; margin-top: 14px }
.modal .acts button { flex: 1 }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  padding: 12px 14px; border: 0; border-radius: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  background: linear-gradient(180deg, #f4d367, var(--gold) 55%, #9d7420); color: #241a06;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 14px rgba(212, 167, 44, .2);
  transition: transform .18s var(--ease), filter .2s;
}
.btn:active { transform: scale(.97); filter: brightness(.93) }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--gold); box-shadow: none }
.btn.buy { background: linear-gradient(180deg, #5cdca2, #22a06d); color: #04240f }
.btn.sell { background: linear-gradient(180deg, #ff8085, #cf3a40); color: #2b0405 }
.btn.sm { padding: 8px 11px; font-size: 10px; border-radius: 8px }
.btn[disabled] { opacity: .5 }

.fld { margin-bottom: 12px; animation: rise .45s var(--ease) both }
.fld label { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: 1.6px; color: var(--gold-mu); margin-bottom: 5px }
.fld input, .fld select, .fld textarea {
  width: 100%; padding: 11px 12px; border-radius: 9px; background: #0d0b09;
  border: 1px solid var(--line); font-size: 14px; transition: border-color .25s, box-shadow .25s;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 167, 44, .13) }
.fld input[readonly] { color: var(--txt2); background: #0a0807 }
.fld textarea { resize: none; min-height: 62px }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px }

.panel { border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, #14100b, #0a0908); padding: 13px; margin-bottom: 10px; animation: rise .5s var(--ease) both }
.panel h5 { font-size: 9px; letter-spacing: 1.8px; color: var(--gold-mu); margin-bottom: 9px; font-weight: 700 }

.seg { display: flex; gap: 7px; margin-bottom: 11px; animation: rise .45s var(--ease) both }
.seg button, .seg a { flex: 1; padding: 9px; border-radius: 9px; border: 1px solid var(--line); background: #0d0b09; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--txt2); text-align: center; transition: all .26s var(--ease) }
.seg button.on, .seg a.on { background: linear-gradient(180deg, #f4d367, var(--gold-dk)); color: #241a06; border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212, 167, 44, .22) }
.seg button:active, .seg a:active { transform: scale(.96) }

.ba { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 11px; background: #0b0908 }
.ba div { flex: 1; padding: 11px 8px; text-align: center }
.ba div + div { border-left: 1px solid var(--line-soft) }
.ba b { display: block; font-size: 8.5px; letter-spacing: 1.6px; color: var(--gold-mu); margin-bottom: 4px }
.badge { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line-soft) }
.badge b { font-size: 15px; font-weight: 700; letter-spacing: .4px }
.badge small { font-size: 9px; letter-spacing: 1.2px }
.ba u { text-decoration: none; font-size: 24px; font-weight: 800 }
.card { border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, #13100c, #0a0908); padding: 11px 12px; margin-bottom: 8px; animation: rise .5s var(--ease) both; transition: transform .2s var(--ease), border-color .25s }
.card:active { transform: scale(.985) }
.card.clk { cursor: pointer }
.card .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px }
.card .hd strong { flex: 1; font-size: 12.5px; font-weight: 700 }
.ln { display: flex; align-items: center; gap: 6px; justify-content: space-between; font-size: 10.5px; color: var(--txt2); padding: 3px 0 }
.ln b { color: var(--txt); font-weight: 600 }
.qty { display: flex; gap: 7px; align-items: center }
.qty input { text-align: center }
.qty .ico { width: 38px; height: 40px; flex: 0 0 auto }
.tag { font-size: 8px; font-weight: 800; letter-spacing: 1.2px; padding: 3px 7px; border-radius: 20px }
.tag.b { background: rgba(64, 197, 138, .16); color: var(--buy); border: 1px solid rgba(64, 197, 138, .4) }
.tag.s { background: rgba(234, 91, 96, .16); color: var(--sell); border: 1px solid rgba(234, 91, 96, .4) }
.tag.p { background: rgba(212, 167, 44, .14); color: var(--gold-br); border: 1px solid var(--line) }
.card .ft { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line-soft); font-size: 8.5px; color: var(--txt3); letter-spacing: .8px }
.card .ft > :last-child { margin-left: auto }
.ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #0d0b09; color: var(--gold); transition: transform .2s var(--ease) }
.ico:active { transform: scale(.88) }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--gold) }

.kv { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; animation: rise .5s var(--ease) both }
.kv div { display: flex; padding: 10px 12px; font-size: 11.5px; border-bottom: 1px solid var(--line-soft); background: #0b0908 }
.kv div:nth-child(odd) { background: #100d0a }
.kv div:last-child { border-bottom: 0 }
.kv b { flex: 1; font-weight: 600; letter-spacing: 1px; color: var(--gold-mu); font-size: 9.5px; text-transform: uppercase; align-self: center }
.kv span { font-weight: 700; text-align: right }

.htm { font-size: 12px; line-height: 1.65; color: var(--txt2); padding: 4px 2px 8px; animation: rise .5s var(--ease) both }
.htm * { max-width: 100% !important; height: auto !important; color: inherit !important; background: transparent !important; font-family: inherit !important }
.htm img { border-radius: 8px; border: 1px solid var(--line) !important }
.htm table { width: 100% !important; border-collapse: collapse }
.htm td, .htm th { padding: 6px 7px; border: 1px solid var(--line-soft); font-size: 11px !important }
.htm a { color: var(--gold-br) !important }
.htm strong, .htm b { color: var(--txt) !important }

.spin { display: grid; place-items: center; padding: 34px 0 }
.spin i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }

.gauge { display: grid; place-items: center; margin: 6px 0 12px }
.gauge svg { transform: rotate(-90deg) }
.gauge circle { fill: none; stroke-width: 9; stroke-linecap: round }
.gauge .bg { stroke: #1c1710 }
.gauge .fg { stroke: url(#gg); transition: stroke-dashoffset 1.1s var(--ease) }
.gauge .lbl { position: absolute; text-align: center }
.gauge b { font-size: 22px; font-weight: 800; color: var(--gold-br) }
.gauge span { display: block; font-size: 8px; letter-spacing: 1.4px; color: var(--txt3) }

.snack {
  position: fixed; left: 12px; right: 12px; bottom: calc(74px + var(--sab)); z-index: 50;
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 34px 10px 12px;
  background: linear-gradient(180deg, #1b1409, #100c08); font-size: 11px; color: var(--txt2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .6);
  transform: translateY(calc(100% + 90px)); transition: transform .42s var(--ease);
}
.snack.on { transform: none }
.snack .x { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--gold-mu) }
.snack p { margin: 0 }

.chart { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: #0a0908; padding: 6px; animation: rise .5s var(--ease) both }
.chart .scale { position: absolute; inset: 8px 9px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; font-size: 8px; color: var(--txt3); text-align: right }
.chart svg { width: 100%; height: 250px }
.chart .ax { stroke: #221b12; stroke-width: 1; shape-rendering: crispEdges }
.chart .cu { stroke: var(--buy) } .chart .cd { stroke: var(--sell) }

@media (max-width: 359px) {
  :root { --pad: 10px }
  .tcard u { font-size: 17px } .row .v u { font-size: 14.5px } .wordmark { font-size: 26px }
}
@media (min-width: 420px) {
  .tcard u { font-size: 21px } .row .v u { font-size: 17px }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important }
}


/* Shared website structure: Mahima theme with reference-inspired information architecture */
.rate-action { display: none; }
.desktop-nav { display: none; }
.site-footer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 17, 12, .96), #08070a);
}
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 24px var(--pad) 14px; display: grid; gap: 12px; }
.footer-brand { text-align: center; padding-bottom: 12px; }
.footer-brand img { width: 42px; height: 42px; margin: 0 auto 7px; filter: drop-shadow(0 0 10px rgba(212, 167, 44, .25)); }
.footer-brand b { display: block; font-family: "Cormorant Garamond", Georgia, serif; color: var(--gold-br); font-size: 18px; letter-spacing: 1.8px; }
.footer-brand p { max-width: 350px; margin: 6px auto 0; color: var(--txt3); font-size: 10px; line-height: 1.6; }
.footer-group { border-top: 1px solid var(--line-soft); }
.footer-group h2 { cursor: pointer; list-style: none; padding: 11px 2px; color: var(--gold-mu); font-size: 9px; font-weight: 700; letter-spacing: 1.6px; display: flex; align-items: center; justify-content: space-between; }
.footer-group h2::-webkit-details-marker { display: none; }
.footer-group h2:after {
  content: "+"; color: var(--gold); font-size: 14px; line-height: 1;
  transition: transform .28s var(--ease);
}
.footer-group[open] summary:after { transform: rotate(135deg); }
.footer-group a { display: flex; align-items: center; gap: 8px; padding: 5px 2px; color: var(--txt2); font-size: 10px; transition: color .18s var(--ease), transform .18s var(--ease); }
.footer-group a:last-child { padding-bottom: 12px; }
.footer-group a .fi { display: grid; place-items: center; width: 16px; height: 16px; flex: 0 0 auto; color: var(--gold-mu); transition: color .18s var(--ease), transform .3s var(--ease); }
.footer-group a .fi svg { width: 14px; height: 14px; }
.footer-group a:hover { color: var(--gold-br); transform: translateX(2px); }
.footer-group a:hover .fi { color: var(--gold); transform: scale(1.18) rotate(-6deg); }
.footer-group[open] a { animation: rise .32s var(--ease) both; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: 11px var(--pad) calc(11px + var(--sab)); display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 16px; color: var(--txt3); font-size: 8px; letter-spacing: 1px; }

/* Landing page */
.home-page { padding-bottom: 18px; }
.home-hero {
  position: relative; overflow: hidden; min-height: 410px; display: grid; align-items: center;
  border: 1px solid var(--line); border-radius: 16px; padding: clamp(32px, 7vw, 78px) clamp(20px, 6vw, 70px);
  background: radial-gradient(circle at 78% 38%, rgba(242, 209, 91, .18), transparent 24%), linear-gradient(125deg, #0d0a08 12%, #1f170c 55%, #0a0808);
  box-shadow: inset 0 1px 0 rgba(242, 209, 91, .09), 0 24px 70px rgba(0, 0, 0, .32);
}
.home-hero:before, .home-hero:after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(212, 167, 44, .3); pointer-events: none; }
.home-hero:before { width: 230px; height: 230px; right: -45px; top: 48px; box-shadow: inset 0 0 45px rgba(212, 167, 44, .08), 0 0 55px rgba(212, 167, 44, .08); }
.home-hero:after { width: 145px; height: 145px; right: 60px; bottom: -55px; border-color: rgba(207, 214, 221, .25); }
.hero-copy { position: relative; z-index: 1; max-width: 660px; }
.eyebrow { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; }
.home-hero h1 { margin: 11px 0 14px; max-width: 620px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(42px, 8vw, 76px); line-height: .96; letter-spacing: -.8px; color: #f7ecd0; }
.home-hero h1 span { color: var(--gold-br); }
.hero-copy > p { max-width: 560px; color: var(--txt2); line-height: 1.75; font-size: clamp(12px, 2vw, 15px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hero-actions .btn { width: auto; min-width: 145px; }
.section-nav { position: sticky; top: 0; z-index: 12; display: flex; gap: 6px; overflow-x: auto; margin: 12px 0 18px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: rgba(12, 10, 8, .9); backdrop-filter: blur(12px); }
.section-nav a { flex: 1 0 auto; padding: 8px 12px; border-radius: 7px; color: var(--txt2); font-size: 8px; font-weight: 700; letter-spacing: 1.1px; text-align: center; }
.section-nav a:hover, .section-nav a:focus { color: #241a06; background: var(--gold); }
.home-section { scroll-margin-top: 70px; padding: clamp(30px, 6vw, 66px) 0; border-bottom: 1px solid var(--line-soft); }
.home-section:last-child { border-bottom: 0; }
.section-heading { max-width: 680px; margin-bottom: 24px; }
.section-heading h2 { margin: 7px 0 8px; font-family: "Cormorant Garamond", Georgia, serif; color: var(--gold-br); font-size: clamp(30px, 5vw, 48px); line-height: 1.06; }
.section-heading p { color: var(--txt2); line-height: 1.7; }
.home-grid { display: grid; gap: 10px; }
.home-card { position: relative; overflow: hidden; min-height: 155px; padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, #17120d, #0c0a08); transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.home-card:hover { transform: translateY(-4px); border-color: var(--gold-dk); box-shadow: 0 15px 35px rgba(0, 0, 0, .28); }
.home-card .card-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 50%; color: #241a06; background: linear-gradient(180deg, var(--gold-br), var(--gold-dk)); }
.home-card h3 { margin-bottom: 7px; color: var(--txt); font-size: 14px; letter-spacing: .5px; }
.home-card p { color: var(--txt2); font-size: 11px; line-height: 1.65; }
.home-card .text-link { display: inline-block; margin-top: 15px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fact { padding: 18px 12px; text-align: center; border: 1px solid var(--line); border-radius: 11px; background: #0d0a08; }
.fact b { display: block; color: var(--gold-br); font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; }
.fact span { color: var(--txt3); font-size: 8px; letter-spacing: 1.2px; }
.journey { counter-reset: journey; }
.journey .home-card { padding-top: 64px; }
.journey .home-card:before { counter-increment: journey; content: "0" counter(journey); position: absolute; top: 18px; left: 21px; color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: 29px; font-weight: 700; }
.home-contact { display: grid; gap: 18px; align-items: center; padding: clamp(25px, 5vw, 48px); border: 1px solid var(--line); border-radius: 15px; background: radial-gradient(circle at 90% 50%, rgba(212, 167, 44, .14), transparent 35%), #100c09; }
.home-contact h2 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--gold-br); font-size: clamp(29px, 5vw, 44px); }
.home-contact p { margin-top: 7px; color: var(--txt2); line-height: 1.65; }
.home-contact .hero-actions { margin-top: 0; }

/* Contact page */
.page-intro { max-width: 720px; margin: 8px 0 20px; color: var(--txt2); line-height: 1.7; }
.contact-grid { display: grid; gap: 12px; }
.contact-methods { display: grid; gap: 9px; }
.contact-method { display: flex; gap: 12px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #0d0a08; }
.contact-method em { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #241a06; background: var(--gold); }
.contact-method b { display: block; color: var(--txt); font-size: 11px; letter-spacing: .7px; }
.contact-method span { display: block; margin-top: 3px; color: var(--txt2); font-size: 10px; }
.contact-note { margin-top: 11px; color: var(--txt3); font-size: 9px; line-height: 1.6; }

/* Dependency-free, varied scroll reveals. Content stays visible until JS opts in. */
.motion-ready [data-reveal] { opacity: 0; animation: none !important; transition: opacity .7s var(--ease) var(--reveal-delay, 0ms), transform .7s var(--ease) var(--reveal-delay, 0ms); will-change: opacity, transform; }
.motion-ready [data-reveal="fade-up"] { transform: translate3d(0, 34px, 0); }
.motion-ready [data-reveal="fade-left"] { transform: translate3d(-34px, 0, 0); }
.motion-ready [data-reveal="fade-right"] { transform: translate3d(34px, 0, 0); }
.motion-ready [data-reveal="zoom"] { transform: scale(.93); }
.motion-ready [data-reveal="soft-flip"] { transform: perspective(900px) rotateX(7deg) translateY(22px); transform-origin: 50% 100%; }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (min-width: 640px) {
  .home-grid.cols-2, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact-grid { grid-template-columns: repeat(4, 1fr); }
  .home-contact { grid-template-columns: 1fr auto; }
}

@media (min-width: 900px) {
  :root { --pad: 22px; }
  html, body { font-size: 15px; overscroll-behavior: auto; }
  body { min-height: 100vh; }
  .top { border-bottom: 1px solid var(--line-soft); background: rgba(8, 7, 10, .92); backdrop-filter: blur(16px); }
  .brand { width: fit-content; grid-template-columns: 58px auto; grid-template-rows: auto auto auto; justify-items: start; column-gap: 13px; margin: 0 auto; padding: 13px 0 11px; }
  .crest { grid-row: 1 / 4; width: 56px; height: 56px; }
  .wordmark { font-size: 29px; }
  .submark { font-size: 8px; }
  .strap { font-size: 7px; }
  .bell { right: max(28px, calc((100vw - 1180px) / 2)); top: 22px; }
  .rate-action { display: block; position: absolute; z-index: 2; left: max(28px, calc((100vw - 1180px) / 2)); top: 25px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
  .livebar, .marquee { max-width: 1180px; margin-left: auto; margin-right: auto; }
  .desktop-nav { display: block; border-top: 1px solid var(--line-soft); background: #0b0908; }
  .desktop-nav-inner { max-width: 1180px; min-height: 48px; margin: 0 auto; padding: 0 22px; display: flex; align-items: stretch; }
  .desktop-nav a, .desktop-nav summary { font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
  .dhome, .dgroup summary { height: 48px; display: flex; align-items: center; padding: 0 16px; color: var(--txt2); cursor: pointer; list-style: none; }
  .dgroup summary::-webkit-details-marker { display: none; }
  .dgroup summary:after { content: ""; width: 5px; height: 5px; margin-left: 7px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg) translateY(-2px); }
  .dhome:hover, .dgroup summary:hover, .dhome.current, .dgroup.current summary { color: var(--gold-br); background: rgba(212, 167, 44, .07); }
  .dgroup { position: relative; }
  .dropdown { position: absolute; z-index: 45; top: 44px; left: 0; width: 235px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, #18120c, #0b0908); box-shadow: 0 18px 45px rgba(0, 0, 0, .58); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s, transform .22s, visibility .22s; }
  .dgroup[open] .dropdown, .dgroup:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
  .dropdown a { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 7px; color: var(--txt2); }
  .dropdown a svg { color: var(--gold); }
  .dropdown a:hover, .dropdown a.current { color: var(--gold-br); background: rgba(212, 167, 44, .09); }
  .dtrade { align-self: center; margin-left: auto; display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 8px; color: #241a06; background: linear-gradient(180deg, var(--gold-br), var(--gold-dk)); }
  main { width: 100%; max-width: 1180px; padding: 18px 22px 22px; margin: 0 auto; }
  .home-page { padding-top: 22px; }
    .site-footer { margin-top: 25px; }
  .footer-inner { grid-template-columns: 1.4fr repeat(5, 1fr); padding: 42px 22px 30px; }
  .footer-brand { text-align: left; padding: 0 25px 0 0; }
  .footer-brand img { margin: 0 0 10px; }
  .footer-brand p { margin-left: 0; }
  .footer-group { border-top: 0; }
  .footer-group h2 { cursor: default; padding-top: 4px; }
  .footer-group h2:after { display: none; }
  .footer-group a { font-size: 9px; }
  .footer-bottom { padding: 13px 22px; justify-content: space-between; }
  .ptitle { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal] { opacity: 1 !important; transform: none !important; will-change: auto; }
}


/* Mobile navigation and motion-safety corrections */
html, body { overflow-x: hidden; }
body { padding-bottom: 0; }
.xbtn { padding: 0; cursor: pointer; font: inherit; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; scroll-behavior: auto !important; }
}


/* Browser-view connectivity and embedded calendar */
.connection-banner {
  position: fixed; z-index: 75; left: 50%; top: calc(var(--sat) + 10px); transform: translate(-50%, -140%);
  width: min(92vw, 520px); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border: 1px solid rgba(234, 91, 96, .55); border-radius: 10px;
  background: #251012; color: #ffdadd; box-shadow: 0 12px 35px rgba(0, 0, 0, .55);
  font-size: 10px; font-weight: 700; letter-spacing: .7px; opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.connection-banner.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.connection-banner button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; background: transparent; color: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.calendar-frame { min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.calendar-frame iframe { display: block; width: 100%; min-height: 520px; border: 0; }
@media (min-width: 900px) { .calendar-frame, .calendar-frame iframe { min-height: 650px; } }


/* Scale / scallop pattern background - Live Rates page only */
body.scale-bg {
  position: relative;
  background:
    radial-gradient(120% 55% at 50% -8%, #1d160f 0%, rgba(29, 22, 15, 0) 62%),
    linear-gradient(180deg, #0b090b 0%, var(--ink) 34%, #070609 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body.scale-bg::before,
body.scale-bg::after {
  content: '';
  position: fixed;
  inset: -46px;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 0, transparent 22px, rgba(212, 167, 44, .1) 23px, rgba(212, 167, 44, .1) 24px, transparent 25px);
  background-size: 46px 46px;
  background-repeat: repeat;
  will-change: background-position;
}
body.scale-bg::before {
  animation: scaleDrift 26s linear infinite;
}
body.scale-bg::after {
  background-image: radial-gradient(circle at 50% 100%, transparent 22px, rgba(169, 134, 58, .08) 23px, rgba(169, 134, 58, .08) 24px, transparent 25px);
  background-position: 23px 23px;
  opacity: .85;
  animation: scaleDrift 26s linear infinite reverse;
}
@keyframes scaleDrift {
  from { background-position: 0 0; }
  to { background-position: 46px 46px; }
}
@media (min-width: 900px) {
  body.scale-bg::before,
  body.scale-bg::after { background-size: 58px 58px; }
  body.scale-bg::after { background-position: 29px 29px; }
  @keyframes scaleDrift {
    from { background-position: 0 0; }
    to { background-position: 58px 58px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  body.scale-bg::before,
  body.scale-bg::after { animation: none; }
}

/* Website navigation: inline expansion on smaller screens. */
.website-menu-toggle { display: none; }
.footer-group h2 { margin: 0 0 8px; font-size: 12px; cursor: default; }
.footer-group h2:after { display: none; }
.footer-group a { min-height: 44px; font-size: 12px; }
.footer-brand p { font-size: 12px; }
.footer-bottom { font-size: 10px; }
.snack { bottom: calc(16px + var(--sab)); }
.desktop-nav a:focus-visible, .desktop-nav summary:focus-visible, .website-menu-toggle:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--gold-br); outline-offset: 3px; }
@media (max-width: 899px) {
  .desktop-nav { display: block; border-block: 1px solid var(--line); background: #0b0908; }
  .website-menu-toggle { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; width: 100%; padding: 10px var(--pad); border: 0; background: transparent; color: var(--gold-br); font: inherit; font-size: 13px; cursor: pointer; }
  .desktop-nav-inner { display: none; padding: 0 var(--pad) 16px; }
  .desktop-nav.expanded .desktop-nav-inner { display: block; }
  .dhome, .dgroup summary, .dtrade { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; color: var(--txt2); font-size: 13px; }
  .dgroup { border-top: 1px solid var(--line-soft); }
  .dgroup summary { justify-content: space-between; cursor: pointer; list-style: none; }
  .dgroup summary::-webkit-details-marker { display: none; }
  .dgroup summary:after { content: '+'; color: var(--gold); }
  .dgroup[open] summary:after { content: '\2212'; }
  .dropdown { padding: 0 12px 12px; }
  .dropdown a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; font-size: 12px; color: var(--txt2); }
  .dropdown svg { display: none; }
  .dhome.current, .dgroup.current summary, .dropdown a.current { color: var(--gold-br); }
  .dtrade { gap: 8px; color: var(--gold-br); border-top: 1px solid var(--line); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-block: 30px 24px; }
  .footer-brand { grid-column: 1 / -1; text-align: left; }
  .footer-brand img { margin-left: 0; }
  .footer-brand p { margin-left: 0; }
  .footer-group { padding-top: 16px; }
  .footer-group a { line-height: 1.5; }
  .footer-group a .fi { display: none; }
}
