* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0a0e17; color: #e0e6ed; min-height: 100vh; }
.container { max-width: 1400px; margin: 0 auto; padding: 24px 16px; }

header { text-align: center; margin-bottom: 24px; }
header h1 { font-size: 1.8rem; background: linear-gradient(135deg, #00d4ff, #7b61ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.subtitle { color: #6b7a8d; margin-top: 6px; font-size: 14px; }

.search-panel { background: #111827; border: 1px solid #1e293b; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.input-row { display: flex; gap: 10px; }
.input-row select, .input-row input { background: #1a2332; border: 1px solid #2d3a4a; color: #e0e6ed; padding: 11px 14px; border-radius: 8px; font-size: 14px; }
.input-row select { min-width: 140px; cursor: pointer; }
.input-row input { flex: 1; font-family: 'Courier New', monospace; }
.input-row input::placeholder { color: #4a5568; }
.input-row button { background: linear-gradient(135deg, #00d4ff, #7b61ff); color: #fff; border: none; padding: 11px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.input-row button:disabled { opacity: 0.5; cursor: not-allowed; }

.hidden { display: none !important; }

.status-panel { background: #111827; border: 1px solid #1e293b; border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.spinner { width: 20px; height: 20px; border: 3px solid #1e293b; border-top-color: #00d4ff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#statusText { color: #8b9ab0; font-size: 13px; }

.results-panel { background: #111827; border: 1px solid #1e293b; border-radius: 12px; padding: 20px; }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.results-header h2 { font-size: 1.2rem; }
.results-meta { display: flex; gap: 12px; }
.results-meta span { background: #1a2332; padding: 5px 12px; border-radius: 16px; font-size: 12px; color: #8b9ab0; }

.pools-section { margin-bottom: 16px; }
.pools-section h3 { font-size: 13px; color: #6b7a8d; margin-bottom: 6px; }
.pool-tag { display: inline-block; background: #1a2332; border: 1px solid #2d3a4a; padding: 4px 10px; border-radius: 6px; font-size: 12px; margin: 0 6px 6px 0; }
.pool-tag a { color: #00d4ff; text-decoration: none; }
.pool-tag small { color: #6b7a8d; margin-left: 6px; }

/* Filters */
.filters-panel { background: #0d1420; border: 1px solid #1e293b; border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; }
.filters-panel h3 { font-size: 13px; color: #6b7a8d; margin-bottom: 10px; }
.filters-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.filters-row label { font-size: 13px; color: #8b9ab0; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.filters-row input[type="checkbox"] { accent-color: #00d4ff; }
.filters-row input[type="number"] { background: #1a2332; border: 1px solid #2d3a4a; color: #e0e6ed; padding: 4px 8px; border-radius: 6px; font-size: 13px; }
.filters-row select { background: #1a2332; border: 1px solid #2d3a4a; color: #e0e6ed; padding: 4px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.filter-count { margin-top: 8px; font-size: 12px; color: #6b7a8d; }

/* Table */
table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; padding: 10px 8px; border-bottom: 2px solid #1e293b; color: #6b7a8d; font-size: 11px; font-weight: 600; white-space: nowrap; text-transform: uppercase; }
tbody td { padding: 10px 8px; border-bottom: 1px solid #141c2a; font-size: 13px; vertical-align: middle; }
tbody tr:hover { background: #141c2a; }
tr.row-active { background: #0d1a12; }
tr.row-active:hover { background: #112218; }

.wallet-cell { display: flex; align-items: center; gap: 6px; }
.wallet-addr { font-family: 'Courier New', monospace; font-size: 12px; color: #00d4ff; text-decoration: none; }
.wallet-addr:hover { text-decoration: underline; }
.wallet-actions { display: flex; gap: 2px; }
.wallet-actions button { background: none; border: none; cursor: pointer; font-size: 11px; padding: 2px; }
.debank-link { font-size: 13px; text-decoration: none; }

.badge-active { background: #064e3b; color: #34d399; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-exited { background: #1e1a2e; color: #8b7ab0; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.badge-fee-tier { background: #3730a3; color: #a5b4fc; padding: 2px 6px; border-radius: 8px; font-size: 10px; font-weight: 600; margin-left: 4px; }

.count-badge { background: linear-gradient(135deg, #00d4ff15, #7b61ff15); color: #00d4ff; padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 13px; }
.badge-other { background: linear-gradient(135deg, #ff61a615, #ffb86115); color: #ffb861; }

.lp-cell { font-family: monospace; font-size: 11px; white-space: nowrap; }
.lp-minted { color: #34d399; }
.lp-burned { color: #f87171; margin-left: 4px; }
.lp-net { margin-left: 4px; font-weight: 600; }
.lp-pos { color: #34d399; }
.lp-neg { color: #f87171; }

.smart-score { display: inline-block; padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 13px; }
.score-high { background: #064e3b; color: #34d399; }
.score-mid { background: #422006; color: #fbbf24; }
.score-low { background: #1e1a2e; color: #8b7ab0; }

.pool-tag-sm { display: inline-block; background: #1a2332; padding: 2px 6px; border-radius: 4px; font-size: 10px; color: #8b9ab0; margin: 1px 2px; }

.tx-cell { white-space: nowrap; }
.tx-link { font-family: monospace; font-size: 10px; color: #7b61ff; text-decoration: none; background: #1a2332; padding: 2px 5px; border-radius: 3px; margin-right: 3px; }
.tx-link:hover { background: #2d3a4a; }

.fees-cell { min-width: 140px; }
.fee-total { font-weight: 700; color: #34d399; font-size: 13px; display: block; }
.fee-daily { display: block; color: #8b9ab0; font-size: 10px; }
.fee-tokens { margin-top: 2px; }
.fee-token-line { font-size: 10px; color: #a0aec0; font-family: monospace; }
.fee-share { display: block; font-size: 10px; color: #6b7a8d; }
.fee-highlight { color: #34d399; font-weight: 600; margin-left: 4px; }
.expand-btn { background: none; border: 1px solid #2d3a4a; color: #8b9ab0; cursor: pointer; border-radius: 4px; font-size: 11px; padding: 1px 5px; margin-left: 4px; }
.expand-btn:hover { background: #1a2332; }
.other-pools-detail { margin-top: 6px; }
.other-pool-row { padding: 3px 0; font-size: 11px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.other-pool-row small { color: #6b7a8d; }

.claimed-cell { min-width: 130px; }
.claimed-usd { font-weight: 700; color: #10b981; font-size: 14px; }
.claimed-token { font-size: 11px; color: #6ee7b7; font-family: monospace; }
.claimed-pct { font-size: 10px; color: #f59e0b; font-weight: 600; margin-top: 2px; }
.unclaimed-divider { border-top: 1px dashed #2d3a4a; margin: 4px 0; }
.unclaimed-usd { font-weight: 700; color: #f59e0b; font-size: 13px; }
.unclaimed-token { font-size: 11px; color: #fbbf24; font-family: monospace; }

.no-results { text-align: center; padding: 30px; color: #6b7a8d; }

@media (max-width: 900px) {
  .input-row { flex-direction: column; }
  .filters-row { flex-direction: column; align-items: flex-start; }
  table { font-size: 11px; }
  td, th { padding: 6px 4px; }
}
