/* =====================================================================
   Bildirim paneli (sağ üst zil) + /notifications listesi — 2026-10-15
   Masaüstü (≥768): zilin 12px altında, sağa hizalı 380px panel + ok ucu.
   Mobil (≤767): panel JS ile <body>'ye taşınır → tam boy alt sayfa (tutamak, kapat, güvenli alan, arka plan karartma).
   Yalnız .wzn* sınıfları — eski .bell-drop/.bell-item kuralları (winzobet-base / winzobet-reference) artık eşleşmez.
   Zil düğmesi/rozeti (.bell-btn, .bell-badge) header düzeninin parçası; burada YALNIZ odak halkası eklenir.
   ===================================================================== */
.wzn,
.wzn-page {
  --wzn-bg: #24262b;
  --wzn-bg2: #1a1c20;
  --wzn-line: #2e3137;
  --wzn-edge: #3a3d44;
  --wzn-hover: #2e3137;
  --wzn-press: #33363d;
  --wzn-red: #ff3361;
  --wzn-tx2: #ababab;
  --wzn-tx3: #9a9ea6; /* küçük metin (zaman, gün başlığı): #24262b üstünde 5.6:1, hover/okunmamış zeminde ≥4.8:1 (WCAG AA) */
}

.topbar .bell .bell-btn:focus-visible {
  outline: 2px solid #ff3361;
  outline-offset: 2px;
}

/* ---------------- panel (masaüstü) ---------------- */
.wzn {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  z-index: 95;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 380px;
  max-width: calc(100vw - 24px);
  max-height: min(620px, calc(100vh - 88px));
  margin: 0;
  padding: 0;
  border: 1px solid var(--wzn-edge);
  border-radius: 14px;
  background: var(--wzn-bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .3);
  color: #fff;
  font-family: inherit;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}

.wzn.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .16s ease, transform .16s ease, visibility 0s;
}

.wzn:focus {
  outline: none;
}

/* ok ucu: zilin ortasına (38px düğme → sağdan 19px) */
.wzn::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 13px;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-top: 1px solid var(--wzn-edge);
  border-left: 1px solid var(--wzn-edge);
  border-top-left-radius: 3px;
  background: var(--wzn-bg);
  transform: rotate(45deg);
}

.wzn-grab {
  display: none;
}

.wzn-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 14px 10px 12px 16px;
}

.wzn-ttl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.wzn .wzn-ttl h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0;
  white-space: nowrap;
}

.wzn-count {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 51, 97, .14);
  color: #ff6b8a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.wzn-count[hidden] {
  display: none;
}

.wzn-acts {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.wzn-read {
  height: 30px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wzn-red);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 30px;
  white-space: nowrap;
  cursor: pointer;
}

.wzn-read:hover:not(:disabled) {
  background: rgba(255, 51, 97, .1);
}

.wzn-read:disabled {
  color: #5c6068;
  cursor: default;
}

.wzn-icbtn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wzn-tx2);
  cursor: pointer;
}

.wzn-icbtn:hover {
  background: var(--wzn-hover);
  color: #fff;
}

.wzn-icbtn > svg.ic {
  display: block;
  width: 16px;
  height: 16px;
}

.wzn-icbtn.is-spin > svg.ic {
  animation: wzn-spin .8s linear infinite;
}

.wzn-close {
  display: none;
}

.wzn-read:focus-visible,
.wzn-icbtn:focus-visible,
.wzn-chip:focus-visible,
.wzn-foot:focus-visible,
.wzn-retry:focus-visible,
.wzn-more:focus-visible {
  outline: 2px solid var(--wzn-red);
  outline-offset: 1px;
}

/* ---------------- filtre çipleri ---------------- */
.wzn-chips {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wzn-chips::-webkit-scrollbar {
  display: none;
}

.wzn-chips[hidden] {
  display: none;
}

.wzn-chips.is-scroll {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}

.wzn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 30px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid var(--wzn-line);
  border-radius: 999px;
  background: var(--wzn-bg2);
  color: var(--wzn-tx2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .12s, color .12s, background-color .12s;
}

.wzn-chip:hover {
  border-color: var(--wzn-edge);
  color: #fff;
}

.wzn-chip.is-on {
  border-color: var(--wzn-red);
  background: var(--wzn-hover);
  color: #fff;
}

/* ---------------- liste ---------------- */
.wzn-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 8px 8px;
  border-top: 1px solid var(--wzn-line);
  scrollbar-width: thin;
  scrollbar-color: #3a3d44 transparent;
}

.wzn-day {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 12px 8px 6px;
  background: var(--wzn-bg);
  color: var(--wzn-tx3);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wzn-ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wzn-li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wzn-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px 10px 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .12s;
}

.wzn-item:hover {
  background: var(--wzn-hover);
}

.wzn-item:active {
  background: var(--wzn-press);
}

.wzn-item:focus-visible {
  outline: 2px solid var(--wzn-red);
  outline-offset: -2px;
}

.wzn-item.is-unread {
  background: rgba(255, 51, 97, .06);
}

.wzn-item.is-unread:hover {
  background: rgba(255, 51, 97, .11);
}

.wzn-item.is-unread:active {
  background: rgba(255, 51, 97, .15);
}

.wzn-item.is-unread::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--wzn-red);
}

.wzn-ic {
  --c: #ababab;
  --cb: rgba(171, 171, 171, .12);
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cb);
  color: var(--c);
}

.wzn-ic > svg.ic {
  display: block;
  width: 18px;
  height: 18px;
  color: inherit;
}

/* tür renkleri */
.k-deposit .wzn-ic { --c: #16c784; --cb: rgba(22, 199, 132, .13); }
.k-withdraw .wzn-ic { --c: #4ea8ff; --cb: rgba(78, 168, 255, .13); }
.k-receipt .wzn-ic { --c: #4ea8ff; --cb: rgba(78, 168, 255, .13); }
.k-balance .wzn-ic { --c: #2dd4bf; --cb: rgba(45, 212, 191, .12); }
.k-sport .wzn-ic { --c: #ff8a3d; --cb: rgba(255, 138, 61, .13); }
.k-bonus .wzn-ic { --c: #ffb020; --cb: rgba(255, 176, 32, .13); }
.k-vip .wzn-ic { --c: #ffb020; --cb: rgba(255, 176, 32, .13); }
.k-wheel .wzn-ic { --c: #b07cff; --cb: rgba(176, 124, 255, .14); }
.k-freespin .wzn-ic { --c: #ff3361; --cb: rgba(255, 51, 97, .13); }
.k-security .wzn-ic,
.k-kyc .wzn-ic,
.k-rg .wzn-ic { --c: #7c9cff; --cb: rgba(124, 156, 255, .13); }
.k-message .wzn-ic,
.k-announce .wzn-ic { --c: #ff6b8a; --cb: rgba(255, 107, 138, .12); }

/* uyarı/hata seviyesi türün rengini ezer (ör. reddedilen çekim → amber) */
.wzn-item.lv-warning .wzn-ic { --c: #ffb020; --cb: rgba(255, 176, 32, .13); }
.wzn-item.lv-error .wzn-ic { --c: #ff4d6d; --cb: rgba(255, 77, 109, .14); }

.wzn-tx {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.wzn-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wzn-t {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #d7dade;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wzn-item.is-unread .wzn-t {
  color: #fff;
  font-weight: 700;
}

.wzn-time {
  flex: 0 0 auto;
  color: var(--wzn-tx3);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.wzn-item.is-unread .wzn-time {
  color: #b9bcc3;
}

.wzn-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wzn-red);
  box-shadow: 0 0 0 3px rgba(255, 51, 97, .16);
}

.wzn-m {
  display: -webkit-box;
  overflow: hidden;
  color: var(--wzn-tx2);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wzn-item.is-unread .wzn-m {
  color: #c4c7cd;
}

.wzn-item.is-expanded .wzn-m {
  display: block;
  -webkit-line-clamp: unset;
}

/* ---------------- boş / hata / iskelet ---------------- */
.wzn-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 100%;
  box-sizing: border-box;
  padding: 40px 24px 44px;
  text-align: center;
}

.wzn-empty.is-unread,
.wzn-empty.is-cat {
  padding: 32px 24px;
}

.wzn-empty-ic {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 51, 97, .22), rgba(255, 51, 97, .07) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 51, 97, .2);
  color: var(--wzn-red);
}

.wzn-empty.is-unread .wzn-empty-ic {
  background: radial-gradient(circle at 50% 30%, rgba(22, 199, 132, .22), rgba(22, 199, 132, .07) 70%);
  box-shadow: inset 0 0 0 1px rgba(22, 199, 132, .2);
  color: #16c784;
}

.wzn-empty-ic > svg.ic {
  display: block;
  width: 26px;
  height: 26px;
}

.wzn-empty-t {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

.wzn-empty-s {
  max-width: 270px;
  margin: 0;
  color: var(--wzn-tx3);
  font-size: 13px;
  font-weight: 400;
  line-height: 19px;
}

.wzn-retry,
.wzn-more {
  height: 36px;
  margin: 10px 0 0;
  padding: 0 18px;
  border: 1px solid var(--wzn-edge);
  border-radius: 10px;
  background: var(--wzn-hover);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wzn-retry:hover,
.wzn-more:hover:not(:disabled) {
  border-color: var(--wzn-red);
}

/* "Tekrar giriş yap" (oturum düştü) bağlantısı, düğme görünümünde */
a.wzn-retry {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  color: #fff;
  line-height: 1;
  text-decoration: none;
}

a.wzn-retry:hover {
  color: #fff;
}

.wzn-sk {
  display: flex;
  gap: 12px;
  padding: 12px 10px 12px 12px;
}

.wzn-sks {
  padding-top: 6px;
}

.wzn-sk-ic {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 10px;
}

.wzn-sk-tx {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1 1 auto;
  padding-top: 4px;
}

.wzn-sk-tx > span {
  height: 10px;
  border-radius: 6px;
}

.wzn-sk-tx > span:first-child {
  width: 52%;
}

.wzn-sk-tx > span:last-child {
  width: 86%;
}

.wzn-sk-ic,
.wzn-sk-tx > span {
  background: linear-gradient(90deg, #2b2e34 0%, #363940 50%, #2b2e34 100%);
  background-size: 200% 100%;
  animation: wzn-sh 1.2s ease-in-out infinite;
}

/* ---------------- alt bağlantı ---------------- */
.wzn-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 46px;
  border-top: 1px solid var(--wzn-line);
  border-radius: 0 0 13px 13px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.wzn-foot:hover {
  background: var(--wzn-hover);
  color: #fff;
}

.wzn-foot > svg.ic {
  display: block;
  width: 11px;
  height: 11px;
  color: var(--wzn-red);
  transform: rotate(-90deg);
}

.wzn-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wzn-scrim {
  display: none;
}

/* ---------------- panel açıkken yüzen öğeler (html sınıflarını notif.js koyar) ----------------
   PWA kurulum / "Bildirimleri aç" kartı (.wzp-banner, z 9500, pwa.css) her modda; çevrim widget'ı (#rt-bonus, z 9998,
   realtime.js) mobil alt sayfada panelin üstüne biniyordu → panel kapanana dek gizlenir, sonra kendiliğinden geri gelir. */
html.wzn-open .wzp-banner,
html.wzn-lock #rt-bonus {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, visibility 0s linear .12s;
}

/* Gerçek zamanlı toast'lar (#rt-toasts, z 99999, sağ üst) panel başlığını örtüyordu: masaüstünde panelin soluna kayar
   (wzn-toast-side; --wzn-toast-r/-w JS'ten), yer yoksa ve alt sayfada panel kapanana dek bekletilir — yeni bildirim
   zaten listenin en üstüne düşer; süresi dolmamış toast panel kapanınca görünür. */
html.wzn-open #rt-toasts {
  visibility: hidden;
}

html.wzn-open.wzn-toast-side #rt-toasts {
  visibility: visible;
  right: var(--wzn-toast-r, 16px);
  max-width: var(--wzn-toast-w, 340px);
}

html.wzn-open #rt-toasts .rt-toast {
  transform: translateY(-8px);
}

html.wzn-open #rt-toasts .rt-toast.show {
  transform: none;
}

@keyframes wzn-sh {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes wzn-spin {
  to { transform: rotate(360deg); }
}

/* ---------------- mobil: tam boy alt sayfa ---------------- */
@media (max-width: 767px) {
  /* JS taşımadan önce (sayfa ayrıştırılırken) başlık içinde görünmesin */
  .bell > .wzn {
    display: none;
  }

  .wzn-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 995;
    background: rgba(8, 9, 11, .64);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
    -webkit-tap-highlight-color: transparent;
  }

  .wzn-scrim.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, visibility 0s;
  }

  body > .wzn {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 996;
    width: 100%;
    max-width: none;
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px - env(safe-area-inset-top, 0px));
    max-height: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-width: 1px 0 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .5);
    opacity: 1;
    transform: translateY(100%);
    transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s;
  }

  body > .wzn.is-open {
    transform: none;
    transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s;
  }

  body > .wzn::before {
    display: none;
  }

  .wzn .wzn-grab {
    display: block;
    flex: 0 0 auto;
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 99px;
    background: #3a3d44;
  }

  .wzn .wzn-head {
    padding: 8px 10px 12px 16px;
  }

  .wzn .wzn-ttl h2 {
    font-size: 18px;
    line-height: 24px;
  }

  .wzn .wzn-close {
    display: grid;
    width: 36px;
    height: 36px;
    margin-left: 4px;
    border-radius: 10px;
    background: var(--wzn-hover);
    color: #fff;
  }

  .wzn .wzn-close > svg.ic {
    width: 18px;
    height: 18px;
  }

  .wzn .wzn-chip {
    height: 32px;
    font-size: 13px;
  }

  .wzn .wzn-body {
    min-height: 0;
  }

  .wzn .wzn-item {
    padding: 12px 10px 12px 12px;
  }

  .wzn .wzn-foot {
    height: 52px;
    border-radius: 0;
  }

  html.wzn-lock,
  html.wzn-lock body {
    overflow: hidden !important;
    overscroll-behavior: none;
  }
}

/* küçük telefonlar: başlık + metin düğmesi + 2 ikon sığsın */
@media (max-width: 359px) {
  .wzn .wzn-refresh {
    display: none;
  }

  .wzn .wzn-read {
    padding: 0 6px;
    font-size: 12px;
  }

  .wzn .wzn-head {
    gap: 4px;
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wzn,
  .wzn.is-open,
  body > .wzn,
  body > .wzn.is-open,
  .wzn-scrim,
  .wzn-scrim.is-open {
    transition: none;
  }

  .wzn-sk-ic,
  .wzn-sk-tx > span,
  .wzn-icbtn.is-spin > svg.ic {
    animation: none;
  }
}

/* =====================================================================
   /notifications sayfası — aynı satır tasarımı, tam metin, sayfalama
   ===================================================================== */
.wzn-page.prf-card {
  padding: 0;
  overflow: visible;
}

.wzn-page-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.wzn-page .wzn-chips {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.wzn-page .wzn-read {
  flex: 0 0 auto;
}

.wzn-page .wzn-body {
  min-height: 240px;
  overflow: visible;
  padding: 0 8px 8px;
}

.wzn-page .wzn-day {
  position: static;
  background: transparent;
}

.wzn-page .wzn-m {
  display: block;
  -webkit-line-clamp: unset;
}

.wzn-page .wzn-item {
  padding: 12px 12px 12px 14px;
}

.wzn-page-more {
  display: flex;
  justify-content: center;
  padding: 0 16px 18px;
}

.wzn-page-more[hidden] {
  display: none;
}

.wzn-more:disabled {
  opacity: .6;
  cursor: default;
}

@media (max-width: 767px) {
  .wzn-page-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .wzn-page .wzn-read {
    align-self: flex-start;
    padding: 0 4px;
  }

  .wzn-page .wzn-body {
    padding: 0 4px 6px;
  }

  .wzn-page .wzn-item {
    padding: 12px 10px 12px 12px;
  }
}

/* =====================================================================
   Bildirim silme (notifdel 2026-11-03) — satır çöp kutusu, "Tümünü sil" + sayfa içi onay, "Geri al" çubuğu.
   Masaüstü (fare): çöp kutusu satırın üstüne gelince / klavye odağında zamanın yerinde belirir.
   Dokunmatik: hep görünür küçük ikon (zaman satırının sağında yer ayrılır). Davranış: public/js/notif.js.
   ===================================================================== */
.wzn-li {
  position: relative;
}

.wzn-del {
  position: absolute;
  top: 6px;
  right: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ababab;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .12s ease, background-color .12s ease, color .12s ease;
}

.wzn-del > svg.ic {
  display: block;
  width: 16px;
  height: 16px;
}

.wzn-del:hover {
  background: rgba(255, 51, 97, .12);
  color: #ff3361;
}

.wzn-del:active {
  background: rgba(255, 51, 97, .2);
}

.wzn-del:focus-visible {
  outline: 2px solid #ff3361;
  outline-offset: -2px;
}

/* dokunmatik (varsayılan): ikon hep görünür → üst satırda (başlık · zaman · nokta) ona yer ayrılır.
   36px: dokunulunca beliren 32px kırmızı kutu okunmamış noktasına (8px + 3px hale) değmesin — en az 8px boşluk (düzeltme 2026-11-03) */
.wzn-li .wzn-top {
  padding-right: 36px;
}

/* fare: zaman/nokta yerinde, yalnız üstüne gelince / odakta */
@media (hover: hover) and (pointer: fine) {
  .wzn-li .wzn-top {
    padding-right: 0;
  }

  .wzn-del {
    opacity: 0;
  }

  .wzn-li:hover .wzn-del,
  .wzn-del:focus-visible {
    opacity: 1;
  }

  .wzn-li:hover .wzn-time,
  .wzn-li:hover .wzn-dot {
    visibility: hidden;
  }

  /* klavye: satır ya da çöp kutusu odaktayken (ayrı kural — :has desteklemeyen tarayıcı diğer kuralları bozmasın) */
  .wzn-li:has(:focus-visible) .wzn-del {
    opacity: 1;
  }

  .wzn-li:has(:focus-visible) .wzn-time,
  .wzn-li:has(:focus-visible) .wzn-dot {
    visibility: hidden;
  }

  /* :has yoksa: odaklı çöp kutusu zamanın üstünü örtsün */
  .wzn-del:focus-visible {
    background: #2e3137;
  }
}

/* panel satırı (masaüstü) 10px iç boşluklu → ikon üst satırla hizalı */
.wzn .wzn-del {
  top: 4px;
}

.wzn-page .wzn-del {
  top: 6px;
  right: 6px;
}

/* kaldırma animasyonu: yükseklik → 0, sağa kayarak solar (JS önce yüksekliği sabitler) */
.wzn-li.is-out {
  overflow: hidden;
  height: 0 !important;
  margin-bottom: -2px;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: height .22s cubic-bezier(.2, .8, .2, 1) .06s, margin .22s ease .06s, opacity .16s ease, transform .2s ease;
}

/* tümü silinince odak boş durum alanına gider (programatik; halka gerekmez) */
.wzn-page-list[tabindex="-1"]:focus {
  outline: none;
}

.wzn-empty.is-cleared .wzn-empty-ic {
  background: radial-gradient(circle at 50% 30%, rgba(22, 199, 132, .22), rgba(22, 199, 132, .07) 70%);
  box-shadow: inset 0 0 0 1px rgba(22, 199, 132, .2);
  color: #16c784;
}

/* ---------------- panel alt satırı: [Tümünü sil | Tüm bildirimleri gör] ---------------- */
.wzn-footrow {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  border-top: 1px solid var(--wzn-line, #2e3137);
  border-radius: 0 0 13px 13px;
}

.wzn-footrow > .wzn-foot {
  flex: 1 1 auto;
  min-width: 0;
  border-top: 0;
}

.wzn-footrow > .wzn-delall:not([hidden]) + .wzn-foot {
  border-radius: 0 0 13px 0;
}

.wzn-delall {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid var(--wzn-line, #2e3137);
  border-radius: 0 0 0 13px;
  background: transparent;
  color: var(--wzn-tx2, #ababab);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}

.wzn-delall[hidden] {
  display: none;
}

.wzn-delall > svg.ic,
.wzn-delall-txt > svg.ic {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.wzn-delall:hover,
.wzn-delall[aria-expanded="true"] {
  background: rgba(255, 51, 97, .08);
  color: #ff6b8a;
}

.wzn-delall:focus-visible {
  outline: 2px solid #ff3361;
  outline-offset: -2px;
}

/* ---------------- /notifications: "Tümünü okundu say" + "Tümünü sil" ---------------- */
.wzn-page-acts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.wzn-page .wzn-delall-txt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wzn-tx2, #ababab);
}

.wzn-page .wzn-delall-txt[hidden] {
  display: none;
}

.wzn-page .wzn-delall-txt:hover,
.wzn-page .wzn-delall-txt[aria-expanded="true"] {
  background: rgba(255, 51, 97, .08);
  color: #ff6b8a;
}

/* ---------------- sayfa içi onay (window.confirm değil) ---------------- */
.wzn-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  flex: 0 0 auto;
  margin: 10px 12px;
  padding: 12px;
  border: 1px solid rgba(255, 51, 97, .3);
  border-radius: 12px;
  background: #1a1c20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  animation: wzn-cf-in .18s ease;
}

.wzn-confirm-ic {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 51, 97, .12);
  color: #ff3361;
}

.wzn-confirm-ic > svg.ic {
  display: block;
  width: 18px;
  height: 18px;
}

.wzn-confirm-tx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 180px;
  min-width: 0;
  padding-top: 1px;
}

.wzn-confirm-t {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
}

.wzn-confirm-s {
  color: #9a9ea6;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 17px;
}

.wzn-confirm-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 0 100%;
}

.wzn-cbtn {
  height: 34px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #3a3d44;
  border-radius: 9px;
  background: #2e3137;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}

.wzn-cbtn:hover {
  border-color: #4a4e57;
  background: #33363d;
}

.wzn-cbtn.is-danger {
  border-color: #ff003a;
  background: #ff003a;
}

.wzn-cbtn.is-danger:hover {
  border-color: #ff2a5a;
  background: #ff2a5a;
}

.wzn-cbtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.wzn-page .wzn-confirm {
  margin: 0 16px 12px;
}

@media (min-width: 768px) {
  /* sayfada yer var: tek satır */
  .wzn-page .wzn-confirm {
    flex-wrap: nowrap;
    align-items: center;
  }

  .wzn-page .wzn-confirm-acts {
    flex: 0 0 auto;
  }
}

/* ---------------- "Bildirim silindi · Geri al" ---------------- */
.wzn-undo {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  min-width: 280px;
  max-width: calc(100vw - 32px);
  height: 46px;
  margin: 0;
  padding: 0 6px 0 14px;
  overflow: hidden;
  border: 1px solid #3a3d44;
  border-radius: 12px;
  background: #2e3137;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);
  color: #fff;
  font-family: inherit;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.wzn-undo.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

/* "Tümünü sil" onayı açıkken bekletilir (süre durur) */
.wzn-undo.is-on.is-held {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* panel açıkken panelin içinde, alt satırın hemen üstünde */
.wzn > .wzn-undo {
  position: absolute;
  bottom: 58px;
  min-width: 0;
  width: calc(100% - 24px);
}

/* çubuk görünürken liste altına yer: son satır / boş durum metni çubuğun altında kalmaz */
.wzn.has-undo .wzn-body {
  padding-bottom: 62px;
}

.wzn-undo-ic {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ababab;
}

.wzn-undo-ic > svg.ic {
  display: block;
  width: 16px;
  height: 16px;
}

.wzn-undo-t {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wzn-undo-btn {
  flex: 0 0 auto;
  height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ff3361;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.wzn-undo-btn:hover {
  background: rgba(255, 51, 97, .12);
}

.wzn-undo-btn:focus-visible {
  outline: 2px solid #ff3361;
  outline-offset: -2px;
}

.wzn-undo-btn[hidden] {
  display: none;
}

.wzn-undo.is-msg {
  padding-right: 14px;
}

/* kalan süre çizgisi (üstüne gelince / odakta durur) */
.wzn-undo::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #ff3361;
  transform-origin: left center;
  opacity: .8;
}

.wzn-undo.is-on::after {
  animation: wzn-undo-t var(--wzn-undo-ms, 5000ms) linear forwards;
}

.wzn-undo.is-msg::after {
  display: none;
}

.wzn-undo.is-paused::after,
.wzn-undo.is-held::after,
.wzn-undo:hover::after,
.wzn-undo:focus-within::after {
  animation-play-state: paused;
}

@keyframes wzn-undo-t {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes wzn-cf-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  /* mobil alt menü hapının (45px + 4px + güvenli alan) üstünde */
  body > .wzn-undo {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 24px);
    min-width: 0;
  }

  .wzn > .wzn-undo {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .wzn .wzn-footrow {
    border-radius: 0;
  }

  .wzn .wzn-footrow > .wzn-foot,
  .wzn .wzn-delall {
    border-radius: 0;
  }

  .wzn .wzn-delall {
    padding: 0 18px;
    font-size: 13.5px;
  }

  .wzn .wzn-del {
    top: 6px;
  }

  .wzn-page .wzn-confirm {
    margin: 0 12px 12px;
  }

  .wzn-page-acts {
    align-self: flex-start;
    flex-wrap: wrap;
  }

  .wzn-page .wzn-delall-txt {
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wzn-li.is-out,
  .wzn-undo,
  .wzn-undo.is-on,
  .wzn-del {
    transition: none;
  }

  .wzn-confirm {
    animation: none;
  }

  .wzn-undo::after {
    display: none;
  }
}

/* ---------------- promosyon bildirimleri (promonotif 2026-11-03) ----------------
   Yönetim → Promosyon Bildirimleri: isteğe bağlı küçük görsel (ikon yerine) + buton yazısı (satırın bağlantısı).
   public/js/notif.js itemHTML: .wzn-ic.has-img > img, .wzn-cta, .wzn-item.is-promo */
.wzn-ic.has-img {
  overflow: hidden;
  background: #1a1c20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.wzn-ic.has-img > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wzn-cta {
  align-self: flex-start;
  display: inline-block;
  max-width: 100%;
  margin-top: 5px;
  padding: 5px 11px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 51, 97, .14);
  color: #ff6b8a;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color .12s, color .12s;
}

.wzn-item:hover .wzn-cta,
.wzn-item:focus-visible .wzn-cta {
  background: #ff003a;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .wzn-cta {
    transition: none;
  }
}
