/* ===== AIVO TOAST — TRUE GLASS / MINIMAL ===== */

:root{
  --aivo-player-h: 84px; /* global player yüksekliği (70–90 arası ayarlanır) */
  --aivo-toast-gap: 12px;
  --aivo-safe-b: env(safe-area-inset-bottom, 0px);
  --aivo-toast-bottom: calc(var(--aivo-player-h) + var(--aivo-toast-gap) + var(--aivo-safe-b));
}

#aivoToasts{
  position: fixed;
  left: 50%;
  bottom: var(--aivo-toast-bottom);
  top: auto;
  right: auto;
  transform: translateX(-50%);
  z-index: 999999;
  pointer-events: none;
  width: min(520px, calc(100vw - 24px));
}

.aivo-toast{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  min-width: 220px;
  max-width: 360px;

  border-radius: 12px;

  /* 🔥 CAM ETKİSİ */
  background: rgba(20, 20, 30, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  /* 🔥 İNCE BEYAZ KENAR */
  border: 1px solid rgba(255,255,255,0.22);

  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.35);

  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity .35s ease,
    transform .35s ease;
}

.aivo-toast.is-in{
  opacity: 1;
  transform: translateY(0);
}

.aivo-toast.is-out{
  opacity: 0;
  transform: translateY(-4px);
}

/* ikon */
.aivo-toast__icon{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* başlık */
.aivo-toast__title{
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

/* mesaj */
.aivo-toast__msg{
  font-size: 12px;
  opacity: .75;
  margin: 0;
}

/* kapatma */
.aivo-toast__x{
  margin-left: auto;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  cursor: pointer;
}
/* AIVO TOAST — SIZE/TYPO TUNE (balanced) */
.aivo-toast{
  min-width: 320px !important;
  max-width: 420px !important;
  padding: 14px 18px !important;
  border-radius: 16px !important;
}

.aivo-toast__icon{
  width: 28px !important;
  height: 28px !important;
  font-size: 14px !important;
}

.aivo-toast__title{
  font-size: 14px !important;
  font-weight: 700 !important;
}

.aivo-toast__msg{
  font-size: 13px !important;
  opacity: .78 !important;
}

.aivo-toast__x{
  width: 28px !important;
  height: 28px !important;
  font-size: 16px !important;
  border-radius: 12px !important;
}

/* ===== FORCE FINAL (tek otorite görünüm) ===== */
.aivo-toast{
  min-width: 320px !important;
  max-width: 420px !important;
  padding: 14px 18px !important;
  border-radius: 16px !important;

  background: rgba(20,20,30,0.45) !important;   /* cam */
  background-image: none !important;            /* gradient öldür */
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35) !important;

  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
}

.aivo-toast__icon{
  width: 28px !important;
  height: 28px !important;
  font-size: 14px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}

.aivo-toast__title{ font-size: 14px !important; font-weight: 700 !important; }
.aivo-toast__msg{ font-size: 13px !important; opacity: .78 !important; }

.aivo-toast__x{
  width: 28px !important;
  height: 28px !important;
  font-size: 16px !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 12px !important;
}
/* ✅ Toast konumu: Topbar altında, sağ üst */
:root{
  --aivo-topbar-h: 72px; /* topbar gerçek yüksekliğine göre 64/72/80 ayarla */
}

/* senin container classın neyse ona uygula:
   .toast-stack / .toast-container / #toastRoot gibi */
.toast-container,
.toast-stack,
#aivoToastRoot {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--aivo-topbar-h) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  left: auto;
  bottom: auto;
  z-index: 99999;
  max-width: min(360px, calc(100vw - 24px));
  pointer-events: none; /* toast üstüne tıklanmasın */
}

.toast-container .toast,
.toast-stack .toast,
#aivoToastRoot .toast {
  pointer-events: auto; /* kapatma butonu çalışsın */
}
/* HARD KILL: tint/boyanmayı kes */
#aivoToasts .aivo-toast{
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

