#global-overlay-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

.global-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.9), rgba(245, 241, 235, 0.95)),
    linear-gradient(to bottom, rgba(250,248,244,0.98), rgba(235,230,222,0.98));
  pointer-events: auto;
  animation: overlayFadeIn 0.25s ease;
  opacity: .97;
}

.global-top-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
  z-index: 10000;
}

.top-loader-bar {
  height: 100%;
  width: 35%;
  background: var(--primary);
  animation: topLoaderSlide 1.3s ease-in-out infinite;
}

.global-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: modalFloatIn 0.25s ease;
}

.loader-quote {
  max-width: 440px;
  text-align: center;
  line-height: 1.6;
  color: #2f2f2f;
}

.quote-text {
  font-size: 1.95rem;
  opacity: 0.95;
}

.quote-author {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  opacity: 0.6;
  font-weight: 700;
}

.global-modal {
  width: 100%;
  max-width: 440px;
  background: #fbfaf8;
  border-radius: 18px;
  padding: 1.7rem 1.6rem 1.5rem;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(0,0,0,0.05);
  animation: modalFloatIn 0.25s ease;
  color: #1f2937;
  position: relative;
  margin: auto;
  pointer-events: auto;
}

/* .global-modal::before {
  content: "❧";
  display: block;
  text-align: center;
  color: rgba(0,0,0,0.25);
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
} */

.global-modal h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.global-modal p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
}

.global-actions {
  margin-top: 1.3rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.global-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #f3f1ed;
  color: #2f2f2f;
  cursor: pointer;
  transition: all 0.15s ease;
}

.global-btn:hover {
  background: #e9e6e0;
}

.global-btn.primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.global-btn.primary:hover {
  filter: brightness(0.9);
}

.global-btn.ghost {
  background: transparent;
  border-color: transparent;
  color: #6b7280;
}

.global-btn.ghost:hover {
  color: #111827;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalFloatIn {
  from {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes topLoaderSlide {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(150%); }
  100% { transform: translateX(300%); }
}
