/* ══════════════════════════════════════════════════════════════════════════
   THE MATRIX LEAK — NitroDashboard design system
   ══════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ── Design tokens (same as NitroDashboard) ──────────────────────────────── */
:root {
  --a  : #c6f135;
  --bg : #080d04;
  --s  : #0f1908;
  --br : #1e3310;
  --br2: #2a4a14;
  --tx : #d4e8b8;
  --mu : #5a7040;
  --rd : #ff4545;
  --r  : 16px;
  --rs : 10px;

  --panel-w : 290px;
  --topbar-h: 48px;
  --ticker-h: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── App shell ───────────────────────────────────────────────────────────── */
#ml-app {
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	z-index: 9999 !important;
	background: var(--bg);
	background-image: radial-gradient(ellipse at 15% 0%, rgba(198,241,53,.07), transparent 55%), radial-gradient(ellipse at 85% 100%, rgba(198,241,53,.04), transparent 55%);
	font-family: 'Rajdhani', sans-serif;
	color: var(--tx);
	overflow: hidden;
	max-width: 100%;
	margin-top: 0;
}
/* Hide WP theme chrome when map is present */
body:has(#ml-app) { overflow: hidden !important; margin: 0 !important; padding: 0 !important; }
html:has(#ml-app) { overflow: hidden !important; }
body:has(#ml-app) #wpadminbar,
body:has(#ml-app) header, body:has(#ml-app) .site-header,
body:has(#ml-app) footer,  body:has(#ml-app) .site-footer,
body:has(#ml-app) nav, body:has(#ml-app) .entry-header { display: none !important; }

/* ── Map canvas ──────────────────────────────────────────────────────────── */
#ml-map {
  position: absolute;
  inset: var(--topbar-h) 0 var(--ticker-h) 0;
}

/* ══ TOP BAR ════════════════════════════════════════════════════════════════ */
#ml-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--br);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 30;
  gap: 12px;
}

.ml-tb-left  { flex: 0 0 auto; }
.ml-tb-right { flex: 0 0 auto; }

.ml-tb-logo {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--a);
  text-shadow: 0 0 14px rgba(198,241,53,.5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ml-tb-logo::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--a);
  box-shadow: 0 0 10px var(--a);
  animation: ndP 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes ndP { 0%,100%{opacity:1;box-shadow:0 0 8px var(--a)} 50%{opacity:.3;box-shadow:none} }

.ml-countdown-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ml-cd-lbl {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--mu);
}
.ml-cd-val {
  font-family: 'Orbitron', monospace;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 16px rgba(198,241,53,.5);
}

/* ══ LEFT PANEL ══════════════════════════════════════════════════════════════ */
#ml-panel {
  position: fixed;
  top: var(--topbar-h);
  bottom: var(--ticker-h);
  left: 0;
  width: var(--panel-w);
  z-index: 20;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
#ml-panel.collapsed { transform: translateX(calc(-1 * var(--panel-w))); }

.ml-panel-toggle {
  position: absolute;
  right: -38px;
  top: 14px;
  width: 38px; height: 46px;
  background: var(--s);
  border: 1px solid var(--br);
  border-left: none;
  color: var(--a);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 var(--rs) var(--rs) 0;
  transition: background .15s, box-shadow .15s;
  z-index: 21;
  font-family: 'Orbitron', monospace;
}
.ml-panel-toggle:hover {
  background: var(--br);
  box-shadow: 4px 0 16px rgba(198,241,53,.08);
}

.ml-panel-inner {
  width: 100%;
  height: 100%;
  background: var(--s);
  border-right: 1px solid var(--br);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.ml-tabs {
  display: flex;
  border-bottom: 1px solid var(--br);
  flex-shrink: 0;
  background: var(--bg);
}
.ml-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--mu);
  font-family: 'Orbitron', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  padding: 12px 4px;
  cursor: pointer;
  transition: color .15s;
}
.ml-tab:hover { color: var(--tx); }
.ml-tab.active {
  color: var(--a);
  border-bottom-color: var(--a);
}

.ml-tab-pane {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--br2) transparent;
}
.ml-tab-pane.active { display: block; }
.ml-tab-pane::-webkit-scrollbar { width: 3px; }
.ml-tab-pane::-webkit-scrollbar-thumb { background: var(--br2); border-radius: 2px; }

/* ── Section label (shared) ──────────────────────────────────────────────── */
.ml-section-label {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--a);
  background: rgba(198,241,53,.06);
  border: 1px solid rgba(198,241,53,.15);
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

/* ══ IDENTITY TAB ═══════════════════════════════════════════════════════════ */
.ml-unregistered {
  text-align: center;
  padding: 32px 12px;
}
.ml-ur-icon {
  font-size: 44px;
  color: var(--br2);
  margin-bottom: 14px;
  filter: drop-shadow(0 0 8px rgba(198,241,53,.2));
}
.ml-ur-text {
  font-size: 13px;
  color: var(--mu);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Balance display — nd-bal style */
.ml-balance-big {
  background: var(--bg);
  border: 1px solid var(--br);
  border-radius: var(--r);
  padding: 18px 16px 14px;
  text-align: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  animation: ndFU .5s ease both;
}
.ml-balance-big::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--a), transparent);
}
.ml-balance-big::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(198,241,53,.12), transparent 70%);
  pointer-events: none;
}
.ml-bal-lbl {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--a);
  margin-bottom: 6px;
}
.ml-bal-val {
  font-family: 'Orbitron', monospace;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(198,241,53,.5);
}

/* ID card rows — nd-tbl style */
.ml-id-card {
  background: var(--bg);
  border: 1px solid var(--br);
  border-radius: var(--rs);
  overflow: hidden;
  margin-bottom: 14px;
  animation: ndFU .5s ease .07s both;
}
.ml-id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(30,51,16,.6);
  transition: background .2s;
}
.ml-id-row:last-child { border-bottom: none; }
.ml-id-row:hover { background: rgba(198,241,53,.03); }
.ml-id-lbl {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--mu);
}
.ml-id-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--a);
}
.ml-id-val.frozen { color: #4488ff; }

/* Virus link box */
.ml-virus-box {
  background: var(--bg);
  border: 1px solid var(--br);
  border-radius: var(--rs);
  padding: 12px;
  animation: ndFU .5s ease .14s both;
}
.ml-virus-label {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--a);
  margin-bottom: 8px;
}
.ml-virus-url {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--mu);
  word-break: break-all;
  margin-bottom: 8px;
  line-height: 1.5;
}

@keyframes ndFU { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }

/* ══ NETWORK TAB ════════════════════════════════════════════════════════════ */
.ml-tier-block {
  background: var(--bg);
  border: 1px solid var(--br);
  border-radius: var(--rs);
  padding: 14px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.ml-tier-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--a), transparent);
}
.ml-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ml-tier-header .tl {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--mu);
}
.ml-tier-header .tv {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--a);
}
.ml-tier-bar-bg {
  height: 5px;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--br);
  border-radius: 3px;
  overflow: hidden;
}
.ml-tier-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--br2), var(--a));
  box-shadow: 0 0 8px rgba(198,241,53,.5);
  transition: width 1s ease;
}

.ml-feed-list { margin-bottom: 4px; }
.ml-feed-item {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--tx);
  padding: 6px 0;
  border-bottom: 1px solid rgba(30,51,16,.5);
  line-height: 1.4;
  animation: ndFU .3s ease;
}
.ml-feed-connecting {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--mu);
  font-style: italic;
}

.ml-legend { display: flex; flex-direction: column; gap: 8px; }
.ml-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--tx);
}
.ml-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ml-dot-active   { background: var(--a); box-shadow: 0 0 8px var(--a); }
.ml-dot-dormant  { background: #1a1a0a; border: 1px solid #333320; }
.ml-dot-golden   { background: #ffd700; box-shadow: 0 0 8px #ffd700; }
.ml-dot-proposed { background: transparent; border: 1.5px dashed #88aaff; }

/* ══ GUIDE TAB ══════════════════════════════════════════════════════════════ */
.ml-steps { display: flex; flex-direction: column; gap: 14px; }
.ml-step  { display: flex; gap: 12px; align-items: flex-start; }
.ml-step-n {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 900;
  color: var(--br2);
  flex-shrink: 0;
  line-height: 1;
  min-width: 32px;
}
.ml-step strong {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--a);
  margin-bottom: 3px;
}
.ml-step p { font-size: 13px; color: var(--mu); line-height: 1.5; }

.ml-rules { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ml-rules li {
  font-size: 13px;
  color: var(--tx);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.ml-rules li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--a);
}
.ml-rules strong { color: var(--a); }
.ml-guide-p { font-size: 13px; color: var(--mu); margin-bottom: 10px; line-height: 1.5; }

/* ══ BOTTOM TICKER ══════════════════════════════════════════════════════════ */
#ml-ticker-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: var(--ticker-h);
  background: var(--bg);
  border-top: 1px solid var(--br);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  overflow: hidden;
  z-index: 30;
}
.ml-ticker-prefix {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--a);
  flex-shrink: 0;
}
#ml-ticker-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--mu);
  animation: ndFU .4s ease;
}

/* ══ NODE PANEL (slides up) ═════════════════════════════════════════════════ */
.ml-node-panel {
  position: absolute;
  bottom: var(--ticker-h);
  left: calc(var(--panel-w) + 38px);
  right: 0;
  max-width: 420px;
  background: var(--s);
  background-image: radial-gradient(ellipse at 85% 0%, rgba(198,241,53,.06), transparent 60%);
  border: 1px solid var(--br);
  border-bottom: none;
  border-radius: var(--r) var(--r) 0 0;
  z-index: 25;
  box-shadow: 0 -8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(198,241,53,.04);
  animation: ndFU .22s ease;
}
.ml-node-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--a), transparent);
}

.ml-node-panel-handle {
  width: 36px; height: 4px;
  background: var(--br2);
  border-radius: 2px;
  margin: 10px auto 0;
}
#ml-node-panel-content { padding: 12px 18px 18px; }

.ml-node-type {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--a);
  background: rgba(198,241,53,.06);
  border: 1px solid rgba(198,241,53,.15);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}
.ml-node-name {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(198,241,53,.3);
}
.ml-close-node {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--mu);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color .15s;
}
.ml-close-node:hover { color: var(--tx); }

/* Stat boxes — 2-col grid, nd-card style */
.ml-node-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.ml-stat-box {
  background: var(--bg);
  border: 1px solid var(--br);
  border-radius: var(--rs);
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s;
}
.ml-stat-box::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, transparent 60%, rgba(198,241,53,.05) 60%);
  border-radius: 0 0 var(--rs) 0;
}
.ml-stat-box .sl {
  font-family: 'Orbitron', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--mu);
  margin-bottom: 4px;
}
.ml-stat-box .sv {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.ml-stat-box .sv.ok   { color: var(--a); text-shadow: 0 0 10px rgba(198,241,53,.4); }
.ml-stat-box .sv.gold { color: #ffd700; text-shadow: 0 0 10px rgba(255,215,0,.4); }
.ml-stat-box .sv.red  { color: var(--rd); }
.ml-stat-box .sv.dim  { color: var(--mu); }

.ml-node-actions { display: flex; gap: 8px; }
#ml-node-result { margin-top: 10px; }

/* ══ PIN MARKERS ════════════════════════════════════════════════════════════ */
.ml-pin {
  width: 14px; height: 14px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transform: translate(-50%,-50%);
  transition: transform .1s;
}
.ml-pin:hover { transform: translate(-50%,-50%) scale(1.35); }

.ml-pin-dormant  { background: #131a08; border: 2px solid #2a3514; }
.ml-pin-active   { background: var(--a); border: 2px solid var(--a); box-shadow: 0 0 10px var(--a), 0 0 24px rgba(198,241,53,.4); }
.ml-pin-proposed { background: transparent; border: 2px dashed #7799ff; }
.ml-pin-golden   { background: #ffd700; border: 2px solid #ffd700; box-shadow: 0 0 14px #ffd700, 0 0 28px rgba(255,215,0,.5); }

.ml-sonar {
  position: absolute;
  top: 50%; left: 50%;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--a);
  pointer-events: none;
  opacity: 0;
}
.ml-pin-golden-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,.2) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  animation: gp 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gp { 0%,100%{transform:translate(-50%,-50%) scale(1);opacity:.5} 50%{transform:translate(-50%,-50%) scale(1.8);opacity:1} }

/* User location dot */
.ml-user-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #4af;
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(68,170,255,.25), 0 0 16px #4af;
  position: relative;
  transform: translate(-50%,-50%);
}
.ml-user-pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid #4af;
  opacity: 0;
  pointer-events: none;
  animation: userPulse 2s ease-out infinite;
}
@keyframes userPulse { 0%{transform:translate(-50%,-50%) scale(.4);opacity:.8} 100%{transform:translate(-50%,-50%) scale(2.2);opacity:0} }

/* ══ MODALS ════════════════════════════════════════════════════════════════ */
.ml-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
}
.ml-modal-card {
  background: var(--s);
  background-image: radial-gradient(ellipse at 85% 0%, rgba(198,241,53,.07), transparent 55%);
  border: 1px solid var(--br);
  box-shadow: 0 0 60px rgba(0,0,0,.8), 0 0 0 1px rgba(198,241,53,.04);
  width: 90%;
  max-width: 360px;
  border-radius: var(--r);
  overflow: hidden;
  animation: ndFU .25s ease;
}
.ml-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--br);
  background: rgba(0,0,0,.3);
  position: relative;
}
.ml-modal-head::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--a), transparent);
}
.ml-modal-head span {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--a);
}
.ml-modal-x {
  background: none;
  border: none;
  color: var(--mu);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color .15s;
}
.ml-modal-x:hover { color: var(--tx); }
.ml-modal-body { padding: 18px; font-size: 13px; color: var(--tx); line-height: 1.6; }

/* ══ BUTTONS ════════════════════════════════════════════════════════════════ */
.ml-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--br);
  background: rgba(198,241,53,.05);
  color: var(--tx);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  gap: 6px;
}
.ml-btn:hover { background: rgba(198,241,53,.1); border-color: var(--br2); color: var(--tx); text-decoration: none; }
.ml-btn:disabled { opacity: .4; cursor: not-allowed; }

.ml-btn-primary {
  background: rgba(198,241,53,.1);
  border-color: rgba(198,241,53,.3);
  color: var(--a);
}
.ml-btn-primary:hover {
  background: var(--a);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(198,241,53,.4);
  border-color: var(--a);
}

.ml-btn-outline { background: transparent; border-color: var(--br); color: var(--mu); }
.ml-btn-outline:hover { border-color: var(--br2); color: var(--tx); }

.ml-btn-danger {
  background: rgba(255,69,69,.08);
  border-color: rgba(255,69,69,.3);
  color: var(--rd);
}
.ml-btn-danger:hover { background: var(--rd); color: #fff; box-shadow: 0 0 16px rgba(255,69,69,.3); }

.ml-btn-sm  { font-size: 8px; padding: 5px 10px; }
.ml-btn-block { width: 100%; }

/* Crypto buttons */
.ml-crypto-row { display: flex; gap: 6px; margin: 10px 0 16px; flex-wrap: wrap; }
.ml-crypto-btn {
  background: var(--bg);
  border: 1px solid var(--br);
  color: var(--mu);
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: all .15s;
}
.ml-crypto-btn.active,
.ml-crypto-btn:hover {
  background: rgba(198,241,53,.1);
  color: var(--a);
  border-color: rgba(198,241,53,.3);
}

/* ══ CROSSHAIR ══════════════════════════════════════════════════════════════ */
#ml-crosshair {
  position: absolute;
  inset: var(--topbar-h) 0 var(--ticker-h) 0;
  z-index: 40;
  background: rgba(0,0,0,.2);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 22px;
  pointer-events: none;   /* clicks pass through to map canvas */
}
.ml-crosshair-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--s);
  border: 1px solid var(--br2);
  padding: 10px 18px;
  border-radius: var(--rs);
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--tx);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  pointer-events: all;    /* cancel button works */
}

/* ══ RESULTS ════════════════════════════════════════════════════════════════ */
.ml-result {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--rs);
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
}
.ml-result-ok  { color: var(--a); background: rgba(198,241,53,.07); border: 1px solid rgba(198,241,53,.2); }
.ml-result-err { color: var(--rd); background: rgba(255,69,69,.07); border: 1px solid rgba(255,69,69,.25); }

/* Payment address */
.ml-pay-address {
  display: block;
  word-break: break-all;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--br);
  border-radius: var(--rs);
  margin: 8px 0;
  color: var(--a);
  line-height: 1.5;
}

/* ══ UTILITY ════════════════════════════════════════════════════════════════ */
.ml-neon   { color: var(--a); }
.ml-gold   { color: #ffd700; }
.ml-red    { color: var(--rd); }
.ml-dim    { color: var(--mu); font-size: 13px; }

/* ══ GLITCH (shift effect — fires once) ════════════════════════════════════ */
@keyframes glitch {
  0%,100%{clip-path:none;transform:none}
  20%{clip-path:polygon(0 10%,100% 10%,100% 26%,0 26%);transform:translateX(4px)}
  40%{clip-path:polygon(0 55%,100% 55%,100% 70%,0 70%);transform:translateX(-4px)}
  60%{clip-path:polygon(0 35%,100% 35%,100% 45%,0 45%);transform:translateX(2px)}
  80%{clip-path:polygon(0 72%,100% 72%,100% 82%,0 82%);transform:translateX(-2px)}
}
.ml-glitch #ml-map { animation: glitch .15s steps(2) 4; }

/* ══ MAPBOX OVERRIDES ══════════════════════════════════════════════════════ */
.mapboxgl-ctrl-logo, .mapboxgl-ctrl-attrib { filter: invert(1) opacity(.15) !important; }
.mapboxgl-ctrl-group {
  background: var(--s) !important;
  border: 1px solid var(--br) !important;
  border-radius: var(--rs) !important;
  box-shadow: none !important;
}
.mapboxgl-ctrl button {
  background: transparent !important;
}
.mapboxgl-ctrl button span {
  filter: invert(1) sepia(1) saturate(3) hue-rotate(50deg) brightness(.85);
}

/* ══ MOBILE ════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --panel-w: 260px; --topbar-h: 44px; }
  .ml-cd-val { font-size: 14px; }
  .ml-node-panel { left: 0; max-width: 100%; border-radius: 0; }
  .ml-bal-val { font-size: 26px; }
}

/* ══ SHOP TAB ══════════════════════════════════════════════════════════════ */
.ml-shop-empty {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--mu);
  text-align: center;
  padding: 32px 16px;
  border: 1px dashed var(--br);
  border-radius: var(--r);
  line-height: 1.8;
}

.ml-shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ml-shop-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--br);
  border-radius: var(--rs);
  overflow: hidden;
  text-decoration: none;
  color: var(--tx);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
  animation: ndFU .5s ease both;
}
.ml-shop-card:hover {
  transform: translateY(-4px);
  border-color: var(--br2);
  box-shadow: 0 0 24px rgba(198,241,53,.1), 0 8px 24px rgba(0,0,0,.5);
  color: var(--tx);
  text-decoration: none;
}
.ml-shop-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--a), transparent);
  opacity: 0;
  transition: opacity .25s;
  z-index: 3;
}
.ml-shop-card:hover::before { opacity: 1; }

.ml-shop-img {
  height: 100px;
  background: var(--s) center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ml-shop-img-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,13,4,.75), transparent 55%),
              linear-gradient(to bottom, rgba(8,13,4,.2), transparent 40%);
  pointer-events: none;
}
.ml-shop-noimg {
  font-size: 28px;
  color: var(--br2);
  z-index: 1;
}

.ml-shop-body {
  padding: 8px 10px 10px;
  flex: 1;
}
.ml-shop-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 5px;
}
.ml-shop-price {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--a);
  text-shadow: 0 0 8px rgba(198,241,53,.3);
}
.ml-shop-price del, .ml-shop-price .woocommerce-Price-amount:first-child:not(:last-child) {
  font-size: 10px;
  color: var(--mu);
  font-weight: 400;
}
