.crypto-section {
  padding: 60px 5%;
  background: linear-gradient(90deg, #352816 30%, #6a040f 100%);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin: 1px 0;
  position: relative;
}

.crypto-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 60% 10%, rgba(34, 197, 94, 0.02) 0%, transparent 30%);
  pointer-events: none;
  animation: subtle-float 20s ease-in-out infinite;
}

@keyframes subtle-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-5px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

.crypto-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: white;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.crypto-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.crypto-last-updated {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 30px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.crypto-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.crypto-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.crypto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #3b82f6, #ef4444);
  opacity: 0;
  transition: all 0.4s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.crypto-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.15);
}

.crypto-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.crypto-card.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.crypto-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crypto-top img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.crypto-card:hover .crypto-top img {
  transform: scale(1.1);
}

.crypto-name {
  font-weight: 600;
  font-size: 1rem;
  color: #e2e8f0;
  text-transform: capitalize;
}

.crypto-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  font-family: 'Monaco', 'Menlo', monospace;
}

.crypto-change {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 70px;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.crypto-change::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.green {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.red {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.crypto-market-cap {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  font-weight: 500;
}

.crypto-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .crypto-section {
    padding: 40px 3%;
    margin:none;


  }

  .crypto-section h2 {
    font-size: 0.5rem;
    margin-bottom: 12px;
  }

  .crypto-subtitle {
    font-size: 0.95rem;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .crypto-last-updated {
    font-size: 0.7rem;
    margin-bottom: 20px;
  }

  .crypto-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .dashboard .crypto-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding-bottom: 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .dashboard .crypto-container::-webkit-scrollbar {
    display: none;
  }

  .dashboard .crypto-card {
    min-width: 230px !important;
    flex: 0 0 auto !important;
    scroll-snap-align: center !important;
  }

  .crypto-card {
    padding: 16px;
    gap: 10px;
    border-radius: 12px;
  }

  .crypto-card:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .crypto-top {
    gap: 10px;
  }

  .crypto-top img {
    width: 28px;
    height: 28px;
  }

  .crypto-name {
    font-size: 0.9rem;
  }

  .crypto-price {
    font-size: 1.1rem;
  }

  .crypto-change {
    font-size: 0.8rem;
    padding: 3px 6px;
    min-width: 55px;
  }

  .crypto-market-cap {
    font-size: 0.7rem;
  }

  .crypto-rank {
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    padding: 2px 5px;
  }
}

@media (max-width: 480px) {
  .crypto-section {
    padding: 25px 3%;
  }

  .crypto-section h2 {
    font-size: 1rem;
  }

  .crypto-subtitle {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .crypto-last-updated {
    font-size: 0.65rem;
    margin-bottom: 15px;
  }

  .crypto-container {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 5px;
  }

  .crypto-card {
    padding: 14px;
    gap: 8px;
    border-radius: 10px;
    max-width: 100%;
  }

  .crypto-card:hover {
    transform: translateY(-2px) scale(1.005);
  }

  .crypto-top {
    gap: 8px;
  }

  .crypto-top img {
    width: 24px;
    height: 24px;
  }

  .crypto-name {
    font-size: 0.85rem;
  }

  .crypto-price {
    font-size: 1rem;
  }

  .crypto-change {
    font-size: 0.75rem;
    padding: 2px 5px;
    min-width: 50px;
  }

  .crypto-change::before {
    width: 4px;
    height: 4px;
  }

  .crypto-market-cap {
    font-size: 0.65rem;
  }

  .crypto-rank {
    top: 8px;
    right: 8px;
    font-size: 0.55rem;
    padding: 1px 4px;
  }
}