:root {
  --notify-bg: #1f2937;
  --notify-color: #fff;
  --notify-success-bg: #16a34a;
  --notify-error-bg: #dc2626;
  --notify-info-bg: #0ea5e9;
  --notify-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* IQ365 Spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  margin: 0;
  padding: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.spinner-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

.shell {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    transparent   0deg,
    transparent  80deg,
    #f4a015     120deg,
    #ff7849     190deg,
    #ff5e7e     270deg,
    transparent 310deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff calc(100% - 5px));
  mask:         radial-gradient(farthest-side, transparent calc(100% - 5px), #fff calc(100% - 5px));
  animation: spinCCW 2s linear infinite;
}

.brand {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  user-select: none;
  animation: breathText 2s ease-in-out infinite;
}

.brand-iq {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #7c5cfc 0%, #c061ff 50%, #00c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.brand-divider {
  width: 24px;
  height: 1.5px;
  border-radius: 1px;
  background: linear-gradient(90deg, #f4a015, #ff5e7e);
  margin: 3px 0;
  animation: breathDivider 2s ease-in-out infinite;
}

.brand-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #888;
  margin-left: 2px;
}

@keyframes spinCCW {
  to { transform: rotate(-360deg); }
}

@keyframes breathText {
  0%, 100% { transform: scale(0.88); }
  50%       { transform: scale(1.06); }
}

@keyframes breathDivider {
  0%, 100% { transform: scaleX(0.7); opacity: 0.5; }
  50%       { transform: scaleX(1.4); opacity: 1;   }
}

.toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  z-index: 10011;
  min-width: 280px;
  max-width: 420px;
  width: min(90vw, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-container:empty {
  display: none;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--notify-bg);
  color: var(--notify-color);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  box-shadow: var(--notify-shadow);
  border: 1px solid rgba(255,255,255,0.17);
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success { background: var(--notify-success-bg); }
.toast-error { background: var(--notify-error-bg); }
.toast-info { background: var(--notify-info-bg); }
.toast-warning { background: var(--notify-info-bg); }

.toast-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 0.75rem;
}
