/* ═══════════════════════════════════════════════════════════
   buMeet Tasarım Sistemi — tokenlar, tipografi, bileşenler
   ═══════════════════════════════════════════════════════════ */

/* ── Fontlar (kendi sunucumuzda, harici istek yok) ── */
@font-face { font-family: 'Sora'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/fonts/sora-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/fonts/sora-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jakarta'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jakarta'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jakarta'; font-style: italic; font-display: swap; font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-wght-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+2000-206F; }
@font-face { font-family: 'Jakarta'; font-style: italic; font-display: swap; font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-ext-wght-italic.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F; }

/* ── Tokenlar: koyu tema (varsayılan) ── */
:root {
  color-scheme: dark;
  --bg: #07080e;
  --bg-2: #0b0c15;
  --surface: #11121c;
  --surface-2: #171925;
  --surface-3: #1f2130;
  --surface-4: #282b3c;
  --overlay: rgba(6, 7, 12, .72);
  --line: rgba(255, 255, 255, .065);
  --line-2: rgba(255, 255, 255, .11);
  --line-3: rgba(255, 255, 255, .18);
  --text: #eceef8;
  --text-2: #a7aac4;
  --text-3: #6f7392;
  --text-inv: #0b0c14;
  --brand: #7c6cff;
  --brand-2: #3fd0f2;
  --brand-soft: rgba(124, 108, 255, .14);
  --brand-line: rgba(124, 108, 255, .42);
  --grad: linear-gradient(135deg, #8b6cff 0%, #5b6cff 52%, #22d3ee 100%);
  --grad-text: linear-gradient(100deg, #b4a2ff 0%, #8b9cff 45%, #5fe3f7 100%);
  --ok: #34d399; --ok-soft: rgba(52, 211, 153, .14);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .14);
  --danger: #ff5c7a; --danger-soft: rgba(255, 92, 122, .14);
  --info: #60a5fa; --info-soft: rgba(96, 165, 250, .14);
  --away: #f5b544; --dnd: #ff5c7a; --online: #34d399; --offline: #5b5f7a;
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, .5);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .75), 0 0 0 1px var(--line);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px var(--line-2);
  --glow: 0 0 0 1px rgba(124, 108, 255, .35), 0 8px 30px -8px rgba(124, 108, 255, .55);
  --r-xs: 8px; --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --font: 'Jakarta', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', 'Jakarta', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t: .18s var(--ease);
  --rail: 76px; --side: 288px; --panel: 340px; --top: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

/* ── Açık tema ── */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5fb; --bg-2: #eceef7; --surface: #ffffff; --surface-2: #f6f7fc; --surface-3: #eceef6; --surface-4: #e1e4ef;
  --overlay: rgba(20, 22, 40, .42);
  --line: rgba(17, 19, 40, .08); --line-2: rgba(17, 19, 40, .13); --line-3: rgba(17, 19, 40, .22);
  --text: #12131f; --text-2: #4f5372; --text-3: #8a8eaa; --text-inv: #fff;
  --brand: #6247f5; --brand-2: #0fb5d6; --brand-soft: rgba(98, 71, 245, .1); --brand-line: rgba(98, 71, 245, .38);
  --grad-text: linear-gradient(100deg, #6a47f5 0%, #4f5bf0 50%, #0fb5d6 100%);
  --shadow-sm: 0 2px 8px -2px rgba(30, 30, 70, .14);
  --shadow: 0 18px 50px -20px rgba(30, 30, 70, .28), 0 0 0 1px var(--line);
  --shadow-lg: 0 40px 90px -30px rgba(30, 30, 70, .38), 0 0 0 1px var(--line-2);
  --offline: #a6a9bf;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"])[data-theme="system"] {
    color-scheme: light;
    --bg: #f4f5fb; --bg-2: #eceef7; --surface: #ffffff; --surface-2: #f6f7fc; --surface-3: #eceef6; --surface-4: #e1e4ef;
    --overlay: rgba(20, 22, 40, .42);
    --line: rgba(17, 19, 40, .08); --line-2: rgba(17, 19, 40, .13); --line-3: rgba(17, 19, 40, .22);
    --text: #12131f; --text-2: #4f5372; --text-3: #8a8eaa; --text-inv: #fff;
    --brand: #6247f5; --brand-2: #0fb5d6; --brand-soft: rgba(98, 71, 245, .1); --brand-line: rgba(98, 71, 245, .38);
    --grad-text: linear-gradient(100deg, #6a47f5 0%, #4f5bf0 50%, #0fb5d6 100%);
    --shadow-sm: 0 2px 8px -2px rgba(30, 30, 70, .14);
    --shadow: 0 18px 50px -20px rgba(30, 30, 70, .28), 0 0 0 1px var(--line);
    --shadow-lg: 0 40px 90px -30px rgba(30, 30, 70, .38), 0 0 0 1px var(--line-2);
    --offline: #a6a9bf;
  }
}

/* ── Sıfırlama ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font: 400 14.5px/1.55 var(--font); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
p { margin: 0; }
::selection { background: rgba(124, 108, 255, .35); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kaydırma çubukları */
* { scrollbar-width: thin; scrollbar-color: var(--surface-4) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--line-3); }
::-webkit-scrollbar-track { background: transparent; }

/* ── İkonlar ── */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; } .i-xs { width: 14px; height: 14px; } .i-lg { width: 24px; height: 24px; } .i-xl { width: 32px; height: 32px; }

/* ── Marka ── */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.035em; color: var(--text); text-decoration: none !important; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand b { font-weight: 700; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand span { font-weight: 400; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Butonlar ── */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 18px;
  border-radius: var(--r-sm); font-weight: 600; font-size: 14px; white-space: nowrap; user-select: none;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2);
  transition: background var(--t), border-color var(--t), transform .12s var(--ease), box-shadow var(--t), opacity var(--t);
  text-decoration: none !important; position: relative;
}
.btn:hover { background: var(--surface-4); border-color: var(--line-3); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 24px -10px rgba(110, 90, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.08) saturate(1.05); border-color: transparent; box-shadow: 0 12px 30px -10px rgba(110, 90, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); border-color: transparent; }
.btn-outline { background: transparent; }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn-danger:hover { background: #ff4468; border-color: transparent; }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-danger-soft:hover { background: rgba(255, 92, 122, .22); border-color: transparent; }
.btn-ok { background: var(--ok); color: #05261a; border-color: transparent; }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-xs { --h: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; gap: 6px; }
.btn-lg { --h: 50px; padding: 0 24px; font-size: 15px; border-radius: var(--r); }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--text-2);
  transition: background var(--t), color var(--t), transform .12s var(--ease); flex: none; position: relative;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.is-active { background: var(--brand-soft); color: var(--brand); }
.icon-btn-sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn .badge-dot { position: absolute; top: 5px; right: 5px; }

/* ── Form öğeleri ── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field + .field { margin-top: 14px; }
.label { font-size: 12.5px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hint { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--line-2); color: var(--text); transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
.input.mono { font-family: var(--mono); letter-spacing: .04em; }
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .i { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.input-wrap > .input { padding-left: 42px; }
.input-wrap > .icon-btn { position: absolute; right: 4px; }
.input-wrap > .input:has(+ .icon-btn) { padding-right: 46px; }
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.row { display: flex; gap: 12px; } .row > * { flex: 1; min-width: 0; }
.row.field { flex-direction: row; }
.row > .field + .field { margin-top: 0; }
@media (max-width: 480px) { .row, .row.field { flex-direction: column; gap: 14px; } }
.form-error { color: var(--danger); background: var(--danger-soft); border: 1px solid rgba(255, 92, 122, .25); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.form-ok { color: var(--ok); background: var(--ok-soft); border: 1px solid rgba(52, 211, 153, .25); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; display: flex; gap: 8px; }

/* Anahtar (switch) */
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: var(--surface-4); position: relative; transition: background var(--t); flex: none; border: 1px solid var(--line-2); }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .22s var(--ease-spring); }
.switch input:checked + .track { background: var(--brand); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--brand-soft); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .t { font-weight: 600; font-size: 14px; }
.switch-row .d { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* Segment kontrol */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: var(--t); display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--text); }
.seg button.is-active { background: var(--surface-4); color: var(--text); box-shadow: var(--shadow-sm); }
.range { width: 100%; accent-color: var(--brand); }

/* ── Kart / rozet ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 20px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--bg-2); }
kbd { font: 600 11px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--text-2); }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.muted { color: var(--text-2); } .dim { color: var(--text-3); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.mono { font-family: var(--mono); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hstack { display: flex; align-items: center; gap: 10px; }

/* ── Avatar (GIF destekli, sabit boyut, kırpılmış) ── */
.av {
  --s: 40px; --ac: #7c6cff;
  width: var(--s); height: var(--s); border-radius: 30%; flex: none; position: relative; display: grid; place-items: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--ac) 90%, #fff 10%), color-mix(in srgb, var(--ac) 60%, #000 40%));
  color: #fff; font: 700 calc(var(--s) * .4) / 1 var(--font-display); letter-spacing: -.02em; user-select: none;
}
/* Görsel kutuya mutlak olarak sabitlenir: dikey/yatay/dev GIF ne olursa olsun avatar alanının dışına taşamaz */
.av > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; border-radius: inherit; image-rendering: auto; }
.av.round { border-radius: 50%; }
.av-xs { --s: 22px; } .av-sm { --s: 30px; } .av-md { --s: 40px; } .av-lg { --s: 56px; } .av-xl { --s: 88px; } .av-2xl { --s: 128px; }
.av .st { position: absolute; z-index: 1; right: -2px; bottom: -2px; width: calc(var(--s) * .3); height: calc(var(--s) * .3); min-width: 10px; min-height: 10px; max-width: 16px; max-height: 16px; border-radius: 50%; background: var(--offline); border: 2.5px solid var(--st-bg, var(--surface)); }
.av .st.online { background: var(--online); }
.av .st.away { background: var(--away); }
.av .st.dnd { background: var(--dnd); }
.av .st.dnd::after { content: ''; position: absolute; inset: 40% 22%; background: var(--st-bg, var(--surface)); border-radius: 2px; }
.ac-violet { --ac: #8b6cff; } .ac-indigo { --ac: #6366f1; } .ac-cyan { --ac: #06b6d4; } .ac-teal { --ac: #14b8a6; }
.ac-emerald { --ac: #10b981; } .ac-amber { --ac: #f59e0b; } .ac-rose { --ac: #f43f5e; } .ac-pink { --ac: #ec4899; }

/* ── Yükleniyor ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-3); border-top-color: var(--brand); animation: spin .7s linear infinite; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }
.center-fill { display: grid; place-items: center; min-height: 200px; }

/* ── Modal ── */
.modal-root { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: var(--overlay); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade-in .16s var(--ease); }
.modal {
  width: min(100%, 480px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: pop-in .24s var(--ease); overflow: hidden;
}
.modal-wide { width: min(100%, 720px); }
.modal-xl { width: min(100%, 980px); }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 6px; }
.modal-head h2 { font-size: 19px; }
.modal-head p { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }
.modal-head .icon-btn { margin: -6px -6px 0 auto; }
.modal-body { padding: 16px 22px; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.modal-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.modal-icon.danger { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 560px) {
  .modal-root { place-items: end center; padding: 0; }
  .modal, .modal-wide, .modal-xl { width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; animation: slide-up .26s var(--ease); padding-bottom: var(--safe-b); }
}

/* ── Bildirim (toast) ── */
.toasts { position: fixed; z-index: 1100; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; max-width: calc(100vw - 40px); }
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; min-width: 280px; max-width: 400px; padding: 13px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg); animation: pop-in .26s var(--ease-spring); font-size: 13.5px;
}
.toast .ti { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.toast.ok .ti { background: var(--ok-soft); color: var(--ok); }
.toast.error .ti { background: var(--danger-soft); color: var(--danger); }
.toast.warn .ti { background: var(--warn-soft); color: var(--warn); }
.toast .tt { font-weight: 650; }
.toast .td { color: var(--text-2); font-size: 12.5px; margin-top: 1px; overflow-wrap: anywhere; }
.toast .ta { display: flex; gap: 8px; margin-top: 9px; }
.toast.out { animation: fade-in .2s reverse forwards; }
@media (max-width: 560px) { .toasts { left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); align-items: stretch; } .toast { min-width: 0; max-width: none; } }

/* ── Menü / açılır ── */
.menu {
  position: fixed; z-index: 1050; min-width: 210px; max-width: 300px; padding: 6px; border-radius: 14px; background: var(--surface-2);
  box-shadow: var(--shadow-lg); animation: pop-in .14s var(--ease); max-height: 70vh; overflow-y: auto;
}
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--text); text-align: left; }
.menu-item .i { width: 18px; height: 18px; color: var(--text-2); }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-4); outline: none; }
.menu-item.danger, .menu-item.danger .i { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger-soft); }
.menu-item .kbd { margin-left: auto; font-size: 11px; color: var(--text-3); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.menu-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px 4px; }

/* Araç ipucu */
[data-tip] { position: relative; }
@media (hover: hover) {
  [data-tip]:hover::after, [data-tip]:focus-visible::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 60;
    background: #000; color: #fff; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none;
    animation: fade-in .12s .25s both; box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  }
  [data-tip-pos="right"]:hover::after { left: calc(100% + 10px); bottom: auto; top: 50%; transform: translateY(-50%); }
  [data-tip-pos="bottom"]:hover::after { bottom: auto; top: calc(100% + 8px); }
}

/* Sekmeler */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 42px; padding: 0 14px; font-size: 13.5px; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-color: var(--brand); }

/* Boş durum */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 40px 20px; color: var(--text-2); }
.empty .ei { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.empty .ei .i { width: 30px; height: 30px; }
.empty h3 { color: var(--text); font-size: 17px; }
.empty p { max-width: 360px; font-size: 13.5px; }

/* Kopyalanabilir kod kutusu */
.code-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-3); font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.code-box .truncate { flex: 1; }

/* ── Konsol / devtools uyarı katmanı ── */
.guard-overlay { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: rgba(5, 6, 10, .94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 24px; text-align: center; }
.guard-overlay .card { max-width: 440px; padding: 32px; }
.guard-overlay h2 { margin: 14px 0 8px; }
.guard-overlay p { color: var(--text-2); }
.announce { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #fff; background: var(--grad); text-align: center; }
.announce .icon-btn { color: #fff; width: 26px; height: 26px; }

/* Hata sayfası */
body.err { display: grid; place-items: center; min-height: 100vh; text-align: center; }
body.err h1 { font-size: 72px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.err p { color: var(--text-2); margin: 8px 0 20px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.brand .wm { display: inline; white-space: nowrap; }
