/* ─── TOOLTIP ─── */
.tooltip-wrap { position: relative; display: inline-flex; align-items: center; cursor: help }
.tooltip-wrap .tooltip-icon {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--line); display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: var(--ink-muted);
  flex-shrink: 0; margin-left: 4px;
}
.tooltip-wrap .tooltip-text {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-dark); color: #fff;
  padding: 8px 12px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 400; line-height: 1.45;
  white-space: normal; width: max-content; max-width: 220px;
  pointer-events: none; opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.tooltip-wrap .tooltip-text::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--bg-dark);
}
.tooltip-wrap:hover .tooltip-text {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bg-dark); color: #fff;
  padding: 12px 20px; border-radius: 14px;
  font-size: 0.88rem; font-weight: 500; z-index: 400;
  box-shadow: var(--shadow-lg); transition: transform 0.35s ease, opacity 0.35s ease;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); opacity: 0;
}
.toast.visible { transform: translateX(-50%) translateY(0); opacity: 1 }
.toast-icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.toast-icon.success { background: #2a9d4a }
.toast-icon.error { background: #d44 }
.toast-icon.info { background: var(--accent) }
.toast-icon svg { width: 14px; height: 14px }
.toast-progress {
  position: absolute; bottom: 0; left: 12px; right: 12px; height: 3px;
  border-radius: 2px; background: rgba(255,255,255,0.15); overflow: hidden;
}
.toast-progress-bar {
  height: 100%; background: rgba(255,255,255,0.5); border-radius: 2px;
  width: 100%; transform-origin: left;
  animation: toastCountdown 3s linear forwards;
}
@keyframes toastCountdown { to { transform: scaleX(0) } }

/* ─── LOADER ─── */
.loader-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.loader-overlay.active { opacity: 1; pointer-events: auto }
.loader-box {
  background: var(--bg-white); border-radius: var(--radius);
  padding: 40px 48px; text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.loader-spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.loader-box p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 }

/* ─── FLOATING CTA ─── */
.float-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--bg-dark); color: #fff;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.88rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  display: flex; align-items: center; gap: 8px;
  transition: all 0.25s;
}
.float-cta:hover { background: #333; transform: translateY(-2px) }
@media(max-width:540px) { .float-cta { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 0.82rem } }
