/* ============ MARKET PRICES SECTION ============ */
.market-prices {
  position: relative;
  padding: 120px 0;
  background: var(--dark-bg);
  overflow: hidden;
}

/* Background Effects */
.market-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.market-orb-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent);
  top: 10%;
  right: -100px;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 12s ease-in-out infinite;
}

.market-orb-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.1), transparent);
  bottom: 10%;
  left: -100px;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.market-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 30px;
}

.header-left {
  flex: 1;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 16px;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.market-stats {
  display: flex;
  gap: 30px;
}

.global-stat {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.market-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.control-btn {
  width: 40px;
  height: 40px;
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.control-btn:hover,
.control-btn.active {
  background: rgba(124, 92, 252, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.refresh-btn {
  width: 40px;
  height: 40px;
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.refresh-btn:hover {
  background: rgba(124, 92, 252, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.refresh-btn.spinning i {
  animation: spin 1s linear infinite;
}

/* Price Cards Grid */
.price-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

/* Price Card */
.price-card {
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.15);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(124, 92, 252, 0.2);
}

.price-card:hover::before {
  transform: scaleX(1);
}

.price-card.featured {
  border-color: rgba(255, 215, 0, 0.3);
}

.price-card.featured::after {
  content: '★ Popular';
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(124, 92, 252, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.price-card:hover .card-shine {
  opacity: 1;
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.coin-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.2), rgba(247, 147, 26, 0.1));
  border: 1px solid rgba(247, 147, 26, 0.3);
  color: #F7931A;
}

.coin-icon.eth {
  background: linear-gradient(135deg, rgba(98, 126, 234, 0.2), rgba(98, 126, 234, 0.1));
  border-color: rgba(98, 126, 234, 0.3);
  color: #627EEA;
}

.coin-icon.bnb {
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.2), rgba(240, 185, 11, 0.1));
  border-color: rgba(240, 185, 11, 0.3);
  color: #F0B90B;
}

.coin-icon.sol {
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.2), rgba(153, 69, 255, 0.1));
  border-color: rgba(153, 69, 255, 0.3);
  color: #9945FF;
}

.coin-icon.ada {
  background: linear-gradient(135deg, rgba(0, 51, 173, 0.2), rgba(0, 51, 173, 0.1));
  border-color: rgba(0, 51, 173, 0.3);
  color: #0033AD;
}

.coin-icon.xrp {
  background: linear-gradient(135deg, rgba(35, 41, 47, 0.2), rgba(35, 41, 47, 0.1));
  border-color: rgba(35, 41, 47, 0.3);
  color: #23292F;
}

.coin-details h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.coin-symbol {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.rank-badge {
  background: rgba(124, 92, 252, 0.15);
  border: 1px solid rgba(124, 92, 252, 0.3);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* Card Body */
.card-body {
  position: relative;
  z-index: 1;
}

.price-section {
  margin-bottom: 20px;
}

.current-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 15px;
}

.price-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
}

.price-change {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.price-change.positive {
  color: var(--success);
}

.price-change.negative {
  color: var(--danger);
}

.price-change i {
  font-size: 16px;
}

/* Mini Chart */
.price-chart {
  height: 60px;
  margin-bottom: 20px;
}

.mini-chart {
  width: 100% !important;
  height: 60px !important;
}

/* Market Info */
.market-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid rgba(124, 92, 252, 0.1);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Card Footer */
.card-footer {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.trade-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid rgba(124, 92, 252, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.trade-btn:hover {
  background: var(--gradient-1);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 92, 252, 0.3);
}

.trade-btn i {
  transition: transform 0.3s ease;
}

.trade-btn:hover i {
  transform: translateX(3px);
}

/* View All Button */
.view-all-wrapper {
  text-align: center;
}

.view-all-btn {
  padding: 14px 35px;
  background: transparent;
  border: 2px solid rgba(124, 92, 252, 0.3);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.view-all-btn:hover {
  background: rgba(124, 92, 252, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 92, 252, 0.2);
}

.view-all-btn i {
  transition: transform 0.3s ease;
}

.view-all-btn:hover i {
  transform: translateX(5px);
}

/* ============ ANIMATIONS ============ */
@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.7);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 10px rgba(0, 214, 143, 0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .price-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .market-container {
    padding: 0 30px;
  }

  .section-header {
    flex-direction: column;
    gap: 20px;
  }

  .header-right {
    align-items: flex-start;
    width: 100%;
  }

  .market-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .price-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .price-card {
    padding: 25px;
  }

  .price-value {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .market-container {
    padding: 0 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .market-stats {
    flex-direction: column;
    gap: 15px;
  }

  .global-stat {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .price-card {
    padding: 20px;
  }
}