/* ╔══════════════════════════════════════════╗
   ║  Wolf Loader — Candlestick Edition       ║
   ╚══════════════════════════════════════════╝ */

#wolfLoader {
  position: fixed; inset: 0; z-index: 9999;
  background: #06080a;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity .85s cubic-bezier(.22,1,.36,1);
}
#wolfLoader.fade-out { opacity: 0; pointer-events: none; }

/* ── canvas layers ── */
#loaderCandlesBg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
#loaderParticles {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}

/* ── center content ── */
.loader-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center;
  animation: lcIn .7s cubic-bezier(.22,1,.36,1) both .1s;
}
@keyframes lcIn {
  from { opacity: 0; transform: scale(.88) translateY(18px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

/* ── rings ── */
.ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring.r1 { width: 290px; height: 290px; border: 1px solid rgba(255,255,255,.06);  animation: rp 3s ease-in-out infinite; }
.ring.r2 { width: 370px; height: 370px; border: 1px solid rgba(74,222,128,.09);   animation: rp 3s ease-in-out infinite .9s; }
.ring.r3 { width: 450px; height: 450px; border: 1px solid rgba(239,68,68,.06);    animation: rp 3s ease-in-out infinite 1.8s; }
@keyframes rp {
  0%,100% { transform: scale(1);    opacity: .7; }
  50%     { transform: scale(1.06); opacity: 1; }
}

/* ── 3-D logo ── */
.logo3d-scene {
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.logo3d-main {
  width: 210px; height: 210px; object-fit: contain;
  position: relative; z-index: 2;
  animation: lf 3.5s ease-in-out infinite;
}
@keyframes lf {
  0%,100% {
    transform: perspective(900px) rotateY(-10deg) rotateX(4deg) translateY(0);
    filter: drop-shadow(-16px 22px 48px rgba(74,222,128,.6))
            drop-shadow(0 0 70px rgba(74,222,128,.18));
  }
  50% {
    transform: perspective(900px) rotateY(10deg) rotateX(-4deg) translateY(-14px);
    filter: drop-shadow(16px 26px 52px rgba(74,222,128,.65))
            drop-shadow(0 0 90px rgba(74,222,128,.25));
  }
}
.logo3d-reflect {
  width: 210px; height: 80px;
  object-fit: contain; object-position: top;
  transform: scaleY(-1);
  opacity: .08; filter: blur(4px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent);
  mask-image:         linear-gradient(to bottom, rgba(0,0,0,.5), transparent);
  animation: lf 3.5s ease-in-out infinite;
  margin-top: -4px;
}

/* ── brand ── */
.loader-brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700; letter-spacing: 6px;
  color: #edfaef; text-align: center;
  margin: 20px 0 6px;
}
.loader-brand em { color: #4ade80; font-style: normal; }

.loader-msg {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .7rem; font-weight: 600;
  color: rgba(200,200,200,.45);
  letter-spacing: 2px; text-transform: uppercase;
  text-align: center;
  transition: opacity .3s;
}

/* ═══════════════════════════════════════════
   BOTTOM CHART PROGRESS  (the big change)
═══════════════════════════════════════════ */
.loader-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
}

/* candle-chart progress bar canvas — hidden, replaced by illuminated bar */
#loaderProgressChart { display: none !important; }

.loader-bottom-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 40px 18px;
  position: relative;
}
.loader-pct-wrap {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  letter-spacing: 2px;
  display: flex; align-items: baseline; gap: 4px;
  position: relative;
}
.loader-pct-wrap > span#loaderPct {
  background: linear-gradient(90deg, #4ade80, #60a5fa, #c084fc, #fbbf24, #4ade80);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pctShimmer 2.4s linear infinite, pctPulse 1.8s ease-in-out infinite;
  text-shadow: 0 0 24px rgba(74,222,128,.45);
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
@keyframes pctShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes pctPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.loader-pct-wrap small {
  font-size: .9rem; color: rgba(255,255,255,.45);
  letter-spacing: 1px; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
}
.loader-status-txt {
  font-size: .72rem; font-weight: 700;
  color: #4ade80;
  letter-spacing: 2px; text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
  text-shadow: 0 0 12px rgba(74,222,128,.6);
  transition: opacity .25s, color .35s;
}

/* Illuminated rainbow progress bar */
.loader-progress-bar {
  position: absolute; left: 0; bottom: 0;
  height: 5px; width: 100%;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}
.loader-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #4ade80 0%, #60a5fa 35%, #c084fc 65%, #fbbf24 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 18px rgba(74,222,128,.6), 0 0 38px rgba(96,165,250,.35);
  position: relative;
  animation: barGradient 3s linear infinite;
  transition: width .25s cubic-bezier(.4,1.4,.6,1);
}
@keyframes barGradient { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.loader-progress-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  animation: barShine 1.4s ease-in-out infinite;
}
@keyframes barShine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ── breakout flash — glow only, no text ── */
.loader-breakout {
  position: absolute; inset: 0; z-index: 10;
  pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%,
    rgba(74,222,128,.22), transparent 65%);
  transition: opacity .25s ease;
}

/* ── responsive ── */
@media (max-width: 600px) {
  .ring.r2, .ring.r3 { display: none; }
  .logo3d-main   { width: 155px; height: 155px; }
  .logo3d-reflect{ width: 155px; }
  .loader-brand  { font-size: 1.2rem; letter-spacing: 4px; }
  .loader-bottom-meta { padding: 8px 20px 12px; }
}
