.cerez {
  position: fixed; left: 22px; bottom: 22px; z-index: 950;
  width: min(460px, calc(100% - 44px));
  display: grid; gap: 10px; padding: 20px 22px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  animation: cerez-gir .35s cubic-bezier(.22,1,.36,1) both;
  transition: opacity .25s, transform .25s;
}
.cerez-kapandi { opacity: 0; transform: translateY(12px); }
.cerez-baslik { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); }
.cerez-metin { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cerez-metin a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cerez-dugmeler { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 6px; }

.cerez-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 9px 14px; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, filter .2s;
}
.cerez-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cerez-btn-ana { background: var(--accent); color: var(--on-accent, var(--accent-ink, #fff)); border-color: var(--accent); }
.cerez-btn-ana:hover { filter: brightness(1.08); }
.cerez-btn-ikincil { background: transparent; color: var(--text); border-color: var(--line-strong); }
.cerez-btn-ikincil:hover { border-color: var(--accent); color: var(--accent); }

.cerez-acik { overflow: hidden; }
.cerez-perde {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 16px;
  background: rgba(8, 10, 14, .55);
  animation: cerez-sol .2s ease-out both;
}
.cerez-pencere {
  width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  animation: cerez-gir .3s cubic-bezier(.22,1,.36,1) both;
}
.cerez-pencere-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cerez-pencere-baslik { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); }
.cerez-kapat { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.cerez-kapat:hover { border-color: var(--accent); color: var(--accent); }
.cerez-pencere-govde { padding: 18px 22px; overflow-y: auto; display: grid; gap: 14px; }
.cerez-kategori { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.cerez-kategori-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cerez-kategori-ad { font-weight: 600; font-size: 15px; color: var(--text); cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cerez-rozet { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.cerez-kategori-aciklama { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.cerez-pencere-alt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 22px; border-top: 1px solid var(--line); }

.cerez-anahtar { position: relative; flex: none; width: 46px; height: 26px; }
.cerez-anahtar input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cerez-anahtar input:disabled { cursor: not-allowed; }
.cerez-anahtar-iz { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background-color .2s; }
.cerez-anahtar-iz::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.cerez-anahtar input:checked + .cerez-anahtar-iz { background: var(--accent); }
.cerez-anahtar input:checked + .cerez-anahtar-iz::after { transform: translateX(20px); }
.cerez-anahtar input:disabled + .cerez-anahtar-iz { opacity: .55; }
.cerez-anahtar input:focus-visible + .cerez-anahtar-iz { outline: 2px solid var(--accent); outline-offset: 2px; }

.cerez-tercih-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.cerez-tercih-btn:hover { color: var(--accent); }

@keyframes cerez-gir { from { opacity: 0; transform: translateY(16px); } }
@keyframes cerez-sol { from { opacity: 0; } }

@media (max-width: 560px) {
  .cerez { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px; }
  .cerez-pencere-alt { grid-template-columns: 1fr; }
  .cerez-perde { padding: 0; place-items: end stretch; }
  .cerez-pencere { width: 100%; border-radius: var(--radius-sm) var(--radius-sm) 0 0; max-height: 92vh; max-height: 92dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .cerez, .cerez-perde, .cerez-pencere { animation: none; transition: none; }
}
