/* ==========================================================
   CryptoApec AI - Futuristic Obsidian & Glassmorphism Styles
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(16, 20, 31, 0.65);
  --bg-card-hover: rgba(23, 29, 45, 0.85);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(0, 240, 255, 0.35);
  
  --neon-cyan: #00f0ff;
  --neon-purple: #9d4edd;
  --neon-emerald: #10b981;
  --neon-amber: #f59e0b;
  --neon-rose: #f43f5e;
  --crypto-gold: #f7931a;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.mono-num {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* Background Atmosphere Glows */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  animation: floatSlow 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7000ff 0%, transparent 70%);
  top: -150px;
  left: -150px;
}

.blob-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #00f0ff 0%, transparent 70%);
  top: 30%;
  right: -200px;
  animation-duration: 25s;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f7931a 0%, transparent 70%);
  bottom: 5%;
  left: 15%;
  animation-duration: 18s;
}

@keyframes floatSlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-card-hover);
  box-shadow: 0 12px 30px -10px rgba(0, 240, 255, 0.12);
}

.glass-header {
  background: rgba(7, 9, 14, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Pulsing Dots */
.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--neon-emerald);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Price Flash Animations */
@keyframes flashGreen {
  0% { color: #10b981; text-shadow: 0 0 12px rgba(16, 185, 129, 0.6); }
  100% { color: inherit; text-shadow: none; }
}

@keyframes flashRed {
  0% { color: #f43f5e; text-shadow: 0 0 12px rgba(244, 63, 94, 0.6); }
  100% { color: inherit; text-shadow: none; }
}

.price-up {
  animation: flashGreen 1.5s ease-out;
}

.price-down {
  animation: flashRed 1.5s ease-out;
}

/* Signal Badges */
.badge-strong-buy {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.15) 100%);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.badge-accumulate {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(14, 165, 233, 0.15) 100%);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.15);
}

.badge-hold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge-take-profit {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2) 0%, rgba(225, 29, 72, 0.15) 100%);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.4);
}

/* Modern Gradient Text */
.gradient-text-cyan {
  background: linear-gradient(135deg, #00f0ff 0%, #7000ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gauge Needle Transition */
.needle-indicator {
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 50% 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #080a10;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.4);
}

/* Card Glow Effect on Hover */
.crypto-card {
  position: relative;
  overflow: hidden;
}

.crypto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.8), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.crypto-card:hover::before {
  transform: translateX(100%);
}

/* Range bar */
.range-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  height: 6px;
  position: relative;
  overflow: hidden;
}

.range-fill {
  background: linear-gradient(90deg, #3b82f6, #00f0ff);
  height: 100%;
  border-radius: 9999px;
}

.range-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #00f0ff;
}

/* Modal Backdrop */
.modal-overlay {
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Shimmer Loading */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-loading {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: 8px;
}
