/* ==================== LEP STATS: shared styles for /stats and /holders ==================== */
.lp-search { display: flex; gap: 0.5rem; max-width: 480px; margin: 1.25rem auto 0; }
.lp-search input {
  flex: 1; min-width: 0; height: 42px; padding: 0 0.9rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text); font: inherit; font-size: 0.95rem;
}
.lp-search input:focus { outline: none; border-color: var(--accent); }
.lp-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  padding: 0.4rem 0.85rem; border-radius: 8px; font: inherit; font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap;
}
.lp-btn:hover { border-color: var(--accent); color: var(--accent); }
.lp-btn.primary { background: var(--accent); border-color: var(--accent); color: #000; }
.lp-btn.sm { padding: 0.15rem 0.5rem; font-size: 0.75rem; border-radius: 6px; }
.lp-err { color: #e66767; font-size: 0.8rem; min-height: 1.2em; margin-top: 0.4rem; text-align: center; }
.lp-asof { color: var(--text-muted); font-size: 0.8rem; text-align: center; margin: -2rem 0 2rem; }

.lp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.lp-kpi { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.25rem; }
.lp-kpi b { display: block; font-family: 'Schoolbell', cursive; font-weight: 400; font-size: 2rem; color: var(--accent); line-height: 1.1; }
.lp-kpi span { color: var(--text-muted); font-size: 0.85rem; }

.lp-sub { color: var(--text-muted); font-size: 0.85rem; padding: 0.9rem 1.5rem 0; }
.lp-chart { position: relative; height: 260px; padding: 0.5rem 1.5rem 1.25rem; }
@media (min-width: 768px) { .lp-chart { height: 320px; } }
.lp-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 1.25rem 1.5rem 0.5rem; }
.lp-click { cursor: pointer; }
.lp-row-val { font-weight: 600; white-space: nowrap; }
.lp-row-val.ac { color: var(--accent); }
.lp-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.5rem; vertical-align: 0; }
.stats-section .stats-foot { padding: 0.9rem 1.5rem; border-top: 1px solid var(--border); }

/* Wallet cells */
.lp-wallet { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.lp-wname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; color: var(--text-muted); }
.lp-tag { font-size: 0.68rem; border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; padding: 0.05rem 0.45rem; white-space: nowrap; }
.lp-tag.warn { border-color: #b98a2e; color: #e0b155; }

/* Tiles */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 0.5rem; }
.lp-tile {
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--border);
  padding: 0; cursor: pointer; font: inherit;
}
.lp-tile img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.lp-tile span {
  position: absolute; left: 3px; bottom: 3px; background: rgba(0,0,0,0.75); color: #fff; font-size: 0.68rem;
  border-radius: 4px; padding: 0 0.3rem; line-height: 1.5;
}
.lp-tile .lp-noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: #000; font-size: 0.7rem; padding: 0.25rem; text-align: center; }
.lp-tile:hover { border-color: var(--accent); }

/* Side panel */
.lp-ov { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.lp-ov.open { opacity: 1; pointer-events: auto; }
.lp-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 201; background: var(--bg-secondary);
  border-left: 1px solid var(--border); transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.lp-panel.open { transform: translateX(0); }
.lp-ph { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.lp-pb { flex: 1; overflow-y: auto; padding: 1.25rem; }
.lp-pb h2 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.lp-hero { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.lp-hero .lp-tile { width: 112px; flex-shrink: 0; cursor: default; }
.lp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.25rem; }
.lp-fact { border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.8rem; min-width: 0; }
.lp-fact.wide { grid-column: 1 / -1; }
.lp-fact small { display: block; color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.lp-fact div { overflow: hidden; text-overflow: ellipsis; }
.lp-h { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 1.25rem 0 0.5rem; }
.lp-tx { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.lp-tx:last-child { border-bottom: 0; }
.lp-link { color: var(--accent); cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.lp-link:hover { text-decoration: underline; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.lp-note { border: 1px dashed var(--border); border-radius: 10px; padding: 0.6rem 0.8rem; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }

/* Holders table */
.lp-tablewrap { overflow-x: auto; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.lp-table th, .lp-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.lp-table th { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; white-space: nowrap; }
.lp-table th button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.lp-table th button:hover, .lp-table th button.on { color: var(--accent); }
.lp-table tbody tr { cursor: pointer; transition: background 0.2s ease; }
.lp-table tbody tr:hover { background: var(--bg); }
.lp-table td.num { font-weight: 600; }
.lp-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
.lp-toolbar label { color: var(--text-muted); font-size: 0.85rem; display: inline-flex; gap: 0.4rem; align-items: center; cursor: pointer; }
.lp-toolbar input[type="search"] {
  height: 38px; padding: 0 0.8rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; min-width: 0; flex: 1 1 220px; max-width: 360px;
}
/* Punk grids: hide the number until you hover */
.lp-grid .lp-tile span { opacity: 0; transition: opacity 0.15s ease; }
.lp-grid .lp-tile:hover span,
.lp-grid .lp-tile:focus-visible span { opacity: 1; }
