/* ── Toast stack ── */
.notify-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: min(440px, calc(100vw - 32px));
}

.notify-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 15px;
  border-radius: 13px;
  background: var(--bg-card, #fff);
  color: var(--text-primary, #1d1d1f);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  animation: notifyIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes notifyIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }

.notify-toast__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
}
.notify-toast__ic svg { width: 17px; height: 17px; }
.notify-toast__msg { flex: 1 1; min-width: 0; }

.notify-toast--success .notify-toast__ic { background: #e7f7ec; color: #16a34a; }
.notify-toast--error   .notify-toast__ic { background: #fdeaea; color: #dc2626; }
.notify-toast--info    .notify-toast__ic { background: var(--accent-bg, #f0f7ff); color: var(--accent, #131316); }

[data-theme='dark'] .notify-toast--success .notify-toast__ic { background: #16311f; color: #5fd08a; }
[data-theme='dark'] .notify-toast--error   .notify-toast__ic { background: #3a1a1a; color: #f0796a; }

/* ── Confirm dialog ── */
.notify-confirm__overlay {
  position: fixed;
  inset: 0;
  z-index: 410;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.46);
  animation: notifyFade 0.16s ease both;
}
@keyframes notifyFade { from { opacity: 0; } to { opacity: 1; } }

.notify-confirm {
  width: min(400px, 100%);
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: notifyPop 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes notifyPop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }

.notify-confirm__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary, #1d1d1f);
  margin-bottom: 8px;
}
.notify-confirm__msg {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary, #4a4a4f);
  /* overflow-wrap: chuỗi dài không dấu cách (vd link chia sẻ) phải xuống dòng thay vì tràn
     khỏi hộp thoại rộng cố định 400px — xem StudioPro.tsx handleShare. */
  overflow-wrap: anywhere;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.notify-confirm__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.notify-btn {
  padding: 10px 18px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease;
}
.notify-btn:active { transform: scale(0.97); }
.notify-btn--ghost {
  background: var(--btn-ghost-bg, #fff);
  color: var(--text-primary, #1d1d1f);
  border-color: var(--border-strong, rgba(0, 0, 0, 0.14));
}
.notify-btn--ghost:hover { background: var(--btn-ghost-hover, #f5f5f7); }
.notify-btn--primary { background: #131316; color: #fff; }
[data-theme='dark'] .notify-btn--primary { background: #FFD100; color: #131313; }
.notify-btn--danger { background: #e11d48; color: #fff; }

@media (max-width: 768px) {
  .notify-stack { bottom: 88px; } /* trên bottom nav */
}

