/* Ortak bildirim sistemi: toast + onay/uyarı penceresi (site ve yönetim paneli aynı kodu kullanır) */
:root {
  --ui-bg: #1c1b24; --ui-ink: #f4f2f7; --ui-dim: #a9a6b6; --ui-line: rgba(244, 242, 247, .14);
  --ui-accent: #9b60ea; --ui-accent-ink: #0e0e11; --ui-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --ui-ok: #4cc38a; --ui-err: #ff6b7d; --ui-warn: #f5b84d; --ui-info: #9b60ea;
}
/* yönetim paneli (açık tema) */
.admin-body { --ui-bg: #ffffff; --ui-ink: #23232e; --ui-dim: #6c6f7d; --ui-line: #e4e5ee; --ui-accent-ink: #ffffff; --ui-shadow: 0 18px 50px rgba(20, 20, 40, .22); --ui-ok: #1f9d63; --ui-err: #d6314e; --ui-warn: #c98a12; }

/* ---------- toast ---------- */
.ui-toasts { position: fixed; top: 1rem; right: 1rem; z-index: 99990; display: grid; gap: .6rem; width: min(380px, calc(100vw - 2rem)); pointer-events: none; }
.ui-toast { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: start; padding: .9rem .9rem .95rem; background: var(--ui-bg); color: var(--ui-ink); border: 1px solid var(--ui-line); border-radius: 14px; box-shadow: var(--ui-shadow); overflow: hidden; pointer-events: auto; opacity: 0; transform: translateX(24px) scale(.97); transition: opacity .35s, transform .45s cubic-bezier(.2, .9, .3, 1.15); font: 500 .93rem/1.45 var(--body, var(--font, 'Inter', sans-serif)); }
.ui-toast.is-in { opacity: 1; transform: none; }
.ui-toast.is-out { opacity: 0; transform: translateX(24px) scale(.97); transition-duration: .25s; }
.ui-toast__ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--tc); background: color-mix(in srgb, var(--tc) 16%, transparent); flex: none; }
.ui-toast__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.ui-toast.is-in .ui-toast__ico svg { animation: uiDraw .5s .15s ease-out forwards; }
.ui-toast__txt strong { display: block; font-weight: 700; margin-bottom: .1rem; }
.ui-toast__txt span { color: var(--ui-dim); }
.ui-toast__txt strong + span { display: block; }
.ui-toast:not(:has(strong)) .ui-toast__txt span { color: var(--ui-ink); }
.ui-toast__x { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--ui-dim); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.ui-toast__x:hover { background: color-mix(in srgb, var(--ui-ink) 10%, transparent); color: var(--ui-ink); }
.ui-toast__x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.ui-toast__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--tc) 18%, transparent); }
.ui-toast__bar i { display: block; height: 100%; width: 100%; background: var(--tc); transform-origin: left; animation: uiBar var(--dur, 4s) linear forwards; }
.ui-toast:hover .ui-toast__bar i { animation-play-state: paused; }
.ui-toast--success { --tc: var(--ui-ok); } .ui-toast--error { --tc: var(--ui-err); } .ui-toast--warn { --tc: var(--ui-warn); } .ui-toast--info { --tc: var(--ui-info); }
@keyframes uiBar { to { transform: scaleX(0); } }
@keyframes uiDraw { to { stroke-dashoffset: 0; } }
@media (max-width: 560px) { .ui-toasts { top: .7rem; right: .7rem; left: .7rem; width: auto; } }

/* ---------- onay / uyarı penceresi ---------- */
.ui-ov { position: fixed; inset: 0; z-index: 99995; display: grid; place-items: center; padding: 1rem; background: rgba(10, 10, 18, .55); backdrop-filter: blur(0); opacity: 0; transition: opacity .25s, backdrop-filter .3s; }
.ui-ov.is-in { opacity: 1; backdrop-filter: blur(6px); }
.ui-dlg { width: min(420px, 100%); background: var(--ui-bg); color: var(--ui-ink); border: 1px solid var(--ui-line); border-radius: 18px; padding: 1.6rem 1.5rem 1.3rem; box-shadow: var(--ui-shadow); text-align: center; transform: translateY(22px) scale(.95); transition: transform .45s cubic-bezier(.2, .9, .3, 1.2); font-family: var(--body, var(--font, 'Inter', sans-serif)); }
.ui-ov.is-in .ui-dlg { transform: none; }
.ui-dlg__ico { width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.ui-dlg__ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ui-ov.is-in .ui-dlg__ico { animation: uiPop .55s .1s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes uiPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ui-dlg h3 { font: 700 1.25rem/1.25 var(--display, var(--font, 'Inter', sans-serif)); letter-spacing: -.02em; margin-bottom: .45rem; }
.ui-dlg p { color: var(--ui-dim); font-size: .95rem; line-height: 1.55; margin-bottom: 1.3rem; }
.ui-dlg__btns { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.ui-btn { flex: 1 1 130px; padding: .8rem 1.1rem; border-radius: 99px; border: 1px solid var(--ui-line); background: transparent; color: var(--ui-ink); font: 600 .93rem/1 var(--body, var(--font, 'Inter', sans-serif)); cursor: pointer; transition: filter .2s, border-color .2s, background .2s; }
.ui-btn:hover { border-color: var(--ui-ink); }
.ui-btn--main { background: var(--tc); border-color: var(--tc); color: #fff; }
.ui-btn--main:hover { filter: brightness(1.1); border-color: var(--tc); }
.ui-dlg--danger { --tc: var(--ui-err); } .ui-dlg--warn { --tc: var(--ui-warn); } .ui-dlg--info { --tc: var(--ui-info); } .ui-dlg--success { --tc: var(--ui-ok); }
.ui-btn:focus-visible { outline: 2px solid var(--tc, var(--ui-accent)); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ui-toast, .ui-ov, .ui-dlg { transition: none; } .ui-toast__bar i { animation-duration: 1ms; } .ui-toast.is-in .ui-toast__ico svg { animation: none; stroke-dashoffset: 0; } .ui-ov.is-in .ui-dlg__ico { animation: none; } }

/* Çerez bildirimi */
.ck { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; width: min(26rem, calc(100vw - 2rem)); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s; }
.ck.is-on { opacity: 1; transform: none; }
.ck[hidden] { display: none; }
.ck h2 { font: 600 1rem/1.3 var(--display); margin-bottom: .35rem; }
.ck p { font-size: .86rem; line-height: 1.55; color: var(--dim); margin-bottom: .9rem; }
.ck p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ck__b { display: flex; gap: .55rem; }
.ck__b .btn { flex: 1; justify-content: center; }
@media (max-width: 600px) { .ck { left: .6rem; right: .6rem; bottom: .6rem; width: auto; padding: 1rem; } }

/* Yasal sayfalar */
.legal { max-width: 52rem; }
.legal h2 { font: 600 1.35rem/1.3 var(--display); margin: 2.2rem 0 .7rem; }
.legal p, .legal li { color: var(--dim); font-size: 1rem; }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .45rem; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal__date { font-size: .85rem; margin-top: 2rem; }
.legal__tbl { overflow-x: auto; margin-bottom: 1.2rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 34rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); color: var(--dim); }
.legal th { color: var(--ink); font-weight: 600; }
.ftr__legal { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; }
.ftr__legal a { color: var(--dim); }
.ftr__legal a:hover { color: var(--ink); }
.lead__note a, .qm__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
