* { box-sizing: border-box; }

body {
  margin: 0;
  background: #0b1220;
  color: #fff;
  font-family: system-ui, Arial;
}

header {
  padding: 10px;
  background: #020617;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
}

#search {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
}

#wrapper {
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 8px;
}

#heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.tile {
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, height 0.2s ease;
}

.tile:hover {
  transform: scale(1.03);
}

.tile img {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
}

.symbol {
  font-weight: 600;
}

.price {
  font-size: 11px;
  opacity: 0.9;
}

.change {
  font-size: 11px;
}

.timeframe {
  font-size: 10px;
  opacity: 0.6;
}

#loader {
  text-align: center;
  padding: 20px;
  opacity: 0.6;
}

/* Coin page */
#back {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  margin-right: 10px;
}

.tf-row {
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

/* Mobile */
@media (max-width: 600px) {
  #heatmap {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

/* Footbar */
#footbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: #020617;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 20;
}

.foot-item {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.foot-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}



/* Donation page */
.donation-card {
  background: #020617;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.donation-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.address {
  background: #0b1220;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  word-break: break-all;
  cursor: pointer;
  text-align: center;
  opacity: 0.9;
}

.address:hover {
  opacity: 1;
}

