/* =========================================================
   IronPhantom – Cerebrus-X Toast
   Style aligned with toast-admin-notification.css
   FIXED • Production Ready • No White Space
   ========================================================= */

/* =========================
   Container
   ========================= */
#ironphantom-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;

  width: 0;
  height: 0;
  overflow: visible;

  pointer-events: none;
}

/* =========================
   Toast Base
   ========================= */
.ironphantom-cx-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;

  min-width: 320px;
  max-width: 420px;

  background: radial-gradient(
    circle at top left,
    #1f2937 0,
    #020617 55%,
    #020617 100%
  );

  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-left: 3px solid #f97316;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.7);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  overflow: hidden;
  pointer-events: auto;

  opacity: 0;
  transform: translateY(12px) translateX(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* visibile */
.ironphantom-cx-toast.show {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* =========================
   Header
   ========================= */
.cx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px 12px 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.cx-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cx-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f9fafb;
  opacity: 0.9;
}

.cx-subtitle {
  font-size: 12px;
  color: #9ca3af;
}

/* close */
.cx-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.cx-close-btn:hover {
  color: #f9fafb;
}

/* =========================
   Body
   ========================= */
.cx-body {
  position: relative;
  padding: 10px 12px 12px 46px;
  font-size: 13px;
  line-height: 1.45;
}

/* shield icon */
.cx-body::before {
  content: "🛡️";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  background: radial-gradient(
    circle at 30% 0,
    #f97316 0,
    #b91c1c 40%,
    #111827 100%
  );

  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 16px rgba(248, 113, 113, 0.65);
}

.cx-body div {
  margin: 3px 0;
}

.cx-body b {
  color: #f9fafb;
}

/* =========================
   Footer (FREE)
   ========================= */
.cx-footer {
  padding: 8px 12px;
  font-size: 12px;
  color: #9ca3af;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* =========================
   FREE / PRO variants
   ========================= */

/* FREE */
.ironphantom-cx-toast.free {
  border-left-color: #64748b;
  border-color: rgba(148, 163, 184, 0.45);
}

.ironphantom-cx-toast.free .cx-body::before {
  background: radial-gradient(
    circle at 30% 0,
    #64748b 0,
    #334155 45%,
    #020617 100%
  );
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 12px rgba(148, 163, 184, 0.35);
}

/* PRO */
.ironphantom-cx-toast.pro {
  border-left-color: #f97316;
  border-color: rgba(248, 113, 113, 0.55);
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 782px) {
  .ironphantom-cx-toast {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}
