/* ==========================================================================
   Raginward paneli — cam görünüm katmanı
   app.css'in üstüne yüklenir (yalnızca panel ve giriş sayfaları; tanıtım sitesi etkilenmez).
   Koyu zemin, arkada her sayfada yer değiştiren parlak küreler, buzlu cam kartlar, tek mavi vurgu.
   ========================================================================== */

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/outfit-latin.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: "Outfit"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/outfit-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --sidebar-w: 232px;
  --gap-edge: 14px;
  --blur: blur(26px) saturate(150%);
}

:root, [data-theme="dark"] {
  --bg: #05070b;
  --bg-2: #0d1118;
  --solid: #11151d;
  --surface: rgba(14, 18, 26, .62);
  --surface-2: rgba(255, 255, 255, .045);
  --surface-3: rgba(255, 255, 255, .09);
  --glass-strong: rgba(20, 25, 35, .86);
  --border: rgba(255, 255, 255, .075);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #f1f3f7;
  --text-2: #b6bdca;
  --muted: #7d8697;
  --primary: #1f6fff;
  --primary-2: #4b8dff;
  --primary-soft: rgba(31, 111, 255, .16);
  --primary-text: #8db4ff;
  --grad: linear-gradient(180deg, #3a83ff, #1f6fff);
  --success: #33d17a;
  --success-soft: rgba(51, 209, 122, .14);
  --danger: #ff5b57;
  --danger-soft: rgba(255, 91, 87, .14);
  --warning: #f5b13d;
  --warning-soft: rgba(245, 177, 61, .14);
  --info: #4b8dff;
  --info-soft: rgba(75, 141, 255, .14);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--border-strong);
  --glow: 0 0 0 1px rgba(64, 136, 255, .5), 0 0 32px rgba(31, 111, 255, .22);
  --btn-glow: 0 8px 20px rgba(31, 111, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .28);
  --toast-bg: #ecebe6;
  --toast-fg: #15171b;
}

[data-theme="light"] {
  --bg: #e9edf3;
  --bg-2: #ffffff;
  --solid: #ffffff;
  --surface: rgba(255, 255, 255, .62);
  --surface-2: rgba(15, 23, 42, .04);
  --surface-3: rgba(15, 23, 42, .08);
  --glass-strong: rgba(255, 255, 255, .88);
  --border: rgba(15, 23, 42, .08);
  --border-strong: rgba(15, 23, 42, .15);
  --text: #10141b;
  --text-2: #3f4756;
  --muted: #6c7484;
  --primary-soft: rgba(31, 111, 255, .11);
  --primary-text: #1c5fe0;
  --success: #17a35a; --success-soft: rgba(23, 163, 90, .12);
  --danger: #e0403b; --danger-soft: rgba(224, 64, 59, .1);
  --warning: #c27a10; --warning-soft: rgba(194, 122, 16, .13);
  --info: #1c5fe0; --info-soft: rgba(28, 95, 224, .1);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -18px rgba(15, 23, 42, .25);
  --shadow-lg: 0 30px 80px -20px rgba(15, 23, 42, .3), 0 0 0 1px var(--border);
  --glow: 0 0 0 1px rgba(31, 111, 255, .4), 0 0 28px rgba(31, 111, 255, .15);
  --toast-bg: #15181e;
  --toast-fg: #f1f3f7;
}

body { font-size: 14px; letter-spacing: 0; transition: background-color .5s var(--ease); }
body::before { display: none; }
::selection { background: rgba(31, 111, 255, .35); }
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
h2 { font-weight: 600; }
h3 { font-weight: 500; font-size: 14.5px; }
code, kbd, pre { font-size: 12px; }

/* ── Küreler ────────────────────────────────────────────────────────────
   Her sayfa grubu kendi yerleşimini seçer (.orbs[data-layout]). Yeni sayfa önceki sayfanın
   yerleşimiyle çizilir, sonra küreler CSS geçişiyle yeni yerlerine süzülür (app.php'deki küçük betik).
   Görünüm geçişi (view-transition-name) bilerek kullanılmıyor: geçiş sırasında küreler ayrı
   katmanda çizildiği için kartların arkasında bir an keskin görünüyorlardı. */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; left: 0; top: 0; width: calc(var(--s) * var(--k, 1)); height: calc(var(--s) * var(--k, 1)); border-radius: 50%; transform: translate(var(--x), var(--y)); }
.orb i { position: absolute; inset: 0; border-radius: 50%; }
.orbs.glide .orb { transition: transform 1.3s var(--ease), width 1.3s var(--ease), height 1.3s var(--ease); }
.orb.o1 i { background: radial-gradient(circle at 34% 28%, #f6c46a 0%, #d68a27 30%, #9c5a12 62%, #4b2706 100%); }
.orb.o2 i { background: radial-gradient(circle at 70% 30%, #4f8dff 0%, #1d5cf0 35%, #0b2f9c 70%, #061848 100%); }
.orb.o3 i { background: radial-gradient(circle at 40% 28%, #9af0b8 0%, #2fc56c 34%, #12803f 68%, #07391c 100%); }
.orb.o4 i { background: radial-gradient(circle at 38% 30%, #b8f4ff 0%, #36c6e8 32%, #0d8fb6 66%, #04445a 100%); }
.orb.o5 i { background: radial-gradient(circle at 36% 28%, #ffffff 0%, #c5cfdd 32%, #7d8ba1 66%, #2f3747 100%); }
[data-theme="light"] .orb { opacity: .9; }

/* Varsayılan yerleşim (genel bakış) */
.o1 { --x: 74vw; --y: -14vh; --s: 260px; }
.o2 { --x: -10vw; --y: 38vh; --s: 360px; }
.o3 { --x: 46vw; --y: 90vh; --s: 120px; }
.o4 { --x: 85vw; --y: 72vh; --s: 380px; }
.o5 { --x: 96vw; --y: 30vh; --s: 70px; }
/* Posta kutusu, kayıtlar */
.orbs[data-layout="mail"] .o1 { --x: 62vw; --y: -22vh; --s: 240px; }
.orbs[data-layout="mail"] .o2 { --x: -6vw; --y: 16vh; --s: 300px; }
.orbs[data-layout="mail"] .o3 { --x: 54vw; --y: 90vh; --s: 160px; }
.orbs[data-layout="mail"] .o4 { --x: 82vw; --y: 62vh; --s: 420px; }
.orbs[data-layout="mail"] .o5 { --x: 30vw; --y: 94vh; --s: 80px; }
/* Kurallar, hesaplar, sağlayıcılar, kolektif */
.orbs[data-layout="tools"] .o1 { --x: 68vw; --y: -20vh; --s: 230px; }
.orbs[data-layout="tools"] .o2 { --x: -8vw; --y: 56vh; --s: 260px; }
.orbs[data-layout="tools"] .o3 { --x: 50vw; --y: 88vh; --s: 200px; }
.orbs[data-layout="tools"] .o4 { --x: 88vw; --y: 52vh; --s: 360px; }
.orbs[data-layout="tools"] .o5 { --x: 12vw; --y: 6vh; --s: 70px; }
/* Hesap: abonelik, faturalar, profil, yönetim faturaları */
.orbs[data-layout="account"] .o1 { --x: 70vw; --y: -18vh; --s: 250px; }
.orbs[data-layout="account"] .o2 { --x: -14vw; --y: 30vh; --s: 440px; }
.orbs[data-layout="account"] .o3 { --x: 42vw; --y: 90vh; --s: 160px; }
.orbs[data-layout="account"] .o4 { --x: 78vw; --y: 58vh; --s: 400px; }
.orbs[data-layout="account"] .o5 { --x: 94vw; --y: 40vh; --s: 90px; }
/* Kullanıcılar, ayarlar */
.orbs[data-layout="admin"] .o1 { --x: 78vw; --y: -16vh; --s: 220px; }
.orbs[data-layout="admin"] .o2 { --x: -10vw; --y: 58vh; --s: 320px; }
.orbs[data-layout="admin"] .o3 { --x: 36vw; --y: 90vh; --s: 180px; }
.orbs[data-layout="admin"] .o4 { --x: 86vw; --y: 64vh; --s: 300px; }
.orbs[data-layout="admin"] .o5 { --x: 95vw; --y: 26vh; --s: 60px; }

/* Sayfa geçişi: küreler ve menüdeki seçim kayarak taşınır, içerik yumuşakça değişir */
::view-transition-group(root) { animation-duration: .22s; }
::view-transition-group(nav-pill) { animation-duration: .4s; animation-timing-function: var(--spring); }

/* ── Kabuk ─────────────────────────────────────────────────────────────── */
.sidebar {
  inset: var(--gap-edge) auto var(--gap-edge) var(--gap-edge); width: var(--sidebar-w); padding: 14px 10px 10px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: width .5s var(--ease), transform .45s var(--ease);
}
.brand { display: flex; align-items: center; padding: 2px 6px 12px; gap: 8px; min-height: 48px; }
.brand-link { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); }
.brand-link:hover { text-decoration: none; }
.brand-img { height: 36px; transition: width .5s var(--ease); }
.side-collapse { margin-left: auto; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-2); cursor: pointer; flex: none; transition: background .2s, transform .5s var(--ease); }
.side-collapse:hover { background: var(--surface-3); color: var(--text); }
.side-collapse .ico { width: 17px; height: 17px; }
.nav { margin: 0 -10px; padding: 0 10px; gap: 2px; }
.nav-label { font-size: 10.5px; letter-spacing: .07em; padding: 12px 10px 5px; transition: opacity .25s; white-space: nowrap; }
.nav-item { padding: 0 10px; height: 36px; border-radius: 12px; gap: 11px; white-space: nowrap; transition: background .2s, color .2s; }
.nav-item span { transition: opacity .25s; }
.nav-item:hover { transform: none; background: var(--surface-2); }
.nav-item.active { background: var(--grad); color: #fff; box-shadow: var(--btn-glow); view-transition-name: nav-pill; }
.nav-item.active::before { display: none; }
.nav-item.active .ico { color: #fff; }
.sidebar-foot { border-top: 0; padding-top: 6px; }
.user-chip { border-radius: 14px; background: var(--surface-2); padding: 8px; white-space: nowrap; }
.user-chip .avatar { border-radius: 50%; }

.main { margin-left: calc(var(--sidebar-w) + var(--gap-edge)); transition: margin-left .5s var(--ease); }
.topbar { background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 18px 24px 6px; position: relative; }
.page-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.page-title { font-size: 22px; font-weight: 500; letter-spacing: -.015em; }
.page-sub { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.page-sub:empty { display: none; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; animation: live-ping 2.4s infinite; }
@keyframes live-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.topbar .icon-btn, .topbar .lang-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: transform .3s var(--spring), border-color .2s, color .2s;
}
.topbar .lang-btn { width: auto; padding: 0 12px; border-radius: 19px; }
.topbar .icon-btn:hover, .topbar .lang-btn:hover { transform: translateY(-1px); border-color: var(--border-strong); background: var(--surface); }
.search-trigger { height: 38px; border-radius: 19px; background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.bell-dot { background: var(--primary); border: 2px solid var(--bg); top: -3px; right: -3px; }
.content { padding: 14px 24px 48px; gap: 16px; }

/* Daraltılmış menü: yalnızca ikonlar, üzerine gelince ipucu */
@media (min-width: 901px) {
  html.side-mini { --sidebar-w: 68px; }
  html.side-mini .nav-label, html.side-mini .nav-item span, html.side-mini .user-meta, html.side-mini .user-chip form { opacity: 0; pointer-events: none; }
  html.side-mini .nav-label { height: 8px; padding: 0; overflow: hidden; }
  html.side-mini .brand { flex-direction: column; align-items: center; gap: 10px; padding: 2px 0 12px; }
  html.side-mini .brand-img { width: 34px; height: 34px; object-fit: cover; object-position: left center; }
  html.side-mini .brand-tag { display: none; }
  html.side-mini .side-collapse { margin: 0; transform: rotate(180deg); }
  html.side-mini .user-chip { background: none; padding: 6px 0; justify-content: center; }
  html.side-mini .user-chip .avatar { margin-left: 7px; }
}
.side-tip {
  position: fixed; z-index: 60; padding: 5px 9px; border-radius: 8px; font-size: 12px; background: #f3f4f7; color: #12151b; pointer-events: none;
  opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .2s var(--ease); box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.side-tip.show { opacity: 1; transform: none; }

/* ── Kartlar ───────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border-color: var(--border); border-radius: var(--radius-lg); padding: 16px 18px;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: border-color .3s, box-shadow .35s, transform .35s var(--ease);
  animation-name: glass-rise; animation-duration: .55s; animation-delay: calc(var(--i, 0) * 45ms); animation-fill-mode: backwards;
}
/* Kapsayıcıda kalıcı opacity animasyonu, Chrome'da kartların blur'unu kürelerden koparır (backdrop root olur). */
.page-enter { animation: none; }
.card:hover { border-color: var(--border-strong); }
.card.glow { background: var(--surface); border: 1px solid rgba(64, 136, 255, .6); box-shadow: var(--glow); }
@keyframes glass-rise { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
.card-head h3 .ico { color: var(--text-2); }
.kpi::after { display: none; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi .kpi-value { font-weight: 500; font-size: 30px; letter-spacing: -.02em; }
.kpi .kpi-label { color: var(--text-2); }
.hero h2, .portal-hero h2 { font-weight: 500; letter-spacing: -.02em; }
.section-head h2 { font-weight: 500; }
.link { color: var(--primary-2); transition: gap .25s var(--ease); }
.link:hover { gap: 8px; text-decoration: none; }
.sys-row, .acc-card .acc-stats div, .bayes-stats div, .svc-facts div, .credit-preview div, .check, .test-step, .method, .card-sub, .brand-upload, .plan-summary > div, .svc-admin-row { background: var(--surface-2); }
.quick { background: var(--surface-2); border-color: var(--border); }
.quick:hover { border-color: rgba(64, 136, 255, .7); box-shadow: var(--glow); }
.acc-card:hover { transform: translateY(-2px); box-shadow: none; border-color: var(--border-strong); }
.flow-step.accent { background: var(--grad); }
.conf-ring::before { background: var(--solid); }

/* ── Butonlar ──────────────────────────────────────────────────────────── */
.btn { border-radius: 12px; font-weight: 500; transition: transform .3s var(--spring), box-shadow .25s, background .2s, border-color .2s, opacity .2s, filter .2s; }
.btn:active { transform: scale(.96); }
.btn-primary { --b-bg: var(--grad); border-radius: 19px; box-shadow: var(--btn-glow); background-size: 100% 100%; }
.btn-primary:hover { background: var(--grad); filter: brightness(1.07); box-shadow: 0 12px 26px rgba(31, 111, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .28); transform: translateY(-1px); }
.btn-primary.btn-sm { border-radius: 15px; }
.btn-soft:hover { background: rgba(31, 111, 255, .24); }
.btn-sm { border-radius: 10px; }
.btn-lg { border-radius: 22px; }
.icon-btn { border-radius: 10px; transition: background .2s, color .2s, transform .3s var(--spring); }

/* ── Formlar ───────────────────────────────────────────────────────────── */
.field input, .field select, .field textarea, .select, .add-row textarea, .input-icon input, .dur-custom input {
  border-radius: 12px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.switch input:checked + .track { background: #2fca62; }
.switch .track::after { transition: transform .45s var(--spring); }
input[type="checkbox"], .option-card input, .plan-option input { accent-color: var(--primary); }

/* Kayan seçim: segmented ve sekmeler (konum JS ile ölçülür, yoksa eski görünüm kalır) */
.segmented { position: relative; border-radius: 16px; background: var(--surface-2); border-color: transparent; padding: 3px; }
.segmented button { border-radius: 13px; position: relative; z-index: 1; transition: color .25s; }
.segmented.has-knob button.active { background: transparent; box-shadow: none; }
.seg-knob { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 13px; background: var(--surface-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .45s var(--spring), width .45s var(--spring); pointer-events: none; }
.tabs { position: relative; }
.tabs.has-ink button.active::after { display: none; }
.tab-ink { position: absolute; left: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--primary); transition: transform .45s var(--spring), width .45s var(--spring); pointer-events: none; }
.tabs button.active::after { background: var(--primary); }

/* ── Tablo / listeler ─────────────────────────────────────────────────── */
.table th { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 400; }
.table tbody tr:hover { background: var(--surface-2); }
.mail-row.active { background: var(--primary-soft); }
.mail-row.active::before, .mail-row.unread::after { background: var(--primary); }
.pager button { background: var(--surface-2); border-color: var(--border); border-radius: 10px; }
.pager button.active { background: var(--grad); }
.preview-frame { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.rule-item:hover { background: var(--surface-2); }
.dot.clean { background: var(--primary-2); }
.meter span, .stage-bar .fill, .progress .bar, .usage-bar span { background: var(--grad); }
.stage-bar .track, .meter, .progress, .usage-bar { background: var(--surface-3); }
.pulse { background: var(--primary); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 111, 255, .55); } 70% { box-shadow: 0 0 0 10px rgba(31, 111, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 111, 255, 0); } }
@keyframes pulse-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 111, 255, .6); } 50% { box-shadow: 0 0 0 5px rgba(31, 111, 255, 0); } }
.chart .gridline { stroke: var(--border-strong); }

/* ── Yüzen paneller: cam ──────────────────────────────────────────────── */
.modal, .palette, .notif-pop, .dropdown-menu, .chart-tip {
  background: var(--glass-strong); border: 1px solid var(--border-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.modal { border-radius: 22px; }
.modal-backdrop { background: rgba(2, 4, 8, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.palette { border-radius: 20px; }
.palette li.active { background: var(--primary-soft); }
.notif-pop { border-radius: 18px; }
.notif.unread { background: var(--primary-soft); }

/* Bildirimler: altta ortada açık renkli hap; tıklayınca kapanır */
.toasts { left: 50%; right: auto; bottom: 22px; transform: translateX(-50%); align-items: center; }
.toast {
  background: var(--toast-bg); color: var(--toast-fg); border: 0; border-radius: 16px; min-width: 320px; max-width: min(520px, calc(100vw - 32px));
  padding: 10px 8px 10px 16px; align-items: center; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); overflow: hidden;
  animation: toast-up .55s var(--spring) both;
}
.toast .grow small { color: color-mix(in srgb, var(--toast-fg) 60%, transparent); }
.toast .icon-btn { color: inherit; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--toast-fg) 8%, transparent); }
.toast .icon-btn:hover { background: color-mix(in srgb, var(--toast-fg) 15%, transparent); color: inherit; }
.toast.success .ico { color: #22a35a; }
.toast.out { animation: toast-down .3s ease both; }
@keyframes toast-up { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-down { to { opacity: 0; transform: translateY(24px); } }

/* ── Giriş ve kurulum sayfaları ───────────────────────────────────────── */
.guest-bg span { filter: none; opacity: 1; animation: none; }
.guest-bg span:nth-child(1) { width: 300px; height: 300px; top: -90px; left: auto; right: 8vw; background: radial-gradient(circle at 34% 28%, #f6c46a 0%, #d68a27 30%, #9c5a12 62%, #4b2706 100%); }
.guest-bg span:nth-child(2) { width: 420px; height: 420px; bottom: -150px; right: -110px; background: radial-gradient(circle at 38% 30%, #b8f4ff 0%, #36c6e8 32%, #0d8fb6 66%, #04445a 100%); animation-duration: 14s; }
.guest-bg span:nth-child(3) { width: 340px; height: 340px; top: 34%; left: -140px; background: radial-gradient(circle at 70% 30%, #4f8dff 0%, #1d5cf0 35%, #0b2f9c 70%, #061848 100%); animation-duration: 10s; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.auth-brand h1 { font-weight: 500; }
.guest-home { background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: 19px; }

/* ── Duyarlı ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { inset: 10px auto 10px 10px; transform: translateX(calc(-100% - 20px)); box-shadow: var(--shadow-lg); background: var(--glass-strong); }
  .main { margin-left: 0; }
  .side-collapse { display: none; }
  .topbar { padding: 14px 16px 4px; }
  .content { padding: 12px 16px 40px; }
  .page-title { font-size: 19px; }
  .orbs { --k: .55; }
  .toast { min-width: 0; width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .orbs.glide .orb { transition: none; }
  .live-dot { animation: none; }
  .card { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  :root, [data-theme="dark"] { --surface: #10141c; --glass-strong: #141922; }
  [data-theme="light"] { --surface: #ffffff; --glass-strong: #ffffff; }
}
.segmented button { font-weight: 500; }
.segmented button.active { color: var(--text); }
.tabs button { font-weight: 500; }

/* Masaüstünde menü düğmesi gizli; yalnızca dar ekranda */
.topbar .only-mobile { display: none; }
@media (max-width: 900px) { .topbar .only-mobile { display: inline-grid; } }
@media (max-width: 560px) { .page-sub { display: none; } .topbar .icon-btn[href] { display: none; } }

/* Yönetici etiketi logonun yanında sığsın */
.brand-link { overflow: hidden; }
.brand-img { max-width: 158px; }
.brand-tag { flex: none; }

/* Daraltılmış menüde kullanıcı satırı */
@media (min-width: 901px) {
  html.side-mini .user-meta, html.side-mini .user-chip form { display: none; }
  html.side-mini .user-chip .avatar { margin: 0; }
}

/* Yüzen bantlar okunur kalsın */
.cookie-bar { background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.maint-bar { background: color-mix(in srgb, var(--warning) 18%, var(--solid)); }
.empty .btn .ico { width: 16px; height: 16px; stroke-width: 2; color: inherit; }
.toast .icon-btn .ico { color: inherit; }

/* Kartın dışında kalan nesneler de arkasını bulanıklaştırsın (küre altlarından geçtiğinde) */
:is(.segmented, .btn:not(.btn-primary), .select, .input-icon input, .presets button, .dur-chip span, .search-trigger):not(.card *, .modal *, .palette *, .notif-pop *, .dropdown-menu *) {
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
:is(.btn-soft, .btn-ghost, .btn-danger, .btn-success):not(.card *, .modal *) { background-color: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn-soft:not(.card *, .modal *) { background-image: linear-gradient(var(--primary-soft), var(--primary-soft)); }
.tabs:not(.card *) { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 6px; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.content > .empty, .content > section > .empty, .content > div > .empty:only-child {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
/* Araç çubuğu ile altındaki kart/tablo arasında nefes payı (ör. Kayıtlar) */
section > .toolbar, .content > .toolbar { margin-bottom: 14px; }
section > .toolbar + .card, section > .toolbar + .tabs { margin-top: 0; }
