/* ============================================================
   RUSH | District Zero — ECONOMY.CSS v2
   ============================================================
   v2 MUDANÇAS:
   ✅ Removidos styles do #economy-hud antigo (HUD próprio)
   ✅ Adicionados styles pro #hud-credits dentro do painel lateral
   ✅ Notifications continuam separadas (canto direito)
   ============================================================ */

/* ═════════════════════════════════════════════════════════ */
/* SALDO INTEGRADO NO PAINEL LATERAL                         */
/* ═════════════════════════════════════════════════════════ */

#hud-divider {
  border-top: 1px solid rgba(255, 215, 0, 0.25);
  margin: 6px 0 4px 0;
  padding: 0;
}

#hud-credits {
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
  display: inline-block;
}

.hud-credits-label {
  color: #888;
  font-size: 10px;
  font-weight: normal;
  letter-spacing: 1px;
  margin-left: 3px;
  text-shadow: none;
}

#hud-credits.earn-flash {
  color: #00ff88;
  text-shadow: 0 0 14px #00ff88, 0 0 24px #00ff88;
  animation: balanceFlash 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#hud-credits.spend-flash {
  color: #ff4466;
  text-shadow: 0 0 10px #ff4466;
  animation: spendFlash 0.6s ease-out;
}

@keyframes balanceFlash {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.20); }
  100% { transform: scale(1); }
}

@keyframes spendFlash {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* ═════════════════════════════════════════════════════════ */
/* NOTIFICATIONS — stack vertical no canto direito           */
/* ═════════════════════════════════════════════════════════ */
.econ-notification {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 1500;

  background: linear-gradient(
    135deg,
    rgba(0, 30, 20, 0.96),
    rgba(0, 50, 35, 0.96)
  );
  border: 2px solid #00ff88;
  border-radius: 10px;
  padding: 12px 20px;

  font-family: 'Courier New', monospace;
  color: #fff;
  box-shadow:
    0 0 24px rgba(0, 255, 136, 0.45),
    inset 0 0 20px rgba(0, 255, 136, 0.06);

  min-width: 220px;
  max-width: 320px;

  transform: translateX(120%);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s ease-out;

  pointer-events: none;
}

.econ-notification.show {
  transform: translateX(0);
  opacity: 1;
}

/* Variante: SPEND (compra) */
.econ-notification.econ-spend {
  background: linear-gradient(
    135deg,
    rgba(40, 0, 60, 0.96),
    rgba(60, 0, 80, 0.96)
  );
  border-color: #ff44dd;
  box-shadow:
    0 0 24px rgba(255, 68, 221, 0.45),
    inset 0 0 20px rgba(255, 68, 221, 0.06);
}

/* Variante: ERROR */
.econ-notification.econ-error {
  background: linear-gradient(
    135deg,
    rgba(60, 10, 10, 0.96),
    rgba(80, 20, 20, 0.96)
  );
  border-color: #ff4466;
  box-shadow:
    0 0 24px rgba(255, 68, 102, 0.45),
    inset 0 0 20px rgba(255, 68, 102, 0.06);
}

.econ-notif-header {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: bold;
}

.econ-notif-body {
  font-size: 20px;
  font-weight: bold;
  color: #00ff88;
  text-shadow: 0 0 8px #00ff88;
  margin-bottom: 3px;
}

.econ-notification.econ-spend .econ-notif-body {
  color: #ff44dd;
  text-shadow: 0 0 8px #ff44dd;
  font-size: 16px;
}

.econ-notification.econ-error .econ-notif-body {
  color: #ff4466;
  text-shadow: 0 0 8px #ff4466;
  font-size: 14px;
}

.econ-notif-subtitle {
  font-size: 10px;
  color: #888;
  letter-spacing: 0.5px;
}

/* ═════════════════════════════════════════════════════════ */
/* MOBILE RESPONSIVE                                         */
/* ═════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .econ-notification {
    top: 70px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: 0;
    padding: 10px 14px;
  }

  .econ-notif-body {
    font-size: 17px;
  }

  .econ-notification.econ-spend .econ-notif-body {
    font-size: 14px;
  }

  .hud-credits-label {
    font-size: 9px;
  }
}