@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700&display=swap');
/* THARΞX 7.25 · market heatmap tiles (home, Heatmap page, Indian Market). Site theme: graphite, lime #d4ff00, Julius Sans One + JetBrains Mono. */
.mh{position:relative;overflow:hidden;border-radius:14px;background:#070b09;isolation:isolate;min-height:200px}
.mh-tiles{position:absolute;inset:0}
.mh-t{position:absolute;left:0;top:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;margin:1px;border-radius:8px;overflow:hidden;text-decoration:none;color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);will-change:transform;
  transition:transform .9s cubic-bezier(.16,1,.3,1),width .9s cubic-bezier(.16,1,.3,1),height .9s cubic-bezier(.16,1,.3,1),background-color 1.1s ease,opacity .6s ease,filter .6s ease,scale .8s cubic-bezier(.16,1,.3,1)}
.mh-t::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,0) 45%,rgba(0,0,0,.22));pointer-events:none}
.mh-t::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;box-shadow:inset 0 0 0 2px #d4ff00,0 0 24px rgba(212,255,0,.35);transition:opacity .25s}
.mh-t:hover{filter:brightness(1.18) saturate(1.1);z-index:2}.mh-t:hover::after{opacity:1}
.mh-t b{position:relative;font:400 var(--fs,12px)/1.05 'Julius Sans One',system-ui,sans-serif;letter-spacing:.06em;white-space:nowrap;text-shadow:0 1px 8px rgba(0,0,0,.55)}
.mh-t .c,.mh-t .p{position:relative;font:600 calc(var(--fs,12px) * .7)/1.1 'JetBrains Mono',ui-monospace,monospace;font-variant-numeric:tabular-nums;white-space:nowrap;opacity:.95}
.mh-t .p{font-weight:500;opacity:.7}
.mh-t.sm b{font-size:8px;letter-spacing:0}.mh-t.xs b{display:none}.mh-t.sm .c,.mh-t.sm .p{display:none}
.mh-t.in0{opacity:0;filter:blur(6px);scale:.6}
.mh-t.out{opacity:0;filter:blur(4px);scale:.85;transition-delay:0s!important}
.mh-t.fl.up{animation:mhUp .9s ease-out}.mh-t.fl.dn{animation:mhDn .9s ease-out}
@keyframes mhUp{0%{box-shadow:inset 0 0 0 2px rgba(46,232,143,.95),0 0 26px rgba(46,232,143,.45)}100%{box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}}
@keyframes mhDn{0%{box-shadow:inset 0 0 0 2px rgba(255,93,108,.95),0 0 26px rgba(255,93,108,.45)}100%{box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}}
.mh-wait{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:12px;color:#7d8f84;font:500 12px 'JetBrains Mono',monospace;letter-spacing:.06em;text-align:center;padding:20px}
.mh-wait[hidden]{display:none}
.mh-ring{width:28px;height:28px;border-radius:50%;border:2px solid rgba(212,255,0,.15);border-top-color:#d4ff00;animation:mhSpin 1s linear infinite}
@keyframes mhSpin{to{transform:rotate(360deg)}}
.mh-tip{position:absolute;left:0;top:0;z-index:5;min-width:160px;display:grid;gap:3px;padding:10px 12px;border-radius:10px;pointer-events:none;background:rgba(9,14,11,.95);border:1px solid rgba(212,255,0,.32);box-shadow:0 18px 40px -12px rgba(0,0,0,.7);
  font:500 11px 'JetBrains Mono',monospace;color:#e9f1ec;transition:transform .18s cubic-bezier(.16,1,.3,1)}
.mh-tip[hidden]{display:none}.mh-tip b{color:#d4ff00;font-weight:700}.mh-tip .up{color:#2ee88f}.mh-tip .dn{color:#ff5d6c}.mh-tip small{color:#7d8f84;font-size:10px}
/* market switch: sliding lime pill */
.mh-seg{position:relative;display:inline-flex;gap:2px;padding:3px;border-radius:11px;border:1px solid #1f2b24;background:#0a100d;isolation:isolate}
.mh-seg button{position:relative;z-index:1;height:32px;padding:0 14px;border:0;border-radius:8px;background:none;color:#9fb0a6;cursor:pointer;font:600 11px/1 'JetBrains Mono',monospace;letter-spacing:.08em;text-transform:uppercase;transition:color .35s}
.mh-seg button:hover{color:#e9f1ec}.mh-seg button.on{color:#071006}
.mh-ind{position:absolute;z-index:0;left:0;top:3px;height:32px;border-radius:8px;background:#d4ff00;box-shadow:0 8px 22px -8px rgba(212,255,0,.7);transition:transform .5s cubic-bezier(.16,1,.3,1),width .5s cubic-bezier(.16,1,.3,1)}
@media (max-width:600px){.mh-seg button{padding:0 9px;font-size:10px;letter-spacing:.04em}}
@media (prefers-reduced-motion:reduce){.mh-t,.mh-ind,.mh-tip{transition:none}.mh-t.fl{animation:none}}
/* ---------- 7.27 · heatmap v2: toolbar, sector frames, fixed legend, currency matrix */
.mh{display:flex;flex-direction:column}
.mh-bar{position:relative;z-index:3;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 10px 6px;font:600 11px 'JetBrains Mono',monospace;letter-spacing:.05em;color:#9fb0a6}
.mh-crumb{display:flex;align-items:center;gap:8px;min-width:0}.mh-crumb b{color:#e9f1ec;font:400 14px 'Julius Sans One',sans-serif;letter-spacing:.08em;text-transform:uppercase}
.mh-crumb button{height:26px;padding:0 10px;border:1px solid #2a3a31;border-radius:8px;background:#0d1511;color:#d4ff00;font:600 11px 'JetBrains Mono',monospace;cursor:pointer}
.mh-crumb .up{color:#2ee88f}.mh-crumb .dn{color:#ff5d6c}
.mh-live{display:inline-flex;align-items:center;gap:6px;color:#7d8f84;text-transform:uppercase;font-size:10px}.mh-live i{width:7px;height:7px;border-radius:50%;background:#2ee88f;box-shadow:0 0 0 0 rgba(46,232,143,.6);animation:mhPing 1.6s infinite}
@keyframes mhPing{70%{box-shadow:0 0 0 7px rgba(46,232,143,0)}100%{box-shadow:0 0 0 0 rgba(46,232,143,0)}}
.mh-br{position:relative;flex:0 0 150px;height:6px;border-radius:3px;background:#1a2420;overflow:hidden;display:flex;justify-content:space-between}
.mh-br i{display:block;height:100%;transition:width .9s cubic-bezier(.16,1,.3,1)}.mh-br .u{background:#22d36f}.mh-br .d{background:#f23645}
.mh-br::after{content:attr(data-t);position:absolute;left:0;right:0;top:9px;text-align:center;font-size:9.5px;color:#7d8f84;white-space:nowrap}
.mh-bar{padding-bottom:14px}
.mh-ctl{margin-left:auto;display:flex;align-items:center;gap:6px}
.mh-ctl label{display:flex;align-items:center;gap:6px;color:#7d8f84;text-transform:uppercase;font-size:10px}
.mh-ctl select{height:28px;padding:0 8px;border:1px solid #2a3a31;border-radius:8px;background:#0d1511;color:#e9f1ec;font:600 11px 'JetBrains Mono',monospace}
.mh-tg{height:28px;padding:0 11px;border:1px solid #2a3a31;border-radius:8px;background:#0d1511;color:#9fb0a6;font:600 11px 'JetBrains Mono',monospace;cursor:pointer;transition:all .25s}
.mh-tg.on{border-color:rgba(212,255,0,.55);color:#d4ff00;background:rgba(212,255,0,.08)}
.mh-area{position:relative;flex:1;min-height:160px;margin:0 6px}
.mh-tiles{position:absolute;inset:0}
.mh-g{position:absolute;left:0;top:0;border-radius:6px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);background:rgba(255,255,255,.02);transition:transform .9s cubic-bezier(.16,1,.3,1),width .9s cubic-bezier(.16,1,.3,1),height .9s cubic-bezier(.16,1,.3,1)}
.mh-gh{position:absolute;left:0;right:0;top:0;height:18px;display:flex;align-items:center;gap:6px;padding:0 6px;cursor:zoom-in;font:600 10px/1 'JetBrains Mono',monospace;letter-spacing:.06em;color:#9fb0a6;text-transform:uppercase;white-space:nowrap;overflow:hidden}
.mh-gh b{font-weight:600;overflow:hidden;text-overflow:ellipsis}.mh-gh em{font-style:normal}.mh-gh .up{color:#2ee88f}.mh-gh .dn{color:#ff5d6c}
.mh-gh:hover b{color:#d4ff00}.mh-g.nohd .mh-gh{display:none}
.mh-g:hover{box-shadow:inset 0 0 0 1px rgba(212,255,0,.45)}
.mh-t{margin:0;border-radius:3px;z-index:1}
.mh-t .lv{position:absolute;right:4px;top:4px;width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.75);opacity:0}
.mh-t.fl .lv{animation:mhLv .9s ease-out}@keyframes mhLv{0%{opacity:1;transform:scale(1.6)}100%{opacity:0}}
.mh-t b{font-family:'Inter',system-ui,sans-serif;font-weight:700;letter-spacing:.01em}
.mh-leg{display:flex;align-items:center;gap:2px;flex-wrap:wrap;padding:8px 10px 10px;font:600 10px 'JetBrains Mono',monospace;color:#e9f1ec}
.mh-leg span{min-width:46px;padding:4px 6px;text-align:center;border-radius:3px}
.mh-leg em{margin-left:10px;font-style:normal;color:#7d8f84;letter-spacing:.04em}
.mh-mx{position:absolute;inset:0;overflow:auto;display:grid;place-items:center}
.mh-mx table{border-collapse:separate;border-spacing:3px;font:600 12px 'JetBrains Mono',monospace;color:#fff}
.mh-mx th{padding:6px 8px;color:#9fb0a6;font-weight:600}.mh-mx td{min-width:62px;height:40px;text-align:center;border-radius:4px;transition:background-color 1s}
.mh-mx td.dg{background:repeating-linear-gradient(45deg,#121a16 0 6px,#0d1411 6px 12px)}.mh-mx .st{background:none;color:#9fb0a6}.mh-mx td.st.up{color:#2ee88f}.mh-mx td.st.dn{color:#ff5d6c}
.mh-mxw{color:#7d8f84;font:500 12px 'JetBrains Mono',monospace}
@media (max-width:640px){.mh-br{flex-basis:90px}.mh-ctl{margin-left:0}.mh-leg span{min-width:36px;font-size:9px}.mh-leg em{width:100%;margin:4px 0 0}}
.mh [hidden]{display:none!important}

/* ================= 7.28 · professional heatmap theme =================
   Why: the site-wide font rule (type.css) forced Julius Sans One onto tickers and numbers, and the tile flash
   reused the site's .up/.dn classes, which painted tile text red or green. Tiles now use one clean sans font,
   white text, a calm colour scale, hairline gaps and a quiet tick pulse, like a trading desk heatmap. */
.mh{--mhf:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,system-ui,sans-serif;--mhm:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;background:#0b0d0f;border-radius:12px}
html body .mh:not(#_),html body .mh *:not(#_){font-family:var(--mhf)!important}   /* :not(#_) out-ranks the site-wide font rule */
html body .mh .mh-leg span:not(#_),html body .mh .mh-tip:not(#_),html body .mh .mh-tip *:not(#_),html body .mh .mh-wait:not(#_){font-family:var(--mhm)!important}
.mh-area{margin:0 8px}
/* tiles */
.mh .mh-t{border-radius:2px;box-shadow:none;color:#fff!important;gap:1px;padding:0 4px}
.mh .mh-t::before{background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(0,0,0,.12))}
.mh .mh-t::after{box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.9);border-radius:2px}
.mh .mh-t:hover{filter:brightness(1.12);z-index:2}
.mh .mh-t b{color:#fff!important;font-weight:600!important;letter-spacing:-.005em!important;text-shadow:0 1px 2px rgba(0,0,0,.35);max-width:100%;overflow:hidden;text-overflow:ellipsis}
.mh .mh-t .c{color:rgba(255,255,255,.92)!important;font-weight:500!important;font-size:calc(var(--fs,12px) * .64);letter-spacing:0;font-variant-numeric:tabular-nums}
.mh .mh-t .p{color:rgba(255,255,255,.62)!important;font-weight:500!important;font-size:calc(var(--fs,12px) * .5);font-variant-numeric:tabular-nums;opacity:1}
.mh .mh-t.sm b{font-size:9px;font-weight:600!important}
.mh .mh-t.fl.fu,.mh .mh-t.fl.fd{animation:mhPulse .7s ease-out}
@keyframes mhPulse{0%{filter:brightness(1.28)}100%{filter:none}}
.mh .mh-t .lv{display:none}
/* sectors */
.mh .mh-g{border-radius:3px;box-shadow:none;background:#14171b}
.mh .mh-g:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
.mh .mh-gh{height:18px;padding:0 6px;gap:6px;background:#14171b;color:#c3cbd3;font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase!important}
.mh .mh-gh b{color:#d9e0e6;font-weight:600}.mh .mh-gh:hover b{color:#fff}
.mh .mh-gh .up,.mh .mh-crumb .up{color:#3ddc97}.mh .mh-gh .dn,.mh .mh-crumb .dn{color:#ff6b7a}
/* toolbar */
.mh .mh-bar{padding:10px 12px 12px;color:#9aa4ad}
.mh .mh-crumb b{font-size:13px;font-weight:600;letter-spacing:.02em;text-transform:none;color:#eef2f5}
.mh .mh-crumb button{border-color:#2a2f36;background:#15191d;color:#eef2f5}
.mh .mh-live{font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase!important;color:#8b959e}
.mh .mh-br{height:4px;background:#1c2126}.mh .mh-br .u{background:#1fb06e}.mh .mh-br .d{background:#d6404f}
.mh .mh-br::after{color:#8b959e;font-size:9.5px}
.mh .mh-ctl label{font-size:10px;letter-spacing:.06em;color:#8b959e}
.mh .mh-ctl select,.mh .mh-tg{height:28px;border:1px solid #2a2f36;border-radius:7px;background:#15191d;color:#dfe5ea;font-size:11.5px;font-weight:600}
.mh .mh-tg.on{border-color:#4a525b;background:#22282e;color:#fff}
/* legend */
.mh .mh-leg{gap:0;padding:10px 12px 12px;color:#fff}
.mh .mh-leg span{min-width:44px;padding:4px 0;border-radius:0;font-size:10px;font-weight:600}
.mh .mh-leg span:first-child{border-radius:3px 0 0 3px}.mh .mh-leg span:nth-child(7){border-radius:0 3px 3px 0}
.mh .mh-leg em{color:#8b959e;font-size:10.5px;letter-spacing:.02em}
/* tooltip */
.mh .mh-tip{background:rgba(17,20,24,.97);border:1px solid #2f363e;border-radius:8px;box-shadow:0 16px 40px -12px rgba(0,0,0,.8)}
.mh .mh-tip b{color:#fff}.mh .mh-tip .up{color:#3ddc97}.mh .mh-tip .dn{color:#ff6b7a}
/* currency matrix */
.mh .mh-mx td{border-radius:2px}.mh .mh-mx th{color:#9aa4ad}
@media (max-width:640px){.mh .mh-leg{flex-wrap:wrap}.mh .mh-leg span{flex:1 0 13%;min-width:0;font-size:9px;padding:4px 0}.mh .mh-leg em{flex:0 0 100%;margin:6px 0 0;width:auto}}
