/* ============================================
   Toastr — T9 themed, top-center
   ============================================ */
#toast-container {
  top: 20px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  max-width: calc(100% - 32px) !important;
  z-index: 1080 !important;
  pointer-events: none;
}

#toast-container > div {
  pointer-events: auto;
  opacity: 1 !important;
  margin: 0 0 10px !important;
  padding: 14px 44px 14px 52px !important;
  width: min(380px, calc(100vw - 32px)) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #111A2E 0%, #16213A 100%) !important;
  border: 1px solid rgba(96, 165, 250, 0.30) !important;
  color: #F8FAFC !important;
  font-family: "Inter", "Space Grotesk", system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.01em !important;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  background-image: none !important;
  position: relative;
  overflow: hidden;
}

/* Top gradient line accent */
#toast-container > div::before {
  content: "";
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3B82F6, transparent);
}

/* Title */
#toast-container > div > .toast-title {
  font-family: "Space Grotesk", "Inter", sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  margin-bottom: 4px !important;
  color: #F8FAFC !important;
}

/* Message */
#toast-container > div > .toast-message {
  color: #CBD5E1 !important;
  font-size: 13px !important;
  word-wrap: break-word;
}
#toast-container > div > .toast-message a,
#toast-container > div > .toast-message label { color: #F8FAFC !important; }

/* Left icon circle */
#toast-container > div::after {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  width: 24px; height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

/* Success variant */
#toast-container > .toast-success {
  border-color: rgba(16, 185, 129, 0.45) !important;
  background: linear-gradient(135deg, #0E1F1A 0%, #11332A 100%) !important;
}
#toast-container > .toast-success::before {
  background: linear-gradient(90deg, transparent, #10B981, transparent);
}
#toast-container > .toast-success::after {
  background-color: rgba(16, 185, 129, 0.20);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}
#toast-container > .toast-success > .toast-title { color: #10B981 !important; }

/* Error variant */
#toast-container > .toast-error {
  border-color: rgba(239, 68, 68, 0.45) !important;
  background: linear-gradient(135deg, #1F1014 0%, #33141A 100%) !important;
}
#toast-container > .toast-error::before {
  background: linear-gradient(90deg, transparent, #EF4444, transparent);
}
#toast-container > .toast-error::after {
  background-color: rgba(239, 68, 68, 0.20);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
}
#toast-container > .toast-error > .toast-title { color: #EF4444 !important; }

/* Info variant */
#toast-container > .toast-info {
  border-color: rgba(34, 211, 238, 0.45) !important;
}
#toast-container > .toast-info::before {
  background: linear-gradient(90deg, transparent, #22D3EE, transparent);
}
#toast-container > .toast-info::after {
  background-color: rgba(34, 211, 238, 0.20);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322D3EE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
}
#toast-container > .toast-info > .toast-title { color: #22D3EE !important; }

/* Warning variant */
#toast-container > .toast-warning {
  border-color: rgba(245, 158, 11, 0.45) !important;
  background: linear-gradient(135deg, #1F1810 0%, #33261A 100%) !important;
}
#toast-container > .toast-warning::before {
  background: linear-gradient(90deg, transparent, #F59E0B, transparent);
}
#toast-container > .toast-warning::after {
  background-color: rgba(245, 158, 11, 0.20);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F59E0B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
}
#toast-container > .toast-warning > .toast-title { color: #F59E0B !important; }

/* Close button */
#toast-container > div > .toast-close-button {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #94A3B8 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  padding: 4px !important;
  transition: color .15s ease;
}
#toast-container > div > .toast-close-button:hover {
  color: #F8FAFC !important;
}

/* Progress bar */
#toast-container > div > .toast-progress {
  height: 2px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  opacity: 1 !important;
}
#toast-container > .toast-success > .toast-progress { background: #10B981 !important; }
#toast-container > .toast-error   > .toast-progress { background: #EF4444 !important; }
#toast-container > .toast-info    > .toast-progress { background: #22D3EE !important; }
#toast-container > .toast-warning > .toast-progress { background: #F59E0B !important; }

/* Small screens */
@media (max-width: 480px) {
  #toast-container > div {
    padding: 12px 40px 12px 48px !important;
    font-size: 12.5px !important;
  }
}

/* ============================================
   jquery-toast-plugin (legacy, used by copyToClipboard)
   ============================================ */
.jq-toast-loader { display: none !important; }
.jq-toast-single {
  border-radius: 14px !important;
  font-family: "Inter", "Space Grotesk", sans-serif !important;
  background: linear-gradient(135deg, #111A2E 0%, #16213A 100%) !important;
  border: 1px solid rgba(96, 165, 250, 0.30) !important;
}
.jq-icon-success { background-color: #10B981 !important; }
.jq-icon-error   { background-color: #EF4444 !important; }
.jq-icon-info    { background-color: #22D3EE !important; }
.jq-icon-warning { background-color: #F59E0B !important; }
.jq-icon-info, .jq-icon-success, .jq-icon-warning, .jq-icon-error { color: #fff !important; }
