:root {
  --bg-primary: #030712;
  --bg-secondary: #0b1221;
  --bg-panel: rgba(11, 18, 33, 0.78);
  --bg-panel-solid: #0b1221;
  --border-color: rgba(0, 240, 255, 0.18);
  --border-strong: rgba(0, 240, 255, 0.45);
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.12);
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --blue: #2d7dff;
  --purple: #a855f7;
  --text-primary: #e6f7ff;
  --text-secondary: #8aaac7;
  --text-muted: #5a748c;
  --danger: #ff4d6d;
  --success: #00ffc2;
  --radius: 14px;
  --font-display: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
  --font-body: 'Rajdhani', system-ui, sans-serif;
  --header-height: 80px;
  --sidebar-width: 260px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Animated background */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 60%);
  animation: floatGlow 12s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 80px) scale(1.15); }
}

/* Layout */
.app-layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

.main-content {
  flex: 1;
  padding: 24px 28px 60px;
  margin-left: var(--sidebar-width);
  max-width: calc(100% - var(--sidebar-width));
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 42px;
  height: 42px;
  color: var(--cyan);
  filter: drop-shadow(0 0 10px var(--cyan-glow));
}

.logo-video {
  overflow: hidden;
  border-radius: 50%;
}

.logo-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-ring {
  stroke-dasharray: 140;
  stroke-dashoffset: 0;
  animation: rotateRing 6s linear infinite;
}

@keyframes rotateRing {
  from { stroke-dashoffset: 140; }
  to { stroke-dashoffset: 0; }
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin: 0;
  line-height: 1.1;
}

.brand-accent {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 1.2px;
}

/* Top Nav */
.top-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.top-nav .nav-link {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.top-nav .nav-link:hover,
.top-nav .nav-link.active {
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wallet-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-right: 10px;
  border-right: 1px solid var(--border-color);
}

.wallet-address {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--cyan);
}

.wallet-balance {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: var(--header-height);
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  border-right: 1px solid var(--border-color);
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  z-index: 90;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
  color: var(--text-primary);
  background: rgba(0, 240, 255, 0.06);
}

.sidebar-nav .nav-link.active {
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--border-color);
}

.sidebar-nav .nav-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav-icon {
  color: var(--cyan);
  font-size: 0.75rem;
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.network-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.status-ok {
  color: var(--success);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.14), rgba(45, 125, 255, 0.2));
  border-color: var(--border-strong);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.12), inset 0 0 12px rgba(0, 240, 255, 0.06);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(45, 125, 255, 0.3));
  box-shadow: 0 0 28px var(--cyan-glow), inset 0 0 16px rgba(0, 240, 255, 0.12);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--border-strong);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.1);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--cyan);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-icon {
  font-size: 1.05rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.mobile-only {
  display: none;
}

/* Panels */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel:first-child {
  margin-top: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.title-icon {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}

.panel-status {
  font-size: 0.85rem;
  color: var(--success);
  letter-spacing: 0.5px;
}

.panel-badge {
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid var(--border-color);
}

/* Search */
.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

.input-wrap {
  position: relative;
  flex: 1 1 320px;
}

.input-wrap input,
select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
}

.input-wrap input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1), 0 0 18px rgba(0, 240, 255, 0.12);
}

.input-wrap input::placeholder {
  color: var(--text-muted);
}

.input-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
  opacity: 0;
  z-index: -1;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}

.input-wrap input:focus + .input-glow {
  opacity: 0.35;
}

.search-tip {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.token-info-bar {
  min-height: 60px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.stat-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.native-card {
  border-color: var(--border-strong);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(45, 125, 255, 0.06));
}

.stat-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.6;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.88rem;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.2;
}

.address-value {
  font-size: 1rem;
  color: var(--cyan);
}

.stat-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.badge-native {
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  border: 1px solid var(--border-color);
}

.badge-swap {
  background: rgba(45, 125, 255, 0.15);
  color: var(--blue);
  border: 1px solid rgba(45, 125, 255, 0.4);
}

.badge-add {
  background: rgba(0, 255, 194, 0.12);
  color: var(--success);
  border: 1px solid rgba(0, 255, 194, 0.4);
}

.badge-remove {
  background: rgba(255, 77, 109, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 77, 109, 0.4);
}

.badge-transfer {
  background: rgba(160, 160, 160, 0.12);
  color: var(--text-secondary);
  border: 1px solid rgba(160, 160, 160, 0.4);
}

.text-in {
  color: var(--success);
}

.text-out {
  color: var(--danger);
}

.stat-footer a {
  color: var(--cyan);
  text-decoration: none;
}

.stat-footer a:hover {
  text-decoration: underline;
}

/* Filters */
.filter-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.input-small {
  min-width: 240px;
}

select {
  min-width: 180px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300f0ff'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.filter-checks {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding-bottom: 10px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.92rem;
  user-select: none;
}

.checkbox input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkbox input:checked + .checkmark {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.checkbox input:checked + .checkmark::after {
  content: '✓';
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Token Table */
.token-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.token-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.token-table thead {
  background: rgba(0, 240, 255, 0.06);
}

.token-table th {
  text-align: left;
  padding: 14px 16px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-color);
}

.token-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
  color: var(--text-primary);
}

.token-table tbody tr {
  transition: background 0.15s ease;
}

.token-table tbody tr:hover {
  background: rgba(0, 240, 255, 0.04);
}

.token-table .numeric {
  text-align: right;
}

.token-table td.numeric {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.token-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(45, 125, 255, 0.18));
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--cyan);
  text-transform: uppercase;
  flex-shrink: 0;
}

.token-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.token-name-wrap {
  display: flex;
  flex-direction: column;
}

.token-symbol {
  font-weight: 700;
  color: var(--text-primary);
}

.token-name {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.token-type {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.address-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.address-short {
  font-family: var(--font-display);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.token-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.85rem;
}

.token-link:hover {
  text-decoration: underline;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

.empty-row td {
  text-align: center;
  padding: 60px 20px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  color: var(--cyan);
  opacity: 0.4;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

.loading-row td {
  text-align: center;
  padding: 50px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 240, 255, 0.15);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.spinner-inline {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-panel-solid);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--cyan-glow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  letter-spacing: 0.5px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  color: var(--danger);
  border-color: rgba(255, 77, 109, 0.5);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border-color);
  margin-left: var(--sidebar-width);
}

.footer p {
  margin: 4px 0;
}

.footer-note {
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1100px) {
  .top-nav {
    display: none;
  }

  .header {
    padding: 0 18px;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }

  .header {
    height: 70px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.72rem;
  }

  .wallet-info {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 260px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding: 18px 16px 40px;
  }

  .footer {
    margin-left: 0;
  }

  .search-row {
    flex-direction: column;
  }

  .btn {
    width: auto;
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-checks {
    flex-direction: row;
    padding-bottom: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .token-table th,
  .token-table td {
    padding: 12px;
  }
}

/* 代币动态页 */
.token-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.token-activity-card {
  padding: 1rem;
  border: 1px solid rgba(0,255,255,0.12);
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
}
.token-activity-card h3 {
  margin: 0 0 .6rem 0;
  color: var(--accent, #00f0ff);
  font-size: 1rem;
}
.activity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: .4rem 0;
  padding: .5rem .75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}
.activity-bar span:first-child { color: #b0c4de; }
.activity-bar span:last-child { font-weight: 700; font-family: var(--font-mono, monospace); }

.activity-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(0,255,255,0.1);
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
}
.control-group { display: flex; flex-direction: column; gap: .3rem; }
.control-group label { font-size: .75rem; color: #7f8c9a; }
.control-group select,
.control-group input {
  min-width: 140px;
  padding: .55rem .7rem;
  border: 1px solid rgba(0,255,255,0.2);
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: .9rem;
}
.control-group input[type="number"] { min-width: 110px; }
.control-group select:focus,
.control-group input:focus { outline: none; border-color: var(--accent, #00f0ff); }

.activity-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.summary-pill {
  padding: .8rem;
  border-radius: 10px;
  text-align: center;
  background: rgba(255,255,255,0.05);
}
.summary-pill .value {
  display: block;
  color: var(--accent, #00f0ff);
  font-size: 1.15rem;
  font-weight: 700;
}
.summary-pill .label {
  display: block;
  margin-top: .2rem;
  color: #7f8c9a;
  font-size: .75rem;
}

.activity-list { overflow-x: auto; }
.activity-list table { width: 100%; border-collapse: collapse; }
.activity-list th,
.activity-list td {
  padding: .7rem .6rem;
  text-align: left;
  font-size: .86rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.activity-list th { color: #7f8c9a; font-weight: 600; white-space: nowrap; }
.activity-list td { font-family: var(--font-mono, monospace); }
.activity-list tr:hover { background: rgba(0,255,255,0.04); }

.badge { display: inline-block; padding: .18rem .5rem; border-radius: 6px; font-size: .72rem; font-weight: 600; }
.badge-in { background: rgba(0,255,128,0.12); color: #00ff80; }
.badge-out { background: rgba(255,77,77,0.12); color: #ff4d4d; }
.badge-mint { background: rgba(0,240,255,0.12); color: #00f0ff; }
.badge-burn { background: rgba(255,160,0,0.12); color: #ffa000; }
.badge-transfer { background: rgba(0,240,255,0.08); color: #00d4e6; }
.badge-swap { background: rgba(160,120,255,0.12); color: #a078ff; }
.badge-other { background: rgba(127,140,154,0.12); color: #7f8c9a; }

.addr-clip {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b0c4de;
}
.activity-list a { color: var(--accent, #00f0ff); text-decoration: none; }
.activity-list a:hover { text-decoration: underline; }

.tx-amount { font-weight: 700; }
.tx-amount.pos { color: #00ff80; }
.tx-amount.neg { color: #ff4d4d; }
.tx-usd { color: #7f8c9a; font-size: .78rem; }

.load-more {
  display: block;
  width: 100%;
  margin-top: .8rem;
  padding: .7rem;
  border: 1px solid rgba(0,255,255,0.2);
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  color: var(--accent, #00f0ff);
  cursor: pointer;
}
.load-more:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 900px) {
  .token-activity-grid { grid-template-columns: 1fr; }
  .activity-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .activity-controls { flex-direction: column; align-items: stretch; }
  .control-group select, .control-group input { width: 100%; }
}
