/* ════════════════════════════════════════════════════════════
   ETH Whale Tracker — styles.css
   ════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:     #050810;
  --bg2:    #090d1a;
  --card:   #0b1020;
  --border: #1a2540;
  --green:  #00ffaa;
  --cyan:   #00d4ff;
  --purple: #a855f7;
  --orange: #ff8c00;
  --red:    #ff3366;
  --yellow: #ffd700;
  --dim:    #4a5568;
  --text:   #c8d8f0;
  --muted:  #5a6a8a;
  --glow-g: 0 0 20px #00ffaa55;
  --glow-c: 0 0 20px #00d4ff55;
  --glow-r: 0 0 20px #ff336655;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* grid overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ambient glow */
body::after {
  content: '';
  position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(0,255,170,.04) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 80%, rgba(0,212,255,.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 8s ease-in-out infinite alternate;
}
@keyframes bgPulse { from { opacity: .5 } to { opacity: 1 } }

/* ── SCANLINE ────────────────────────────────────────────────── */
.scanline {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .11; pointer-events: none; z-index: 999;
  animation: scanDown 7s linear infinite;
}
@keyframes scanDown { from { top: -2px } to { top: 100vh } }

/* ── TICKER ──────────────────────────────────────────────────── */
.ticker-bar {
  position: relative; z-index: 10;
  background: rgba(0,255,170,.05);
  border-bottom: 1px solid rgba(0,255,170,.15);
  padding: 8px 0; overflow: hidden; white-space: nowrap;
}
.ticker-label {
  display: inline-block;
  background: var(--green); color: #000;
  font-family: 'Orbitron', monospace;
  font-size: 9px; font-weight: 800; letter-spacing: 2px;
  padding: 3px 12px; margin-right: 20px; vertical-align: middle;
}
.ticker-track {
  display: inline-block;
  animation: tickerScroll 80s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item  { display: inline-block; margin-right: 48px; font-size: 11px; }
.t-hash       { color: var(--cyan); }
.t-amt        { font-family: 'Orbitron', monospace; font-weight: 600; }
.t-amt.xl     { color: var(--orange); }
.t-amt.lg     { color: var(--green); }
.t-amt.md     { color: var(--cyan); }
.ticker-sep   { color: var(--dim); margin: 0 6px; }
@keyframes tickerScroll { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.wrap {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── HEADER ──────────────────────────────────────────────────── */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0 20px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 16px;
}
.logo         { display: flex; align-items: center; gap: 14px; }
.logo-icon    { font-size: 38px; filter: drop-shadow(0 0 14px #00ffaa88); animation: floatWhale 3s ease-in-out infinite; }
@keyframes floatWhale { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
.logo-text    { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 22px; letter-spacing: 3px;
                background: linear-gradient(135deg, var(--green), var(--cyan));
                -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-sub     { font-size: 10px; color: var(--muted); letter-spacing: 4px; text-transform: uppercase; margin-top: 2px; }
.live-badge   { display: flex; align-items: center; gap: 8px; background: rgba(0,255,170,.06);
                border: 1px solid rgba(0,255,170,.2); border-radius: 6px;
                padding: 8px 16px; font-size: 11px; letter-spacing: 2px; color: var(--green); }
.live-dot     { width: 8px; height: 8px; background: var(--green); border-radius: 50%;
                box-shadow: var(--glow-g); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .2 } }

/* ── WHALE OF THE DAY ────────────────────────────────────────── */
.wotd-row { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin: 28px 0 20px; }
.wotd-card {
  background: linear-gradient(135deg, rgba(255,215,0,.07), rgba(255,140,0,.04));
  border: 1px solid rgba(255,215,0,.3); border-radius: 14px; padding: 22px;
  position: relative; overflow: hidden;
}
.wotd-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--orange), transparent);
}
.crown        { position: absolute; right: 14px; top: 12px; font-size: 30px; opacity: .18; }
.wotd-label   { font-family: 'Orbitron', monospace; font-size: 9px; letter-spacing: 3px;
                color: var(--yellow); text-transform: uppercase; margin-bottom: 12px; }
.wotd-addr    { font-size: 11px; color: var(--text); margin-bottom: 8px; cursor: pointer; transition: color .2s; }
.wotd-addr:hover { color: var(--cyan); }
.wotd-amount  { font-family: 'Orbitron', monospace; font-size: 30px; font-weight: 900;
                color: var(--yellow); text-shadow: 0 0 30px #ffd70055; line-height: 1; }
.wotd-meta    { font-size: 10px; color: var(--muted); }
.wotd-meta span { color: var(--orange); }

/* ── STAT CARDS ──────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; position: relative; overflow: hidden; transition: transform .2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.stat-card.g::before { background: linear-gradient(90deg, var(--green), transparent); }
.stat-card.c::before { background: linear-gradient(90deg, var(--cyan), transparent); }
.stat-card.p::before { background: linear-gradient(90deg, var(--purple), transparent); }
.stat-card.o::before { background: linear-gradient(90deg, var(--orange), transparent); }
.stat-label { font-size: 10px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.stat-value { font-family: 'Orbitron', monospace; font-size: 24px; font-weight: 800; line-height: 1; }
.stat-card.g .stat-value { color: var(--green);  text-shadow: 0 0 20px #00ffaa44; }
.stat-card.c .stat-value { color: var(--cyan);   text-shadow: 0 0 20px #00d4ff44; }
.stat-card.p .stat-value { color: var(--purple); text-shadow: 0 0 20px #a855f744; }
.stat-card.o .stat-value { color: var(--orange); text-shadow: 0 0 20px #ff8c0044; }
.stat-delta     { margin-top: 8px; font-size: 11px; color: var(--muted); }
.stat-delta span { color: var(--green); }

/* ── SECTION ─────────────────────────────────────────────────── */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.section-title {
  font-family: 'Orbitron', monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--cyan);
}
.section-divider {
  margin: 32px 0 24px; border: none; border-top: 1px solid var(--border); position: relative;
}
.section-divider::after {
  content: attr(data-label); position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--bg); padding: 0 16px;
  font-family: 'Orbitron', monospace; font-size: 9px; letter-spacing: 4px; color: var(--muted);
}

/* ── BUTTONS & FILTERS ───────────────────────────────────────── */
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: transparent; color: var(--muted);
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  cursor: pointer; letter-spacing: 1px; transition: all .2s;
}
.pill:hover  { border-color: var(--cyan); color: var(--cyan); }
.pill.active { background: rgba(0,212,255,.12); border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-c); }
.toggle-btn {
  padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: transparent; color: var(--muted);
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  cursor: pointer; letter-spacing: 1px; transition: all .2s;
}
.toggle-btn:hover { border-color: var(--orange); color: var(--orange); }
.toggle-btn.on    { background: rgba(255,140,0,.12); border-color: var(--orange); color: var(--orange); }

/* ── ANOMALY ─────────────────────────────────────────────────── */
.anomaly-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,51,102,.08); border: 1px solid rgba(255,51,102,.3);
  border-radius: 6px; padding: 4px 12px; font-size: 10px; color: var(--red); letter-spacing: 1px;
}
.anomaly-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: blink 1s infinite; }

/* ── CHART CARDS ─────────────────────────────────────────────── */
.chart-card   { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.charts-2     { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.mb20         { margin-bottom: 20px; }
.chart-wrap   { height: 220px; position: relative; }
.chart-wrap-md { height: 260px; position: relative; }

/* ── HEATMAP ─────────────────────────────────────────────────── */
.heatmap-wrap  { overflow-x: auto; padding-bottom: 8px; }
.heatmap-grid  { display: flex; gap: 3px; }
.heatmap-col   { display: flex; flex-direction: column; gap: 3px; }
.heatmap-cell  { width: 12px; height: 12px; border-radius: 2px; cursor: pointer; transition: transform .15s; }
.heatmap-cell:hover { transform: scale(1.6); z-index: 10; position: relative; }
.heatmap-day-labels { display: flex; flex-direction: column; gap: 3px; margin-right: 6px; padding-top: 18px; }
.hm-day-label  { font-size: 9px; color: var(--muted); height: 12px; display: flex; align-items: center; }
.hm-month-label { font-size: 9px; color: var(--muted); min-height: 14px; min-width: 12px; }
.hm-legend     { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.hm-legend-cells { display: flex; gap: 3px; }
.hm-legend-cell { width: 12px; height: 12px; border-radius: 2px; }
.hm-tooltip {
  position: fixed; background: rgba(11,16,32,.95); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px; font-size: 11px; pointer-events: none; display: none; z-index: 300;
}

/* ── NETWORK GRAPH ───────────────────────────────────────────── */
#network-svg { width: 100%; height: 400px; background: transparent; display: block; }
.net-tooltip {
  position: fixed; background: rgba(11,16,32,.96); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; font-size: 11px; pointer-events: none; display: none; z-index: 200; min-width: 180px;
}
.nt-addr { color: var(--cyan); margin-bottom: 6px; font-size: 10px; word-break: break-all; }
.nt-row  { color: var(--muted); margin-bottom: 3px; }
.nt-row span { color: var(--text); }

/* ── TABLE ───────────────────────────────────────────────────── */
.table-card   { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.table-scroll { overflow-x: auto; }
table         { width: 100%; border-collapse: collapse; font-size: 12px; }
thead th      { text-align: left; padding: 10px 14px; font-family: 'Orbitron', monospace; font-size: 9px;
                letter-spacing: 3px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr      { border-bottom: 1px solid rgba(26,37,64,.5); transition: background .15s; cursor: pointer; }
tbody tr:hover { background: rgba(0,212,255,.04); }
tbody td      { padding: 11px 14px; white-space: nowrap; }
.hash-cell    { color: var(--cyan); font-size: 11px; text-decoration: none; }
.addr-link    { color: var(--muted); font-size: 11px; cursor: pointer; transition: color .2s; text-decoration: underline dotted; text-underline-offset: 3px; }
.addr-link:hover { color: var(--cyan); }
.amount-cell  { font-family: 'Orbitron', monospace; font-weight: 600; }
.amount-xl    { color: var(--orange); }
.amount-lg    { color: var(--green); }
.amount-md    { color: var(--cyan); }
.time-cell    { color: var(--dim); font-size: 11px; }
.block-cell   { color: var(--purple); }
.hot-row      { background: rgba(255,51,102,.04) !important; }
.hot-row td:first-child { border-left: 2px solid var(--red); }
.count-badge  { display: inline-block; background: rgba(0,255,170,.1); border: 1px solid rgba(0,255,170,.25);
                color: var(--green); border-radius: 4px; font-size: 10px; padding: 2px 8px; letter-spacing: 1px; margin-left: 10px; }

/* ── LEADERBOARD ─────────────────────────────────────────────── */
.leader-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 40px; }
.leader-card  { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.leader-period { font-family: 'Orbitron', monospace; font-size: 10px; letter-spacing: 3px; color: var(--muted);
                 text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.leader-period::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.leader-entry { display: flex; align-items: center; gap: 10px; padding: 7px 0;
                border-bottom: 1px solid rgba(26,37,64,.5); cursor: pointer; transition: padding-left .15s; }
.leader-entry:last-child { border-bottom: none; }
.leader-entry:hover { padding-left: 4px; }
.rank         { font-family: 'Orbitron', monospace; font-size: 11px; font-weight: 800; width: 22px; text-align: center; }
.rank-1       { color: #ffd700; text-shadow: 0 0 10px #ffd70055; }
.rank-2       { color: #c0c0c0; }
.rank-3       { color: #cd7f32; }
.rank-n       { color: var(--dim); }
.leader-addr  { flex: 1; font-size: 11px; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.leader-count { font-family: 'Orbitron', monospace; font-size: 12px; font-weight: 600; color: var(--green); }

/* ── PROFILER MODAL ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,8,16,.88);
  backdrop-filter: blur(8px); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 660px; max-height: 88vh; overflow-y: auto;
}
.modal-header {
  padding: 22px 22px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  position: sticky; top: 0; background: var(--bg2); z-index: 5;
}
.modal-close {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0;
}
.modal-close:hover    { border-color: var(--red); color: var(--red); }
.modal-body           { padding: 18px 22px 22px; }
.modal-addr-title     { font-family: 'Orbitron', monospace; font-size: 10px; font-weight: 600; color: var(--cyan); letter-spacing: 2px; margin-bottom: 6px; }
.modal-addr-full      { font-size: 11px; color: var(--muted); word-break: break-all; }
.profile-stats        { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 14px 0; }
.ps-card              { background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 10px; padding: 13px; }
.ps-label             { font-size: 9px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: 5px; }
.ps-value             { font-family: 'Orbitron', monospace; font-size: 16px; font-weight: 700; }
.ps-card.g .ps-value  { color: var(--green); }
.ps-card.c .ps-value  { color: var(--cyan); }
.ps-card.o .ps-value  { color: var(--orange); }
.ps-date-card         { background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 12px; color: var(--text); }
.profile-section-title { font-family: 'Orbitron', monospace; font-size: 9px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin: 14px 0 8px; }
.profile-mini-chart   { height: 80px; margin-bottom: 8px; }
.profile-tx-row       { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
                        padding: 8px 10px; background: rgba(255,255,255,.02); border-radius: 8px; margin-bottom: 5px; font-size: 11px; }

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1050px) {
  .wotd-row    { grid-template-columns: 1fr; }
  .stats-row   { grid-template-columns: repeat(2,1fr); }
  .charts-2    { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 520px) {
  .stats-row     { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .leader-grid   { grid-template-columns: 1fr; }
}

/* ── TICKER LINKS ────────────────────────────────────────────── */
.ticker-link {
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}
.ticker-link:hover { opacity: .75; }
.t-rank { color: var(--muted); font-size: 10px; margin-right: 4px; }

/* ── WOTD SCAN BUTTON ────────────────────────────────────────── */
.wotd-scan-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  padding: 6px 14px;
  background: rgba(255,215,0,.08);
  border: 1px solid rgba(255,215,0,.3);
  border-radius: 8px;
  color: var(--yellow);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .2s;
}
.wotd-scan-btn:hover {
  background: rgba(255,215,0,.18);
  border-color: var(--yellow);
  box-shadow: 0 0 12px #ffd70033;
}

/* ── ANOMALY INFO BUTTON & POPUP ─────────────────────────────── */
.anomaly-info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,51,102,.5);
  background: transparent;
  color: var(--red);
  font-size: 10px;
  font-family: 'Share Tech Mono', monospace;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: background .2s;
}
.anomaly-info-btn:hover { background: rgba(255,51,102,.15); }

.anomaly-info-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  width: 320px;
  background: #0d1829;
  border: 1px solid rgba(255,51,102,.5);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.8), 0 0 24px rgba(255,51,102,.15);
}
.anomaly-info-popup.visible { display: block; }
.aip-title {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 10px;
}
.aip-body {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.aip-body b { color: var(--text); }

/* Make anomaly badge position:relative so popup can anchor to it */
.anomaly-badge { position: relative; }

/* ── PAGE LOADER ─────────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
}
.loader-inner { text-align: center; }
.loader-whale {
  font-size: 56px;
  animation: floatWhale 1.8s ease-in-out infinite;
  display: block; margin-bottom: 12px;
}
.loader-text {
  font-family: 'Orbitron', monospace;
  font-size: 11px; letter-spacing: 4px;
  color: var(--cyan); text-transform: uppercase;
  animation: blink 1.4s ease-in-out infinite;
}

/* ── ALL-TIME LARGEST TX CARD ────────────────────────────────── */
.alltime-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.alltime-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(168,85,247,.08);
  color: var(--purple);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .2s;
}
.alltime-btn:hover {
  background: rgba(168,85,247,.2);
  border-color: var(--purple);
  box-shadow: 0 0 10px rgba(168,85,247,.3);
}
.alltime-addr {
  margin-top: 6px;
  font-size: 11px;
}

/* ── ETH LIVE PRICE WIDGET ───────────────────────────────────── */
.eth-price-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0,212,255,.05);
  backdrop-filter: blur(4px);
  min-width: 120px;
}
.eth-price-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
}
.eth-price-val {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
}
.eth-price-change {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  min-height: 14px;
}

/* ── TELEGRAM BUTTON ─────────────────────────────────────────── */
.tg-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #229ED9, #1a7fc1);
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.tg-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}

/* ── RANGE FILTER PILLS — active = filled, inactive = transparent ── */
[data-r].pill {
  background: transparent !important;
  opacity: 0.55;
  transition: background .15s, opacity .15s;
}
[data-r].pill.active {
  background: color-mix(in srgb, currentColor 25%, transparent) !important;
  opacity: 1;
}
