:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: rgba(22, 27, 34, 0.85);
  --bg-card-hover: rgba(30, 37, 46, 0.9);
  --border-color: rgba(48, 54, 61, 0.6);
  --text-primary: #e6edf3;
  --text-secondary: rgba(230, 237, 243, 0.7);
  --text-muted: rgba(139, 148, 158, 0.8);
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;
  --accent-red: #ef4444;
  --glow-green: rgba(16, 185, 129, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

.header {
  padding: 1rem;
  position: sticky;
  top: 0;
  background: #0d1117 !important;
  background-color: #0d1117 !important;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
}

.search-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.back-btn:hover {
  border-color: var(--accent-green);
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}

.search-input-wrap:focus-within {
  border-color: var(--accent-green);
}

.search-input-wrap svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: none;
}

.clear-btn.visible {
  display: block;
}

.trending-section {
  padding: 1rem;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trending-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trending-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.trending-tag:hover {
  background: rgba(13, 17, 23, 0.9) !important;
  border-color: var(--accent-orange);
}

.trending-tag .fire {
  color: #f97316;
}

.trending-tag .change {
  font-size: 0.75rem;
  font-weight: 600;
}

.trending-tag .change.positive {
  color: var(--accent-green);
}

.trending-tag .change.negative {
  color: var(--accent-red);
}

.tabs {
  display: flex;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.tab.active {
  color: var(--text-primary);
  font-weight: 600;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 1px;
}

.crypto-list {
  padding: 0 1rem;
}

.crypto-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.crypto-item:last-child {
  border-bottom: none;
}

.crypto-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.crypto-icon.btc {
  background: #f7931a;
  color: #fff;
}

.crypto-icon.eth {
  background: #627eea;
  color: #fff;
}

.crypto-icon.sol {
  background: linear-gradient(135deg, #9945ff, #14f195);
  color: #fff;
}

.crypto-icon.xrp {
  background: #23292f;
  color: #fff;
}

.crypto-icon.ada {
  background: #0033ad;
  color: #fff;
}

.crypto-icon.doge {
  background: #c2a633;
  color: #fff;
}

.crypto-icon.bnb {
  background: #f3ba2f;
  color: #000;
}

.crypto-icon.avax {
  background: #e84142;
  color: #fff;
}

.crypto-icon.dot {
  background: #e6007a;
  color: #fff;
}

.crypto-icon.matic {
  background: #8247e5;
  color: #fff;
}

.crypto-icon.link {
  background: #2a5ada;
  color: #fff;
}

.crypto-icon.ltc {
  background: #bfbbbb;
  color: #000;
}

.crypto-info {
  flex: 1;
  min-width: 0;
}

.crypto-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.crypto-name .pair {
  color: var(--text-secondary);
  font-weight: 400;
}

.crypto-fullname {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.crypto-price {
  text-align: right;
  margin-right: 0.75rem;
}

.crypto-price .price {
  font-weight: 600;
  font-size: 0.95rem;
}

.crypto-price .volume {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.crypto-change {
  min-width: 70px;
  padding: 0.35rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.crypto-change.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.crypto-change.negative {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.no-results svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.inline-style-f2892a2e8a {
  display: none;
}