* { 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: 1200px; margin: 0 auto; padding: 24px 16px; }

header { margin-bottom: 20px; }
.header-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
header h1 { font-size: 1.8rem; background: linear-gradient(135deg, #f59e0b, #ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.subtitle { color: #6b7a8d; margin-top: 4px; font-size: 14px; }
.header-links { display: flex; align-items: center; gap: 16px; }
.nav-link { color: #00d4ff; text-decoration: none; font-size: 14px; padding: 6px 14px; border: 1px solid #1e293b; border-radius: 8px; }
.nav-link:hover { background: #111827; }
.poll-status { font-size: 12px; color: #6b7a8d; padding: 4px 10px; background: #111827; border-radius: 12px; }
.poll-status.active { color: #34d399; }

/* Add panel */
.add-panel { background: #111827; border: 1px solid #1e293b; border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }
.add-row { display: flex; gap: 10px; }
.add-row input { background: #1a2332; border: 1px solid #2d3a4a; color: #e0e6ed; padding: 10px 14px; border-radius: 8px; font-size: 14px; flex: 1; font-family: 'Courier New', monospace; }
.add-row input::placeholder { color: #4a5568; }
.add-row button { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.add-row button:hover { opacity: 0.9; }

/* Wallets */
.wallets-panel { background: #111827; border: 1px solid #1e293b; border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }
.wallets-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; user-select: none; }
.wallets-header h2 { font-size: 1rem; }
.toggle-icon { display: inline-block; width: 16px; font-size: 14px; color: #6b7a8d; transition: transform 0.2s; }
.wallets-list.collapsed { display: none; }
.wallets-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-tag { display: flex; align-items: center; gap: 8px; background: #1a2332; border: 1px solid #2d3a4a; padding: 6px 12px; border-radius: 8px; font-size: 13px; }
.wallet-tag .tag-label { color: #f59e0b; font-weight: 600; }
.wallet-tag .tag-addr { font-family: monospace; color: #8b9ab0; font-size: 12px; }
.wallet-tag .tag-type { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.tag-type-evm { background: #1e3a5f; color: #60a5fa; }
.tag-type-solana { background: #3b1f5e; color: #c084fc; }
.wallet-tag .tag-remove { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 14px; padding: 0 4px; opacity: 0.6; }
.wallet-tag .tag-remove:hover { opacity: 1; }

/* Filters */
.filters-panel { background: #0d1420; border: 1px solid #1e293b; border-radius: 10px; padding: 12px 18px; margin-bottom: 16px; }
.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: 6px; }
.filters-row select { background: #1a2332; border: 1px solid #2d3a4a; color: #e0e6ed; padding: 5px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.btn-clear { background: #1a2332; border: 1px solid #2d3a4a; color: #ef4444; padding: 5px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; margin-left: auto; }
.btn-clear:hover { background: #2d1a1a; }

/* Feed */
.feed-panel { background: #111827; border: 1px solid #1e293b; border-radius: 12px; padding: 20px; }
.feed-panel h2 { font-size: 1rem; margin-bottom: 14px; }

.count-badge { background: linear-gradient(135deg, #00d4ff15, #7b61ff15); color: #00d4ff; padding: 2px 10px; border-radius: 12px; font-weight: 700; font-size: 13px; margin-left: 6px; }

.actions-feed { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; }
.actions-feed::-webkit-scrollbar { width: 6px; }
.actions-feed::-webkit-scrollbar-thumb { background: #2d3a4a; border-radius: 3px; }

.action-card { background: #0d1420; border: 1px solid #1e293b; border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.action-icon { font-size: 24px; width: 40px; text-align: center; }
.action-body { flex: 1; min-width: 0; }
.action-title { font-size: 14px; font-weight: 600; }
.action-detail { font-size: 12px; color: #6b7a8d; margin-top: 3px; }
.action-detail a { color: #7b61ff; text-decoration: none; }
.action-detail a:hover { text-decoration: underline; }
.action-tokens { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.token-addr-tag { font-size: 11px; background: #1a2332; border: 1px solid #2d3a4a; padding: 2px 6px; border-radius: 6px; color: #8b9ab0; display: inline-flex; align-items: center; gap: 3px; }
.copy-btn { background: none; border: none; cursor: pointer; font-size: 11px; padding: 0 2px; opacity: 0.6; }
.copy-btn:hover { opacity: 1; }
.action-meta { text-align: right; min-width: 120px; }
.action-time { font-size: 12px; color: #6b7a8d; }
.action-chain { font-size: 11px; padding: 2px 8px; border-radius: 8px; font-weight: 600; display: inline-block; margin-top: 4px; }

/* Action type colors */
.type-add_liquidity .action-title { color: #34d399; }
.type-remove_liquidity .action-title { color: #f87171; }
.type-claim_fees .action-title { color: #fbbf24; }
.type-create_pool .action-title { color: #a78bfa; }
.type-lp_action .action-title { color: #60a5fa; }

/* Chain badge colors */
.chain-ethereum { background: #1e293b; color: #94a3b8; }
.chain-bsc { background: #422006; color: #fbbf24; }
.chain-base { background: #172554; color: #60a5fa; }
.chain-arbitrum { background: #1e1b4b; color: #818cf8; }
.chain-polygon { background: #3b0764; color: #c084fc; }
.chain-optimism { background: #450a0a; color: #f87171; }
.chain-solana { background: #2e1065; color: #a78bfa; }

/* Filter chips */
.filter-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #e0e6ed; background: #1a2332; border: 1px solid #2d3a4a; padding: 4px 10px; border-radius: 8px; cursor: pointer; user-select: none; white-space: nowrap; }
.filter-chip:hover { border-color: #4a5568; }
.filter-chip input[type=checkbox] { accent-color: #f59e0b; width: 14px; height: 14px; cursor: pointer; }
.filter-chip-new { border-color: #065f46; }
.filter-chip-new:hover { border-color: #34d399; }

/* Fee tier badge */
.badge-fee-tier { background: #1e3a5f; color: #60a5fa; font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 700; margin-left: 6px; }
/* Fee/TVL badge */
.badge-fee-tvl { font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 700; margin-left: 4px; }
.badge-fee-tvl.ratio-high { background: #064e3b; color: #34d399; }
.badge-fee-tvl.ratio-mid { background: #422006; color: #fbbf24; }
.badge-fee-tvl.ratio-low { background: #1e293b; color: #94a3b8; }
/* TVL badge */
.badge-tvl { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #1a2332; color: #8b9ab0; margin-left: 4px; }
.badge-one-sided { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #3b1f00; color: #fb923c; font-weight: 700; margin-left: 4px; }
.badge-new { font-size: 10px; padding: 2px 7px; border-radius: 4px; background: #065f46; color: #34d399; font-weight: 800; letter-spacing: 0.5px; animation: newPulse 2s ease-in-out 3; }
@keyframes newPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.empty-state { text-align: center; padding: 24px; color: #4a5568; font-size: 14px; }

@media (max-width: 768px) {
  .add-row { flex-direction: column; }
  .filters-row { flex-direction: column; align-items: flex-start; }
  .action-card { flex-direction: column; align-items: flex-start; }
  .action-meta { text-align: left; min-width: 0; }
}
