/* MetaCore Guest Credits Node v2 — meter, toast, modal, lead card */

.mc-wallet-kr-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.mc-kr-meter {
  display: block;
  width: 100%;
  min-width: 72px;
  max-width: 120px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.12);
}

.mc-kr-meter-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.mc-wallet-kr.is-low .mc-kr-meter-fill {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.mc-wallet-kr.is-empty .mc-kr-meter-fill {
  background: linear-gradient(90deg, #64748b, #475569);
  width: 0 !important;
}

.mc-wallet-kr.is-pulse strong {
  animation: mcKrPulse 0.55s ease;
}

@keyframes mcKrPulse {
  0% { transform: scale(1); color: inherit; }
  35% { transform: scale(1.06); color: #67e8f9; }
  100% { transform: scale(1); color: inherit; }
}

#mc-guest-toast-host {
  position: fixed;
  top: calc(var(--acp-top-h, 58px) + 10px);
  right: 16px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.mc-guest-toast {
  pointer-events: auto;
  min-width: 220px;
  max-width: min(92vw, 360px);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(135deg, rgba(8, 13, 33, 0.96), rgba(15, 23, 42, 0.94));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 24px rgba(34, 211, 238, 0.08);
  color: #e7efff;
  font-size: 0.82rem;
  line-height: 1.45;
  transform: translateY(-8px);
  opacity: 0;
  animation: mcGuestToastIn 0.35s ease forwards;
}

.mc-guest-toast--warn {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 20px rgba(245, 158, 11, 0.1);
}

.mc-guest-toast b {
  display: block;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #67e8f9;
  margin-bottom: 4px;
}

.mc-guest-toast--warn b { color: #fcd34d; }

@keyframes mcGuestToastIn {
  to { opacity: 1; transform: translateY(0); }
}

#mc-guest-exhausted-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

#mc-guest-exhausted-modal.is-open { display: flex; }

.mc-guest-modal-card {
  width: min(100%, 420px);
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(5, 8, 22, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  padding: 22px 20px 18px;
  color: #e7efff;
}

.mc-guest-modal-card h3 {
  margin: 0 0 8px;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.mc-guest-modal-card p {
  margin: 0 0 16px;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.55;
}

.mc-guest-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mc-guest-modal-actions a,
.mc-guest-modal-actions button {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.mc-guest-modal-actions .primary {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #020617;
}

.mc-guest-modal-actions .ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mc-guest-lead-hook {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(168, 85, 247, 0.12), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(34, 211, 238, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.03);
}

.mc-guest-lead-hook strong {
  display: block;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
}

.mc-guest-lead-hook p {
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.5;
}

.mc-guest-lead-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.76rem;
  color: #cbd5e1;
}

.mc-guest-lead-meter .mc-kr-meter {
  flex: 1;
  max-width: none;
  height: 6px;
}

.ac-save-hook.mc-guest-lead-hook .ac-lead-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ac-save-hook.mc-guest-lead-hook input[type="email"] {
  flex: 1 1 220px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.55);
  color: #fff;
  padding: 0 12px;
}

.ac-save-hook.mc-guest-lead-hook button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
}

.ac-save-hook.mc-guest-lead-hook .ac-lead-msg {
  margin-top: 10px;
  font-size: 0.74rem;
  color: #64748b;
}
