* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

body {
  background: #f7fefd;
  color: #0b1f3a;
}

/* DASHBOARD */
.dashboard {
  width: 100%;
  padding: 80px 120px;
}

/* BACK HOME BUTTON */
.back-home-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.back-home-btn {
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #6ec6ff, #4da3ff);
  color: white;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
}

.back-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* HERO */
.hero {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
}

.hero-left {
  width: 520px;
}

/* TAGS */
.tags {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.tags span {
  background: #eafcff;
  color: #2fb6c6;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 20px;
}

/* HEADINGS */
h1 {
  margin-top: 18px;
  line-height: 44px;
}

h1 .light {
  color: #6ec6ff;
  font-size: 34px;
  font-weight: 600;
}

h1 .dark {
  color: #0b1f3a;
  font-size: 38px;
  font-weight: 800;
}

/* HERO TEXT */
.hero-left p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 22px;
  color: #6b7c93;
}

/* COINS SECTION */
.coins {
  margin-top: 40px;
  text-align: center;
}

.badge {
  background: #eafcff;
  color: #2fb6c6;
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 20px;
}

.coins h2 {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 800;
}

.subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: #6b7c93;
}

/* SEARCH BAR */
.coin-search {
  width: 520px;
  margin: 24px auto 0;
  display: flex;
  gap: 10px;
}

.coin-search input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 24px;
  border: 1px solid #dff3f8;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
  outline: none;
}

.coin-search button {
  padding: 12px 24px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(135deg, #6ec6ff, #4da3ff);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* GRID */
.coin-grid {
  margin: 36px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

/* CENTER SEARCH RESULT + SMALLER CARD */
.coin-grid.few-results {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.coin-grid.few-results .coin-card {
  width: 260px;
  max-width: 260px;
}

/* CARD */
.coin-card {
  background: white;
  border-radius: 18px;
  padding: 32px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.coin-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 2px rgba(135, 206, 235, 0.4),
    0 0 22px rgba(135, 206, 235, 0.55),
    0 16px 32px rgba(0,0,0,0.08);
}

.coin-card img {
  width: 64px;
}

.coin-card p {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* HIDDEN CARDS */
.coin-card.hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .dashboard {
    padding: 60px 40px;
  }

  .coin-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

.coin-grid.few-results {
  display: flex;
  justify-content: center;
}

.coin-grid.few-results .coin-card {
  width: 220px;
}

@media (max-width: 640px) {
  .hero-left,
  .coin-search {
    width: 100%;
  }

  h1 .light {
    font-size: 34px;
  }

  h1 .dark {
    font-size: 38px;
  }

  .coin-search {
    flex-direction: column;
  }

  .coin-search button {
    width: 100%;
  }

  .coin-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

.coin-grid.single-result {
  display: flex;
  justify-content: center;
}

.coin-grid.single-result .coin-card {
  width: 220px;
}
}
}