@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
body { font-family: 'Inter', sans-serif; background-color: #05070a; color: #ffffff; }
.hero-bg {
    background: linear-gradient(rgba(5, 7, 10, 0.3), rgba(5, 7, 10, 0.95)), url('/static/images/bull.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
@media (min-width: 768px) { .dropdown:hover .dropdown-menu { display: block; animation: fadeIn 0.2s ease-out; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.marquee-content { display: flex; animation: marquee 30s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.signal-card { background: #0f1217; border: 1px solid #1f242d; transition: all 0.3s ease; }
.signal-card:hover { border-color: #c5a059; transform: translateY(-5px); }
.nav-slim {
    height: 44px !important; 
}

.signal-table th {
    padding: 12px 16px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    border-bottom: 1px solid #1f242d;
    text-align: left;
}
.signal-table td {
    padding: 16px;
    font-size: 13px;
    border-bottom: 1px solid #1f242d;
    vertical-align: middle;
}
.signal-table tbody tr:hover {
    background-color: #0f1217;
}

/* Custom Scrollbar for news container */
.news-scroll::-webkit-scrollbar { width: 6px; }
.news-scroll::-webkit-scrollbar-track { background: #0f1217; }
.news-scroll::-webkit-scrollbar-thumb { background: #1f242d; border-radius: 3px; }
.news-scroll::-webkit-scrollbar-thumb:hover { background: #c5a059; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }
.sticky-nav { position: sticky; top: 0; z-index: 40; }

/* ═══════════════════════════════════════════════
   MGL SIGNAL — MOTION LAYER (ЧИНИЙ CSS ФАЙЛД)
   ═══════════════════════════════════════════════ */

/* 2. FLOATING GOLD PARTICLES CANVAS */
#mgl-particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.55;
}

/* 3. SCROLL REVEAL — elements fade+slide up */
.mgl-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.mgl-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 4. HERO TEXT SHIMMER on gold spans */
.text-brand-gold, [class*="text-brand-gold"] {
  /* ── ТЕКСТИЙГ АМРАХ ҮЕД НЬ ТОД ШАРААР ҮЛДЭЭХ ШИНЭ GRADIENT ── */
  /* Эхлэл (0%) болон Төгсгөл (100%) хэсгийг чиний дуртай тод алтлаг (#c5a059) өнгөөр хааж, зөвхөн дунд нь цэвэр цагаан оч оруулсан */
  background: linear-gradient(90deg, #c5a059 0%, #c5a059 30%, #ffffff 50%, #c5a059 70%, #c5a059 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  /* 2с гүйж, 8с амрах 10 секундын цикл */
  animation: goldShimmer 10s cubic-bezier(0.19, 1, 0.22, 1) infinite;

  /* Гарчиг таслагдахаас хамгаалах суурь */
  display: inline-block; 
  padding-right: 0.2em; 
  padding-bottom: 0.05em; 
}

/* ── ЗӨВХӨН ГЭРЭЛ ГҮЙЛГЭХ ХӨДӨЛГӨӨН ── */
@keyframes goldShimmer {
  0% { 
    /* Эхлэхдээ текст чинь бүтэн шараараа байна */
    background-position: 0% center; 
  }
  15% { 
    /* 1.5 секундын дотор цагаан оч баруун талаас зүүн тийш гялс гүйж өнгөрнө */
    background-position: -200% center; 
  }
  100% { 
    /* Үлдсэн 8.5 секунд амарч байхдаа ч текст тэр чигтээ тод шараараа л байна */
    background-position: -200% center; 
  }
}

/* 5. LIVE PING DOTS — pulse glow */
.animate-ping {
  animation: mglPing 1.4s cubic-bezier(0,0,0.2,1) infinite !important;
}
@keyframes mglPing {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* 6. CARD HOVER LIFT */
[class*="rounded-xl"], [class*="rounded-2xl"], [class*="rounded-3xl"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
  will-change: transform;
}
[class*="rounded-xl"]:hover,
[class*="rounded-2xl"]:hover,
[class*="rounded-3xl"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(197,160,89,0.08);
}

/* 7. BUTTON RIPPLE */
.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple::after {
  content: '';
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  width: 0; height: 0;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.btn-ripple:active::after {
  width: 250px; height: 250px; opacity: 1;
  transition: none;
}

/* 8. NAV LINK UNDERLINE SLIDE */
nav a {
  position: relative;
}
nav a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: #c5a059;
  transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }

/* 9. TICKER FADE EDGES */
.bg-black.border-y::before,
.bg-black.border-y::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.bg-black.border-y { position: relative; }
.bg-black.border-y::before {
  left: 0;
  background: linear-gradient(90deg, #000, transparent);
}
.bg-black.border-y::after {
  right: 0;
  background: linear-gradient(-90deg, #000, transparent);
}

/* 10. SECTION BORDER GLOW on scroll enter */
section.in-view {
  border-color: rgba(197,160,89,0.15) !important;
  transition: border-color 1s ease;
}

/* 11. HERO BACKGROUND AURORA */
.hero-bg {
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(197,160,89,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 20% 60%, rgba(197,160,89,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 40%, rgba(197,160,89,0.04) 0%, transparent 60%);
  animation: auroraShift 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes auroraShift {
  0%   { transform: scale(1) translateY(0px); opacity: 0.8; }
  50%  { transform: scale(1.05) translateY(-10px); opacity: 1; }
  100% { transform: scale(1) translateY(0px); opacity: 0.8; }
}

/* 12. GOLD BORDER PULSE on hero buttons */
.hero-bg a[href] {
  animation: borderPulse 3s ease-in-out infinite;
}
@keyframes borderPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197,160,89,0); }
  50%       { box-shadow: 0 0 0 4px rgba(197,160,89,0.15); }
}

/* 13. STAT NUMBERS COUNT-UP */
.stat-num { transition: color 0.3s; }

/* 14. IMAGE PARALLAX */
.group img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ═══════════════════════════════════════════════
   15. GLOBAL TEXT SPOTLIGHT — ЗӨВХӨН ОНООСОН ГАЗАРТ
   ═══════════════════════════════════════════════ */

/* Зөвхөн HTML дээр гараар .mgl-spotlight-text гэж бичсэн цөөн хэдэн газарт л ажиллана */
.mgl-spotlight-text {
  position: relative;
  display: inline-block;
}

.mgl-spotlight-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.4) 30%, transparent 70%);
  background-size: 150px 100%;
  background-repeat: no-repeat;
  
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  mix-blend-mode: lighten;
  pointer-events: none;
  
  animation: flashlightWander 8s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes flashlightWander {
  0% { background-position: -50% center; }
  50% { background-position: 50% center; }
  100% { background-position: 150% center; }
}

/* ═══════════════════════════════════════════════
   DATA GRID & CARDS STYLING
   ═══════════════════════════════════════════════ */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.data-card {
    background: #0f1217;
    border: 1px solid #1f242d;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.data-card:hover { border-color: #c5a059; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.data-card .label { font-size: 9px; font-weight: 800; color: #4b5563; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.5rem; }
.data-card .value { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 900; color: #ffffff; line-height: 1; }
.data-card .value.price { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }
.data-card .value.up { color: #10b981; }
.data-card .value.down { color: #ef4444; }