html, body { overflow-x: hidden; width: 100%; max-width: 100vw; }
::selection { background: rgba(20, 184, 166, 0.25); color: white; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.3s ease-out; }
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.2); border-top-color: #000;
  border-radius: 50%; animation: spin 0.6s linear infinite;
  margin-right: 6px; vertical-align: middle;
}
/* Token selector dropdown */
.token-btn {
  background: #111; border: 1px solid #333; border-radius: 0.5rem;
  color: #fff; font-size: 0.875rem; font-weight: 600;
  padding: 0.5rem 0.75rem; cursor: pointer; min-width: 120px;
  display: flex; align-items: center; gap: 6px; user-select: none;
  transition: border-color 0.15s;
}
.token-btn:hover, .token-btn:focus { border-color: rgba(20,184,166,0.5); outline: none; }
.token-btn::after {
  content: ''; width: 0; height: 0; margin-left: auto;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid #666;
}
.token-dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 4px;
  min-width: 200px; width: max-content;
  background: #111; border: 1px solid #333; border-radius: 0.75rem;
  z-index: 50; box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  max-height: 320px; display: flex; flex-direction: column;
  animation: fadeInUp 0.15s ease-out;
}
.token-search {
  background: #0a0a0a; border: none; border-bottom: 1px solid #222;
  color: #fff; font-size: 0.8rem; font-family: 'JetBrains Mono', monospace;
  padding: 10px 12px; outline: none; border-radius: 0.75rem 0.75rem 0 0;
  width: 100%; box-sizing: border-box;
}
.token-search::placeholder { color: #555; }
.token-list {
  overflow-y: auto; flex: 1; padding: 4px;
  scrollbar-width: thin; scrollbar-color: #333 transparent;
}
.token-list::-webkit-scrollbar { width: 4px; }
.token-list::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.token-item {
  padding: 8px 10px; border-radius: 0.5rem; cursor: pointer;
  font-size: 0.85rem; font-weight: 500; color: #ccc;
  transition: background 0.1s;
  display: flex; align-items: center; gap: 8px;
}
.token-logo { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }
.token-item:hover { background: rgba(20,184,166,0.1); color: #fff; }
.token-item.active { background: rgba(20,184,166,0.15); color: #14b8a6; }
