/* ============================================ ENHANCED PRICE TRACKER - Animations, Charts, Graphics ============================================ */

/* Live Tracker Section Base */
.price-tracker {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Fresh animated background */
.price-tracker::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(99,102,241,0.08) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(236,72,153,0.08) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(6,182,212,0.05) 0%, transparent 40%);
  animation: bgRotate 15s linear infinite;
}

@keyframes bgRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Widget Container - Glassmorphism */
.price-widget {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 2.5rem;
  position: relative;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 25px 50px -12px rgba(0,0,0,0.5),
    0 0 100px rgba(99,102,241,0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
}

/* Animated border glow */
.price-widget::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  border-radius: 30px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  animation: borderRotate 4s linear infinite;
}

.price-widget:hover::before {
  opacity: 0.3;
}

@keyframes borderRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Live Indicator - Enhanced */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 100px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: livePulse 1.5s ease-out infinite;
  position: relative;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.live-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
  animation: ripple 1.5s ease-out infinite;
}

@keyframes ripple {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Header Styles */
.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.price-widget h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Ticker Grid - Enhanced Cards */
.ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.ticker-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ticker-item:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(99,102,241,0.2);
}

/* Animated top border */
.ticker-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--gradient-1);
  transition: left 0.5s ease;
}

.ticker-item:hover::before {
  left: 0;
}

/* Float animation on hover */
.ticker-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ticker-item:hover .ticker-value {
  animation: numberPulse 0.6s ease;
}

@keyframes numberPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.ticker-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* Animated Chart Section */
.price-chart {
  background: rgba(0,0,0,0.3);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid rgba(255,255,255,0.05);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 100px;
  gap: 0.5rem;
  padding: 0 1rem;
}

.chart-bar {
  flex: 1;
  max-width: 40px;
  background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
  border-radius: 4px 4px 0 0;
  opacity: 0.6;
  animation: barGrow 1s ease-out forwards;
  transform-origin: bottom;
}

.chart-bar:nth-child(1) { height: 30%; animation-delay: 0.1s; }
.chart-bar:nth-child(2) { height: 45%; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { height: 35%; animation-delay: 0.3s; }
.chart-bar:nth-child(4) { height: 60%; animation-delay: 0.4s; }
.chart-bar:nth-child(5) { height: 55%; animation-delay: 0.5s; }
.chart-bar:nth-child(6) { height: 75%; background: linear-gradient(180deg, var(--secondary) 0%, transparent 100%); animation-delay: 0.6s; opacity: 0.9; }
.chart-bar:nth-child(7) { height: 85%; background: linear-gradient(180deg, #22c55e 0%, transparent 100%); animation-delay: 0.7s; opacity: 1; }
.chart-bar:nth-child(8) { height: 70%; animation-delay: 0.8s; }

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.chart-bar:hover {
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  transform: scaleY(1.05);
  transition: all 0.3s;
  cursor: pointer;
}

/* Progress Bar - Enhanced */
.progress-section {
  margin-top: 2rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.progress-label {
  font-size: 0.875rem;
  color: #94a3b8;
}

.progress-percentage {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--accent);
}

.progress-bar-large {
  height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-bar-large::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-fill-large {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 6px;
  width: 16.6%;
  position: relative;
  animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(99,102,241,0.5); }
  50% { box-shadow: 0 0 20px rgba(236,72,153,0.5), 0 0 30px rgba(6,182,212,0.3); }
}

/* Milestone markers */
.progress-milestones {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
  position: relative;
}

.milestone {
  position: relative;
  padding-top: 8px;
}

.milestone::before {
  content: '';
  position: absolute;
  top