/* ==========================================================================
   DARK & BLOOD · Belediye paneli — tasarım sistemi
   Derleme adımı yok: tek dosya, yerel yazı tipleri, sıfır dış bağımlılık.

   1  Yazı tipleri ve değişkenler      6  Tablo
   2  Temel                            7  Rozet, avatar, küçük parçalar
   3  İskelet (kenar çubuğu, üst bar)  8  Pencere, çekmece, bildirim, palet
   4  Düğme ve form                    9  Sayfaya özel bölümler
   5  Kart, istatistik, ızgara        10  Hareket ve duyarlı kurallar
   ========================================================================== */

/* 1 ─ Yazı tipleri ve değişkenler ───────────────────────────────────────── */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../fonts/cinzel-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../fonts/cinzel-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: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-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; }

:root {
  color-scheme: dark;

  /* yüzeyler: mürekkep siyahından mora çalan dört kat */
  --bg: #09080d;
  --bg-side: #0d0b13;
  --s1: #13111b;
  --s2: #1a1725;
  --s3: #231f31;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);

  --text: #f3f0f8;
  --text-2: #b9b2c9;
  --text-3: #837c97;

  /* marka: kan kırmızısı + mum altını */
  --blood: #e5484d;
  --blood-2: #c22f3a;
  --blood-soft: rgba(229, 72, 77, .13);
  --gold: #f2b84b;
  --gold-soft: rgba(242, 184, 75, .13);

  --ok: #3dd68c;      --ok-soft: rgba(61, 214, 140, .13);
  --warn: #f5a524;    --warn-soft: rgba(245, 165, 36, .13);
  --danger: #ff6369;  --danger-soft: rgba(255, 99, 105, .13);
  --info: #70b8ff;    --info-soft: rgba(112, 184, 255, .13);
  --violet: #b197fc;  --violet-soft: rgba(177, 151, 252, .14);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --side-w: 256px;
  --top-h: 60px;
  --pad: 28px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 18px 48px -12px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .4);
  --ring: 0 0 0 3px rgba(229, 72, 77, .28);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 120ms;
  --t: 200ms;
  --t-slow: 360ms;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
}

/* 2 ─ Temel ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #2e2940 transparent; scrollbar-width: thin; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 400 14px/1.5 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Arka plan: üstte sönük kızıl ay ışığı, altta soğuk mor — sabit, tek boyama. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(229, 72, 77, .10), transparent 62%),
    radial-gradient(760px 520px at 8% 108%, rgba(113, 86, 214, .09), transparent 60%);
}
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
::selection { background: rgba(229, 72, 77, .35); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2e2940; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: #3d3654; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }

.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.break { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.text-ok { color: var(--ok); } .text-warn { color: var(--warn); } .text-danger { color: var(--danger); }
.text-gold { color: var(--gold); } .text-violet { color: var(--violet); } .text-info { color: var(--info); }
.fw-600 { font-weight: 600; }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }

.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); min-width: 0; }
.stack-sm { --gap: 8px; } .stack-lg { --gap: 24px; }
.row { display: flex; align-items: center; gap: var(--gap, 10px); min-width: 0; }
.row-wrap { flex-wrap: wrap; }
.row-top { align-items: flex-start; }
.spread { justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }
.ml-auto { margin-left: auto; }

/* 3 ─ İskelet ───────────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100dvh; }
html.side-collapsed .app { --side-w: 72px; }

.side {
  position: sticky; top: 0; height: 100dvh; z-index: 40;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #100d17, var(--bg-side));
  border-right: 1px solid var(--line);
  view-transition-name: side;
}
.side-brand { display: flex; align-items: center; gap: 12px; height: var(--top-h); padding: 0 18px; flex: none; }
.brand-mark {
  width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(150deg, #f0555a, #8f1622);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 8px 22px -8px rgba(229, 72, 77, .8);
  color: #fff3d6;
}
.brand-mark .icon { width: 20px; height: 20px; stroke-width: 1.9; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font: 700 15px/1 var(--font-display); letter-spacing: .14em; color: var(--gold); }
.brand-text span { margin-top: 5px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }

.side-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 12px 16px; scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
.nav-label { display: block; margin: 16px 10px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px;
  height: 36px; padding: 0 10px; margin-bottom: 2px; border-radius: var(--r-sm);
  color: var(--text-2); font-weight: 500; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-item:hover { background: var(--s2); color: var(--text); }
.nav-item .icon { color: var(--text-3); transition: color var(--t-fast); }
.nav-item:hover .icon { color: var(--text-2); }
.nav-item.is-active { color: #fff; background: linear-gradient(90deg, rgba(229, 72, 77, .2), rgba(229, 72, 77, .04)); }
.nav-item.is-active .icon { color: var(--blood); }
.nav-item.is-active::before {
  content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--blood); box-shadow: 0 0 12px var(--blood);
  view-transition-name: nav-active;
}
.nav-item span.grow { overflow: hidden; text-overflow: ellipsis; }
.nav-count { margin-left: auto; min-width: 20px; padding: 0 6px; height: 18px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--blood-soft); color: #ff9a9d; }
.nav-count.is-gold { background: var(--gold-soft); color: var(--gold); }

.side-foot { flex: none; padding: 12px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.user-chip .info { min-width: 0; flex: 1; line-height: 1.25; }
.user-chip .info strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .info span { font-size: 11.5px; color: var(--text-3); }

html.side-collapsed .brand-text, html.side-collapsed .nav-label, html.side-collapsed .nav-item span,
html.side-collapsed .user-chip .info, html.side-collapsed .side-foot .btn-icon[data-logout] { display: none; }
html.side-collapsed .nav-item { justify-content: center; padding: 0; }
html.side-collapsed .side-brand { justify-content: center; padding: 0; }
html.side-collapsed .user-chip { justify-content: center; padding: 6px; background: none; border-color: transparent; }
html.side-collapsed .nav-count { position: absolute; top: 4px; right: 8px; min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; background: var(--blood); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h); flex: none;
  display: flex; align-items: center; gap: 12px; padding: 0 var(--pad);
  background: rgba(9, 8, 13, .78); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.crumb .faint { font-weight: 500; }
.search-trigger {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px 0 12px; margin-left: auto;
  min-width: 240px; border-radius: 10px; border: 1px solid var(--line); background: var(--s1); color: var(--text-3);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.search-trigger:hover { border-color: var(--line-2); background: var(--s2); color: var(--text-2); }
.search-trigger kbd { margin-left: auto; }
kbd { padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--s2); font: 500 11px var(--font); color: var(--text-2); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--s1); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.live-pill strong { color: var(--text); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.is-ok { background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 214, 140, .6); animation: pulse 2.2s infinite; }
.dot.is-warn { background: var(--warn); } .dot.is-danger { background: var(--danger); }
.dot.is-live { background: var(--blood); box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: pulse-red 1.4s infinite; }

.page { width: 100%; max-width: 1600px; margin: 0 auto; padding: var(--pad); display: flex; flex-direction: column; gap: 22px; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.page-title { font: 700 26px/1.15 var(--font-display); letter-spacing: .02em; }
.page-sub { margin-top: 6px; color: var(--text-2); max-width: 70ch; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; margin-bottom: 8px; }
.back-link:hover { color: var(--text); }

.scrim { display: none; }

/* 4 ─ Düğme ve form ─────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--s2); --btn-fg: var(--text); --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t), filter var(--t-fast);
  user-select: none; text-decoration: none; flex: none;
}
.btn:hover { --btn-bg: var(--s3); }
.btn:active { transform: scale(.975); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { --btn-bg: linear-gradient(180deg, #ec5459, #c9323c); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .14); box-shadow: 0 10px 24px -12px rgba(229, 72, 77, .9), 0 1px 0 rgba(255, 255, 255, .22) inset; }
.btn-primary:hover { --btn-bg: linear-gradient(180deg, #f2666a, #d23a44); filter: brightness(1.04); }
.btn-gold { --btn-bg: linear-gradient(180deg, #f6c765, #d99a2b); --btn-fg: #201503; --btn-bd: rgba(255, 255, 255, .2); }
.btn-gold:hover { --btn-bg: linear-gradient(180deg, #f9d27f, #e2a53a); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--text-2); }
.btn-ghost:hover { --btn-bg: var(--s2); --btn-fg: var(--text); }
.btn-outline { --btn-bg: transparent; }
.btn-danger { --btn-bg: var(--danger-soft); --btn-fg: #ff8d91; --btn-bd: rgba(255, 99, 105, .3); }
.btn-danger:hover { --btn-bg: rgba(255, 99, 105, .22); --btn-fg: #ffb1b4; }
.btn-ok { --btn-bg: var(--ok-soft); --btn-fg: var(--ok); --btn-bd: rgba(61, 214, 140, .3); }
.btn-ok:hover { --btn-bg: rgba(61, 214, 140, .22); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; gap: 6px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.field-label .opt { font-weight: 400; color: var(--text-3); }
.field-hint { font-size: 12px; color: var(--text-3); }
.field-error { font-size: 12px; color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 38px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #0f0d16; color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blood); box-shadow: var(--ring); background: #110e19; }
.input[readonly], .input:disabled, .select:disabled { opacity: .6; cursor: not-allowed; }
.input.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23837c97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.select option { background: #15121d; }
.input-sm, .select-sm { min-height: 32px; padding: 4px 10px; font-size: 13px; border-radius: 8px; }
.select-sm { padding-right: 30px; }
input[type='number'].input { font-variant-numeric: tabular-nums; }
input[type='date'].input, input[type='datetime-local'].input { color-scheme: dark; }
input[type='file'].input { padding: 6px; }
input[type='file']::file-selector-button { margin-right: 10px; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--s2); color: var(--text); font-weight: 600; font-size: 12px; cursor: pointer; }

/* simgeli girdi (arama) */
.input-icon { position: relative; display: flex; align-items: center; min-width: 0; }
.input-icon > .icon { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; }
.input-icon > .input { padding-left: 38px; }

/* onay kutusu / anahtar */
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.35; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-2); background: #0f0d16; display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast); cursor: pointer; }
.check input::after { content: ''; width: 10px; height: 10px; background: #fff; clip-path: polygon(14% 52%, 0 66%, 40% 100%, 100% 22%, 86% 10%, 39% 70%); transform: scale(0); transition: transform var(--t-fast) var(--ease); }
.check input:checked { background: var(--blood); border-color: var(--blood); }
.check input:checked::after { transform: scale(1); }
.check input:disabled { opacity: .45; cursor: not-allowed; }
.check small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; line-height: 1.35; }
.switch input[type='checkbox'] { appearance: none; position: relative; width: 38px; height: 22px; margin: 0; border-radius: 99px; background: #2a2538; border: 1px solid var(--line-2); transition: background var(--t); cursor: pointer; flex: none; }
.switch input[type='checkbox']::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #c9c3d8; transition: transform var(--t) var(--ease), background var(--t); }
.switch input[type='checkbox']:checked { background: var(--blood); border-color: transparent; }
.switch input[type='checkbox']:checked::after { transform: translateX(16px); background: #fff; }

/* dilimli seçim (radyo hapları) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 11px; background: #0f0d16; border: 1px solid var(--line); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); transition: background var(--t-fast), color var(--t-fast); white-space: nowrap; }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { background: var(--s3); color: #fff; box-shadow: 0 0 0 1px var(--line-2) inset; }
.seg input:focus-visible + span { box-shadow: var(--ring); }
.seg.is-danger input:checked + span { background: var(--blood-soft); color: #ff9a9d; box-shadow: 0 0 0 1px rgba(229, 72, 77, .4) inset; }

.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* araç çubuğu: arama büyür, düğmeler kendi boyunda kalır */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar > .input-icon, .toolbar > .toolbar-grow { flex: 1 1 260px; }
.toolbar .select { width: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--s1); color: var(--text-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.is-active { background: var(--blood-soft); border-color: rgba(229, 72, 77, .4); color: #ffb0b3; }
.chip b { font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip.is-active b { color: inherit; }

/* 5 ─ Kart, istatistik, ızgara ──────────────────────────────────────────── */
.card { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--s1), #110f18); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; min-width: 0; }
.card-title .icon { color: var(--text-3); }
.card-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.card-body { padding: 20px; flex: 1 1 auto; min-width: 0; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-flush .card-body { padding: 0; }
.card.is-danger { border-color: rgba(255, 99, 105, .28); background: linear-gradient(180deg, rgba(255, 99, 105, .06), #110f18 60%); }
.card.is-gold { border-color: rgba(242, 184, 75, .28); background: linear-gradient(180deg, rgba(242, 184, 75, .06), #110f18 60%); }

.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-auto { grid-template-columns: repeat(auto-fill, minmax(var(--min, 240px), 1fr)); }
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.is-stretch { align-items: stretch; }
.split.is-stretch .bars { height: auto; min-height: 120px; flex: 1; }
.fill { display: flex; flex-direction: column; height: 100%; }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--s1), #110f18); min-width: 0;
  transition: border-color var(--t), transform var(--t) var(--ease);
}
a.stat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.stat.is-active { border-color: rgba(229, 72, 77, .45); box-shadow: 0 0 0 1px rgba(229, 72, 77, .25) inset; }
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(closest-side, var(--tone, rgba(255, 255, 255, .06)), transparent); opacity: .5; pointer-events: none; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.stat-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--tone-soft, var(--s2)); color: var(--tone-fg, var(--text-2)); flex: none; }
.stat-icon .icon { width: 16px; height: 16px; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-value.is-text { font-size: 17px; letter-spacing: 0; line-height: 1.25; overflow-wrap: anywhere; }
.stat-foot { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; min-height: 18px; }
.tone-blood { --tone: rgba(229, 72, 77, .35); --tone-soft: var(--blood-soft); --tone-fg: #ff8d91; }
.tone-gold { --tone: rgba(242, 184, 75, .35); --tone-soft: var(--gold-soft); --tone-fg: var(--gold); }
.tone-ok { --tone: rgba(61, 214, 140, .3); --tone-soft: var(--ok-soft); --tone-fg: var(--ok); }
.tone-info { --tone: rgba(112, 184, 255, .3); --tone-soft: var(--info-soft); --tone-fg: var(--info); }
.tone-violet { --tone: rgba(177, 151, 252, .32); --tone-soft: var(--violet-soft); --tone-fg: var(--violet); }
.tone-warn { --tone: rgba(245, 165, 36, .3); --tone-soft: var(--warn-soft); --tone-fg: var(--warn); }

.spark { width: 100%; height: 44px; overflow: visible; }
.spark path.line { fill: none; stroke: var(--tone-fg, var(--text-2)); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms var(--ease-out) 150ms forwards; }
.spark path.area { fill: var(--tone-soft, rgba(255, 255, 255, .05)); stroke: none; opacity: 0; animation: fade 500ms ease 600ms forwards; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.bars .bar { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; position: relative; }
.bars .bar i { display: block; border-radius: 4px 4px 2px 2px; min-height: 2px; transform-origin: bottom; animation: grow-y 600ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 28ms); }
.bars .bar i.up { background: var(--ok); opacity: .85; }
.bars .bar i.down { background: var(--blood); opacity: .85; }
.bars .bar:hover i { opacity: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }

/* anahtar-değer listesi */
.kv { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 0 16px; }
.kv > dt { padding: 9px 0; color: var(--text-3); font-size: 13px; border-bottom: 1px dashed var(--line); }
.kv > dd { padding: 9px 0; text-align: right; overflow-wrap: anywhere; border-bottom: 1px dashed var(--line); }
.kv > dt:last-of-type, .kv > dd:last-of-type { border-bottom: 0; }

/* boş durum */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 44px 20px; color: var(--text-2); }
.empty .icon { width: 34px; height: 34px; color: var(--text-3); margin-bottom: 4px; }
.empty strong { color: var(--text); font-size: 15px; }
.empty p { max-width: 46ch; font-size: 13px; }

/* uyarı kutusu */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--s1); font-size: 13px; color: var(--text-2); }
.alert .icon { margin-top: 1px; }
.alert strong { color: var(--text); }
.alert.is-warn { border-color: rgba(245, 165, 36, .35); background: var(--warn-soft); } .alert.is-warn .icon { color: var(--warn); }
.alert.is-danger { border-color: rgba(255, 99, 105, .35); background: var(--danger-soft); } .alert.is-danger .icon { color: var(--danger); }
.alert.is-info { border-color: rgba(112, 184, 255, .3); background: var(--info-soft); } .alert.is-info .icon { color: var(--info); }
.alert.is-ok { border-color: rgba(61, 214, 140, .3); background: var(--ok-soft); } .alert.is-ok .icon { color: var(--ok); }

/* 6 ─ Tablo ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.table { width: 100%; border-collapse: collapse; }
.table th { position: sticky; top: 0; padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: #151220; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .col-end, .table th.col-end { text-align: right; }
.table .col-actions { text-align: right; white-space: nowrap; width: 1%; }
.table .col-actions > * { display: inline-flex; vertical-align: middle; }
.table .col-actions form { display: inline-flex; }
.table tr.is-dim td { opacity: .55; }
.table-compact td { padding: 9px 14px; font-size: 13px; }
.cell-user { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cell-user .meta { min-width: 0; line-height: 1.3; }
.cell-user .meta strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-user .meta span { font-size: 12px; color: var(--text-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pager-info { font-size: 12.5px; color: var(--text-3); }
.pager-nav { display: flex; gap: 6px; align-items: center; }

/* 7 ─ Rozet, avatar, küçük parçalar ─────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--s3); color: var(--text-2); border: 1px solid transparent; }
.badge .icon { width: 12px; height: 12px; stroke-width: 2; }
.badge.is-ok { background: var(--ok-soft); color: var(--ok); }
.badge.is-warn { background: var(--warn-soft); color: var(--warn); }
.badge.is-danger { background: var(--danger-soft); color: #ff8d91; }
.badge.is-info { background: var(--info-soft); color: var(--info); }
.badge.is-gold { background: var(--gold-soft); color: var(--gold); }
.badge.is-violet { background: var(--violet-soft); color: var(--violet); }
.badge.is-muted { background: var(--s2); color: var(--text-3); }
.badge.is-outline { background: none; border-color: var(--line-2); }
.badge-lg { height: 26px; padding: 0 10px; font-size: 12.5px; }

.avatar { --size: 36px; width: var(--size); height: var(--size); flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(140deg, #2b2540, #1a1626); color: var(--text-2); font-weight: 700; font-size: calc(var(--size) * .4); border: 1px solid var(--line-2); position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { --size: 28px; border-radius: 8px; }
.avatar-lg { --size: 56px; border-radius: 14px; }
.avatar-xl { --size: 84px; border-radius: 18px; }
.avatar-round { border-radius: 50%; }
.avatar.is-speaking { box-shadow: 0 0 0 2px var(--ok), 0 0 16px rgba(61, 214, 140, .6); }

.coin { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.coin .icon { width: 14px; height: 14px; }
.coin.is-golge { color: var(--violet); } .coin.is-kader { color: var(--gold); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 600; font-size: 13.5px; color: var(--text-2); white-space: nowrap; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t-fast); }
.tab:hover { color: var(--text); }
.tab.is-active { color: #fff; border-bottom-color: var(--blood); }
.tab .badge { height: 18px; padding: 0 6px; font-size: 11px; }

.timeline { display: flex; flex-direction: column; }
.tl-item { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; }
.tl-item::before { content: ''; position: absolute; left: 10px; top: 20px; bottom: 0; width: 1px; background: var(--line-2); }
.tl-item:last-child::before { display: none; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); color: var(--text-2); }
.tl-dot .icon { width: 12px; height: 12px; stroke-width: 2; }
.tl-dot.is-danger { background: var(--danger-soft); color: var(--danger); }
.tl-dot.is-warn { background: var(--warn-soft); color: var(--warn); }
.tl-dot.is-ok { background: var(--ok-soft); color: var(--ok); }
.tl-dot.is-info { background: var(--info-soft); color: var(--info); }
.tl-body { min-width: 0; font-size: 13px; }
.tl-body .tl-meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

.progress { height: 6px; border-radius: 99px; background: var(--s3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blood), var(--gold)); transform-origin: left; animation: grow-x 700ms var(--ease-out) backwards; }

.divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.copy { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; font: inherit; }
.copy .icon { width: 13px; height: 13px; color: var(--text-3); opacity: 0; transition: opacity var(--t-fast); }
.copy:hover .icon, .copy:focus-visible .icon { opacity: 1; }

.menu { position: relative; display: inline-flex; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; padding: 6px; border-radius: var(--r); border: 1px solid var(--line-2); background: #17141f; box-shadow: var(--shadow-2); display: none; transform-origin: top right; }
.menu.is-open .menu-pop { display: block; animation: pop var(--t) var(--ease-out); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: var(--text-2); font-size: 13px; font-weight: 500; text-align: left; white-space: nowrap; }
.menu-item:hover { background: var(--s3); color: var(--text); }
.menu-item.is-danger { color: #ff8d91; }
.menu-item.is-active { color: var(--gold); }
.menu-pop form { display: block; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* 8 ─ Pencere, çekmece, bildirim, palet ─────────────────────────────────── */
dialog.dialog {
  width: min(560px, calc(100vw - 32px)); max-height: min(86dvh, 860px); padding: 0; border: 1px solid var(--line-2);
  border-radius: var(--r-xl); background: #15121d; color: var(--text); box-shadow: var(--shadow-2);
  overflow: hidden; opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), overlay var(--t) allow-discrete, display var(--t) allow-discrete;
}
dialog.dialog[open] { display: flex; flex-direction: column; opacity: 1; transform: none; }
@starting-style { dialog.dialog[open] { opacity: 0; transform: translateY(12px) scale(.98); } }
dialog.dialog::backdrop { background: rgba(5, 4, 9, .0); backdrop-filter: blur(0); transition: background var(--t), backdrop-filter var(--t), overlay var(--t) allow-discrete, display var(--t) allow-discrete; }
dialog.dialog[open]::backdrop { background: rgba(5, 4, 9, .68); backdrop-filter: blur(6px); }
@starting-style { dialog.dialog[open]::backdrop { background: rgba(5, 4, 9, 0); backdrop-filter: blur(0); } }
dialog.dialog-lg { width: min(760px, calc(100vw - 32px)); }
dialog.dialog-sm { width: min(420px, calc(100vw - 32px)); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); flex: none; }
.dialog-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dialog-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.dialog-body { padding: 20px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 16px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: #120f1a; flex: none; flex-wrap: wrap; }
dialog.dialog > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
/* pencere içinde alanlar iki sütun (dar ekranda tek); özel ızgara verilmişse ona uyulur */
dialog.dialog .form-grid:not([style]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* sağdan açılan çekmece (aynı <dialog>) */
dialog.sheet { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(480px, 100vw); border-radius: var(--r-xl) 0 0 var(--r-xl); border-right: 0; transform: translateX(40px); }
dialog.sheet[open] { transform: none; }
@starting-style { dialog.sheet[open] { transform: translateX(40px); opacity: 0; } }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: #1a1723; box-shadow: var(--shadow-2); font-size: 13.5px; animation: toast-in 320ms var(--ease-out); }
.toast .icon { margin-top: 1px; color: var(--ok); }
.toast.is-error { border-color: rgba(255, 99, 105, .4); } .toast.is-error .icon { color: var(--danger); }
.toast.is-info .icon { color: var(--info); }
.toast.is-leaving { animation: toast-out 220ms ease forwards; }
.toast-close { margin-left: auto; border: 0; background: none; color: var(--text-3); padding: 0; display: grid; }
.toast-close:hover { color: var(--text); }

/* komut paleti */
dialog.palette { width: min(620px, calc(100vw - 24px)); margin-top: 12vh; border-radius: var(--r-lg); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-input input { flex: 1; border: 0; background: none; outline: none; font-size: 15px; min-width: 0; }
.palette-input .icon { color: var(--text-3); }
.palette-list { max-height: min(52dvh, 420px); overflow-y: auto; padding: 6px; }
.palette-group { padding: 8px 10px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--text-2); cursor: pointer; }
.palette-item .icon { color: var(--text-3); }
.palette-item.is-on { background: var(--s3); color: #fff; }
.palette-item.is-on .icon { color: var(--blood); }
.palette-item small { margin-left: auto; color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.palette-foot { display: flex; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-3); }

.skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--s2) 25%, var(--s3) 37%, var(--s2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; color: transparent !important; }

/* 9 ─ Sayfaya özel bölümler ─────────────────────────────────────────────── */

/* giriş */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 520px); }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px clamp(150px, 24vh, 250px); background: #07060a; isolation: isolate; }
.auth-art::before { content: ''; position: absolute; inset: 0; z-index: -3; background: radial-gradient(620px 620px at 68% 30%, rgba(229, 72, 77, .34), transparent 62%), radial-gradient(900px 600px at 20% 110%, rgba(86, 60, 190, .3), transparent 60%), linear-gradient(180deg, #0c0911, #07060a); }
.auth-moon { position: absolute; z-index: -2; right: 14%; top: 12%; width: clamp(150px, 17vw, 240px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #fff3dc 0, #f3c983 26%, #dc6a45 60%, #7d1a28 100%); box-shadow: 0 0 120px 30px rgba(229, 72, 77, .35), 0 0 260px 80px rgba(229, 72, 77, .16); animation: moon-rise 1.6s var(--ease-out) both; }
.auth-fog { position: absolute; z-index: -1; left: -20%; right: -20%; bottom: 0; height: 46%; background: radial-gradient(60% 100% at 30% 100%, rgba(140, 120, 190, .2), transparent 70%), radial-gradient(50% 90% at 75% 100%, rgba(229, 72, 77, .12), transparent 70%); filter: blur(18px); animation: fog 22s ease-in-out infinite alternate; }
.auth-skyline { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: auto; color: #05040a; opacity: .96; }
.auth-skyline .lit { fill: #f2b84b; opacity: .9; animation: flicker 4.5s ease-in-out infinite; }
.auth-skyline .lit:nth-of-type(2n) { animation-delay: 1.3s; } .auth-skyline .lit:nth-of-type(3n) { animation-delay: 2.6s; }
.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
.auth-brand .brand-mark .icon { width: 24px; height: 24px; }
.auth-quote { max-width: 30ch; }
.auth-quote h2 { font: 700 clamp(26px, 3.2vw, 40px)/1.15 var(--font-display); letter-spacing: .01em; text-wrap: balance; }
.auth-quote p { margin-top: 14px; color: var(--text-2); font-size: 15px; max-width: 38ch; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(24px, 5vw, 56px); background: linear-gradient(180deg, #100d17, #0b0910); border-left: 1px solid var(--line); }
.auth-card { width: 100%; max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.auth-card h1 { font: 700 26px/1.2 var(--font-display); }
.auth-steps { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.auth-steps span { display: inline-flex; align-items: center; gap: 8px; }
.auth-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--line-2); font-size: 11px; }
.auth-steps .is-on { color: var(--text); } .auth-steps .is-on b { background: var(--blood); border-color: transparent; color: #fff; }
.auth-steps .is-done b { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.auth-steps i { flex: 1; height: 1px; background: var(--line-2); }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp input { width: 100%; height: 56px; text-align: center; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 12px; border: 1px solid var(--line-2); background: #0f0d16; caret-color: var(--blood); transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease); }
.otp input:focus { outline: none; border-color: var(--blood); box-shadow: var(--ring); transform: translateY(-1px); }
.otp input.is-filled { border-color: rgba(242, 184, 75, .5); }
.auth-note { display: flex; gap: 10px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.auth-note .icon { flex: none; margin-top: 1px; }

/* hata sayfaları: giriş ekranıyla aynı gece (sis ve siluet .auth-* sınıflarından gelir) */
.errpage { position: relative; isolation: isolate; overflow: hidden; min-height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 26px clamp(20px, 5vw, 52px) clamp(96px, 17vh, 170px); text-align: center; background: #07060a; }
.errpage::before { content: ''; position: absolute; inset: 0; z-index: -3; background: radial-gradient(640px 560px at 50% 22%, rgba(229, 72, 77, .24), transparent 64%), radial-gradient(900px 600px at 10% 112%, rgba(86, 60, 190, .28), transparent 60%), linear-gradient(180deg, #0c0911, #07060a); }
.errpage .auth-skyline { opacity: .9; }
.err-brand { justify-self: start; display: flex; align-items: center; gap: 12px; animation: rise 520ms var(--ease-out) backwards; }
.err-body { align-self: center; justify-self: center; width: 100%; max-width: 580px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 8px; }
.err-body > * { animation: rise 520ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
.err-body > :nth-child(2) { --i: 1; } .err-body > :nth-child(3) { --i: 2; } .err-body > :nth-child(4) { --i: 3; }
.err-body > :nth-child(5) { --i: 4; } .err-body > :nth-child(6) { --i: 5; } .err-body > :nth-child(n+7) { --i: 6; }
.err-stage { --moon: clamp(170px, 32vw, 250px); position: relative; display: grid; place-items: center; min-height: 120px; }
.err-stage.has-art { animation-name: none; margin-top: 30px; } /* sahnenin kendi koreografisi var; ay yukarı taşar */
.err-moon { position: absolute; z-index: -1; left: 50%; top: 50%; width: var(--moon); aspect-ratio: 1; margin: calc(var(--moon) / -2) 0 0 calc(var(--moon) / -2); border-radius: 50%; opacity: .3; background: radial-gradient(circle at 36% 34%, #fff3dc 0, #f3c983 26%, #dc6a45 60%, #7d1a28 100%); box-shadow: 0 0 110px 26px rgba(229, 72, 77, .32), 0 0 240px 70px rgba(229, 72, 77, .14); animation: moon-rise 1.6s var(--ease-out) backwards; }
.err-stage.has-art .err-moon { top: 40%; opacity: .92; }
.errpage .code { display: inline-flex; font: 700 clamp(72px, 16vw, 150px)/1 var(--font-display); letter-spacing: .02em; }
.errpage .code span { background: linear-gradient(180deg, var(--gold), var(--blood)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: err-digit 720ms var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 90ms + 260ms); }
.errpage .code.is-small { font-size: clamp(46px, 9vw, 68px); margin-top: 2px; }
.errpage .code.is-small span { animation-delay: calc(var(--d, 0) * 90ms + 1320ms); } /* parmaklık indikten sonra */
.err-kicker { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(242, 184, 75, .28); background: var(--gold-soft); color: var(--gold); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.err-title { font: 700 clamp(22px, 3.4vw, 30px)/1.2 var(--font-display); text-wrap: balance; }
.err-text { max-width: 46ch; color: var(--text-2); font-size: 15px; text-wrap: pretty; }
.err-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 6px 0 0; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: rgba(19, 17, 27, .72); backdrop-filter: blur(10px); box-shadow: var(--shadow-1); text-align: left; }
.err-facts > div { min-width: 0; padding: 12px 16px; border-left: 1px solid var(--line); }
.err-facts > div:first-child { border-left: 0; }
.err-facts dt { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.err-facts dd { margin-top: 5px; font-weight: 600; min-height: 22px; display: flex; align-items: center; }
.err-facts dd.truncate { display: block; line-height: 22px; }
.err-facts code { color: var(--text-2); font-weight: 500; }
.err-doors { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.err-doors-label { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.err-doors .chips { justify-content: center; }
.err-doors .chip { height: 34px; padding: 0 14px; background: rgba(19, 17, 27, .8); color: var(--text); animation: pop 380ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms + 1500ms); transition: transform var(--t) var(--ease), border-color var(--t-fast), background var(--t-fast); }
.err-doors .chip .icon { color: var(--gold); }
.err-doors .chip:hover { transform: translateY(-2px); border-color: rgba(242, 184, 75, .45); background: var(--gold-soft); }
.err-actions { justify-content: center; margin-top: 6px; }
.err-actions form { display: inline-flex; }

/* 403 · belediye kapısı: parmaklık iner, yere vurur, mühür basılır */
.err-gate { position: relative; width: clamp(150px, 30vw, 206px); cursor: not-allowed; animation: err-thud 420ms linear 750ms backwards; -webkit-tap-highlight-color: transparent; }
.err-gate svg { width: 100%; height: auto; overflow: visible; }
.err-gate .void { fill: rgba(7, 6, 10, .86); }
.err-gate .stone { fill: url(#err-stone); stroke: rgba(255, 255, 255, .13); stroke-width: 1.2; stroke-linejoin: round; }
.err-gate .joint { fill: none; stroke: rgba(0, 0, 0, .5); stroke-width: 1.6; stroke-linecap: round; }
.err-gate .bars { transform-box: fill-box; animation: err-drop 780ms linear 300ms backwards; }
.err-gate .bar { fill: none; stroke: #3a3349; stroke-width: 6; stroke-linecap: square; }
.err-gate .bar.is-cross { stroke: #2d2739; stroke-width: 5; }
.err-gate .spike { fill: #3a3349; }
.err-gate .rattle { transform-box: fill-box; transform-origin: 50% 0; }
.err-gate:active .rattle { animation: err-rattle 360ms linear; }
.err-gate .lamp circle { fill: rgba(242, 184, 75, .16); }
.err-gate .lamp rect { fill: var(--gold); }
.err-gate .lamp { animation: flicker 4.5s ease-in-out infinite; }
.err-gate .lamp:nth-of-type(2n) { animation-delay: 1.7s; }
.err-gate .seal { transform-box: fill-box; transform-origin: center; animation: err-stamp 460ms var(--ease-out) 1180ms backwards; }
.err-gate .seal-rim { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.1; stroke-dasharray: 2.4 3.2; }
.err-gate .ring { fill: none; stroke: var(--blood); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: err-ring 3.4s ease-out 1500ms infinite; }

/* LiveOps kahraman şeridi */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 24px 26px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: linear-gradient(120deg, rgba(229, 72, 77, .16), rgba(19, 17, 27, .6) 45%), var(--s1); }
.hero::after { content: ''; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 184, 75, .16), transparent); pointer-events: none; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.hero-big { display: flex; align-items: baseline; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.hero-big strong { font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-big span { color: var(--text-2); font-size: 15px; }
.hero-meta { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.hero-meta div { line-height: 1.2; }
.hero-meta b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-meta span { font-size: 12px; color: var(--text-3); }
.hero-side { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.quick { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(9, 8, 13, .5); transition: border-color var(--t-fast), transform var(--t) var(--ease), background var(--t-fast); }
.quick:hover { border-color: var(--line-2); background: rgba(9, 8, 13, .8); transform: translateX(3px); }
.quick .icon:first-child { color: var(--gold); }
.quick span { flex: 1; font-weight: 500; }
.quick .icon:last-child { color: var(--text-3); }

/* oda kartları */
.room-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--s1), #110f18); transition: border-color var(--t), transform var(--t) var(--ease); }
.room-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.room-card h3 { font-size: 15px; font-weight: 600; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid var(--s1); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .more { margin-left: -8px; }

/* medya ızgarası (avatarlar) */
.media-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--s1); overflow: hidden; transition: border-color var(--t), transform var(--t) var(--ease); }
.media-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.media-thumb { position: relative; aspect-ratio: 1; background: #0c0a12; overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.media-card:hover .media-thumb img { transform: scale(1.04); }
.media-tags { position: absolute; inset: 8px 8px auto 8px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.media-tags .badge { backdrop-filter: blur(8px); background-color: rgba(9, 8, 13, .7); }
.media-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.rarity-Common { --rc: #9aa0b4; } .rarity-Rare { --rc: #70b8ff; } .rarity-Epic { --rc: #b197fc; } .rarity-Legendary { --rc: #f2b84b; }
.badge.is-rarity { color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); }
.media-card[class*='rarity-'] { box-shadow: 0 -2px 0 0 var(--rc) inset; }

.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px 16px; text-align: center; border-radius: var(--r); border: 1.5px dashed var(--line-2); background: #0f0d16; color: var(--text-2); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.dropzone:hover, .dropzone.is-over { border-color: var(--blood); background: rgba(229, 72, 77, .05); }
.dropzone .icon { width: 26px; height: 26px; color: var(--text-3); }
.dropzone input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); }

/* profil başlığı */
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px; }
.profile-head h2 { font-size: 20px; font-weight: 700; }
.profile-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.pstat { min-width: 84px; padding: 10px 14px; border-radius: var(--r); background: #0f0d16; border: 1px solid var(--line); text-align: center; line-height: 1.2; }
.pstat b { display: block; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pstat span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: rgba(21, 18, 29, .92); backdrop-filter: blur(10px); box-shadow: var(--shadow-2); flex-wrap: wrap; }

/* yasak kartı */
.ban-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ban-row:last-child { border-bottom: 0; }
.scope-list { display: flex; flex-wrap: wrap; gap: 6px; }
.scope-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 9px; border-radius: 8px; background: var(--s2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.scope-tag .icon { width: 13px; height: 13px; }
.scope-tag.is-plain { padding-right: 9px; }
.scope-tag button { width: 20px; height: 20px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--text-3); }
.scope-tag button:hover { background: var(--danger-soft); color: var(--danger); }
.scope-tag form { display: inline-flex; }
.scope-pick { display: flex; flex-direction: column; gap: 8px; }
.scope-pick .check { padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: #0f0d16; width: 100%; transition: border-color var(--t-fast), background var(--t-fast); }
.scope-pick .check:has(input:checked) { border-color: rgba(229, 72, 77, .45); background: rgba(229, 72, 77, .06); }
.scope-pick .check.is-off { opacity: .6; cursor: not-allowed; }

/* tek kullanımlık kod gösterimi */
.reveal { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px; border-radius: var(--r-lg); border: 1px solid rgba(242, 184, 75, .4); background: radial-gradient(400px 160px at 50% 0, rgba(242, 184, 75, .16), transparent), var(--s1); text-align: center; }
.reveal-code { font: 700 38px/1 var(--font-mono); letter-spacing: .28em; color: var(--gold); padding-left: .28em; }

/* rol ızgarası (ada formu) */
.role-tile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--line); background: #0f0d16; }
.role-tile img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; mix-blend-mode: screen; }
.stepper { display: inline-flex; align-items: center; border-radius: 8px; border: 1px solid var(--line-2); overflow: hidden; }
.stepper button { width: 28px; height: 28px; border: 0; background: var(--s2); color: var(--text-2); display: grid; place-items: center; }
.stepper button:hover { background: var(--s3); color: var(--text); }
.stepper input { width: 40px; height: 28px; border: 0; background: #0f0d16; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { appearance: none; margin: 0; }

.map-frame { width: 100%; height: 320px; border: 0; border-radius: var(--r); filter: grayscale(.25) contrast(1.05); background: #0c0a12; }

/* ayar satırı: solda açıklama, sağda denetim */
.setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: 12px 24px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting-info strong { display: block; font-weight: 600; }
.setting-info p { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.setting-info code { display: inline-block; margin-top: 4px; font-size: 11px; color: var(--text-3); }
.setting-control { display: flex; gap: 8px; align-items: flex-start; }
.setting-control > .input, .setting-control > .select, .setting-control > .textarea { flex: 1; min-width: 0; }
@media (max-width: 760px) { .setting { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; } }

/* ürün seçici (mağaza teklifi): yerel onay kutuları, :has ile seçili görünümü */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px; border-radius: var(--r); border: 1px solid var(--line); background: #0f0d16; }
.pick { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--s1); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); min-width: 0; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick .avatar { --size: 100%; width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; }
.pick strong { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick small { font-size: 10.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick:hover { border-color: var(--line-2); }
.pick:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.pick:has(input:checked)::after { content: ''; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23201503' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pick:has(input:focus-visible) { box-shadow: var(--ring); }
.pick.is-locked { opacity: .5; cursor: not-allowed; filter: grayscale(.6); }
.pick.is-locked input { cursor: not-allowed; }

/* oyuncu seçici */
[data-user-picker] { display: flex; flex-direction: column; gap: 6px; }
[data-picker-results] { display: flex; flex-direction: column; max-height: 200px; overflow-y: auto; border-radius: var(--r); }
[data-picker-results]:not(:empty) { border: 1px solid var(--line); background: #0f0d16; padding: 4px; }
[data-picker-chosen] { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-radius: 10px; border: 1px solid rgba(61, 214, 140, .35); background: var(--ok-soft); }
[data-picker-chosen] .icon { color: var(--ok); }

/* avatar paketi */
.pkg-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.pkg-thumb { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #0c0a12; aspect-ratio: 1; }
.pkg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pkg-thumb .badge { position: absolute; left: 6px; top: 6px; backdrop-filter: blur(8px); background-color: rgba(9, 8, 13, .72); }
.pkg-thumb-actions { position: absolute; inset: auto 0 0 0; display: flex; justify-content: center; gap: 4px; padding: 6px; background: linear-gradient(0deg, rgba(9, 8, 13, .92), transparent); opacity: 0; transition: opacity var(--t-fast); }
.pkg-thumb:hover .pkg-thumb-actions, .pkg-thumb:focus-within .pkg-thumb-actions { opacity: 1; }
.pkg-thumb-actions form { display: inline-flex; }
.pkg-thumb-actions button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-2); background: #1a1723; color: var(--text-2); display: grid; place-items: center; }
.pkg-thumb-actions button:hover { color: #fff; border-color: var(--text-3); }
.pkg-thumb.is-dim img { opacity: .4; filter: grayscale(.7); }
@media (hover: none) { .pkg-thumb-actions { opacity: 1; } }

/* moderasyon paneli (public/js/moderation.js) */
.mod { display: flex; flex-direction: column; min-height: 0; transition: opacity var(--t-fast); }
.mod.is-busy { opacity: .6; pointer-events: none; }
.mod-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.mod-head .grow { display: flex; flex-direction: column; min-width: 0; }
.mod-head strong { font-size: 16px; }
.mod-tabs { padding: 0 12px; flex: none; }
.mod-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 24px; animation: rise 260ms var(--ease-out); }
.mod-ban { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: var(--r); border: 1px solid rgba(255, 99, 105, .22); background: rgba(255, 99, 105, .05); }
.mod-device { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.mod-device:last-child { border-bottom: 0; }

/* 10 ─ Hareket ve duyarlı kurallar ──────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(61, 214, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); } }
@keyframes pulse-red { 70% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }
@keyframes moon-rise { from { opacity: 0; transform: translateY(40px) scale(.94); } }
@keyframes fog { to { transform: translateX(6%); } }
@keyframes flicker { 0%, 100% { opacity: .9; } 45% { opacity: .55; } 60% { opacity: 1; } }
/* hata sayfası: yalnız transform + opacity; bitiş durumu öğenin kendi durumudur (backwards) */
@keyframes err-digit { from { opacity: 0; transform: translateY(26px) scale(.9); } 60% { opacity: 1; } }
@keyframes err-drop { 0% { transform: translateY(-104%); animation-timing-function: cubic-bezier(.6, 0, .9, .45); } 58% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .6, .4, 1); } 74% { transform: translateY(-5%); animation-timing-function: cubic-bezier(.6, 0, .8, .4); } 88% { transform: translateY(0); animation-timing-function: ease-out; } 94% { transform: translateY(-1.4%); } 100% { transform: translateY(0); } }
@keyframes err-thud { 0% { transform: translateY(0); } 18% { transform: translateY(4px); } 42% { transform: translateY(-2px); } 68% { transform: translateY(1px); } 100% { transform: translateY(0); } }
@keyframes err-rattle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-1.6deg); } 40% { transform: rotate(1.4deg); } 60% { transform: rotate(-.9deg); } 80% { transform: rotate(.5deg); } }
@keyframes err-stamp { 0% { opacity: 0; transform: scale(1.9) rotate(-14deg); } 55% { opacity: 1; transform: scale(.92) rotate(2deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes err-ring { 0% { opacity: .75; transform: scale(.7); } 38%, 100% { opacity: 0; transform: scale(2); } }

/* sayfa girişi: içerik blokları sırayla yükselir */
.page > * { animation: rise 420ms var(--ease-out) backwards; }
.page > *:nth-child(1) { animation-delay: 20ms; } .page > *:nth-child(2) { animation-delay: 70ms; }
.page > *:nth-child(3) { animation-delay: 120ms; } .page > *:nth-child(4) { animation-delay: 170ms; }
.page > *:nth-child(5) { animation-delay: 220ms; } .page > *:nth-child(n+6) { animation-delay: 260ms; }
.stats > *, .stagger > * { animation: rise 420ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
.auth-card > * { animation: rise 520ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }

/* sayfalar arası geçiş (Chromium): içerik yumuşakça değişir, kenar çubuğu yerinde kalır */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 140ms ease both vt-out; }
::view-transition-new(root) { animation: 220ms var(--ease-out) both vt-in; }
::view-transition-group(nav-active) { animation-duration: 320ms; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* "Sade görünüm" (kenar çubuğundaki tercih) ya da tercih "sistem" iken işletim sistemi ayarı */
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.motion-off::view-transition-group(*), html.motion-off::view-transition-old(*), html.motion-off::view-transition-new(*) { animation: none !important; }
html.motion-off .spark path.line { stroke-dashoffset: 0; } html.motion-off .spark path.area { opacity: 1; }

/* ── geniş ekran altı ── */
@media (max-width: 1280px) {
  :root { --pad: 22px; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-trigger { min-width: 0; } .search-trigger span { display: none; }
}
@media (max-width: 1100px) {
  .split, .split-even, .hero { grid-template-columns: minmax(0, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ── tablet / telefon: kenar çubuğu çekmeceye döner ── */
@media (max-width: 1023px) {
  :root { --pad: 16px; --top-h: 56px; }
  .app { display: block; }
  html.side-collapsed .app { --side-w: 256px; }
  .side { position: fixed; left: 0; top: 0; width: min(292px, 86vw); transform: translateX(-102%); transition: transform var(--t-slow) var(--ease-out); box-shadow: 30px 0 60px rgba(0, 0, 0, .6); z-index: 60; }
  html.side-open .side { transform: none; }
  html.side-collapsed .brand-text, html.side-collapsed .nav-label, html.side-collapsed .nav-item span, html.side-collapsed .user-chip .info { display: revert; }
  html.side-collapsed .nav-item { justify-content: flex-start; padding: 0 10px; }
  html.side-collapsed .side-brand { justify-content: flex-start; padding: 0 18px; }
  .nav-item { height: 42px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(5, 4, 9, .6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity var(--t); }
  html.side-open .scrim { opacity: 1; pointer-events: auto; }
  html.side-open { overflow: hidden; }
  .only-desktop { display: none !important; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { min-height: 260px; padding: 24px 24px 96px; }
  .auth-moon { right: 10%; top: 14%; width: 110px; }
  .auth-quote p { display: none; }
  .auth-panel { border-left: 0; border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 40px; justify-content: flex-start; }
}
@media (min-width: 1024px) { .only-mobile { display: none !important; } }
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .page-title { font-size: 22px; }
  .page-head { align-items: stretch; flex-direction: column; }
  .page-actions > .btn { flex: 1; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; gap: 6px; } .stat-value { font-size: 21px; } .stat-icon { width: 26px; height: 26px; border-radius: 8px; } .stat-label { font-size: 11.5px; }
  .card-head, .card-foot { padding: 14px 16px; } .card-body { padding: 16px; }
  .btn, .input, .select { min-height: 42px; } .btn { height: 42px; } .btn-sm { height: 36px; min-height: 36px; } .btn-icon { width: 42px; } .btn-icon.btn-sm { width: 36px; }
  .input, .select, .textarea { font-size: 16px; } /* iOS odaklanınca yakınlaştırmasın */
  .toasts { right: 12px; left: 12px; bottom: 12px; width: auto; }
  dialog.dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92dvh; border-bottom: 0; transform: translateY(40px); }
  dialog.sheet { height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .dialog-foot .btn { flex: 1; }
  dialog.dialog .form-grid:not([style]) { grid-template-columns: minmax(0, 1fr); }
  .ban-row { grid-template-columns: minmax(0, 1fr); }
  .profile-stats { margin-left: 0; width: 100%; } .pstat { flex: 1; min-width: 70px; }
  .live-pill span.only-wide { display: none; }
  .errpage { padding-top: 18px; }
  .err-body { gap: 12px; }
  .err-facts { grid-template-columns: minmax(0, 1fr); }
  .err-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-left: 0; border-top: 1px solid var(--line); }
  .err-facts > div:first-child { border-top: 0; }
  .err-facts dd { margin-top: 0; min-width: 0; text-align: right; }
  .err-actions { width: 100%; } .err-actions > .btn, .err-actions > form, .err-actions form .btn { flex: 1; }

  /* tablo → kart: her satır bir kart, her hücre "etiket: değer" */
  .table.is-stack thead { display: none; }
  .table.is-stack, .table.is-stack tbody, .table.is-stack tr, .table.is-stack td { display: block; width: 100%; }
  .table.is-stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.is-stack tr:last-child { border-bottom: 0; }
  .table.is-stack td { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 5px 0; border: 0; text-align: right; min-width: 0; }
  .table.is-stack td::before { content: attr(data-label); flex: none; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); text-align: left; }
  .table.is-stack td:not([data-label])::before, .table.is-stack td[data-label='']::before { display: none; }
  .table.is-stack td.cell-main { justify-content: flex-start; text-align: left; padding-bottom: 8px; }
  .table.is-stack td.col-actions { justify-content: flex-end; padding-top: 10px; width: 100%; flex-wrap: wrap; gap: 8px; }
  .table.is-stack td.col-actions > * { flex: 1; }
  .table.is-stack td.col-actions .btn { width: 100%; }
  .table.is-stack td:empty { display: none; }
}
@media (max-width: 340px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .otp { gap: 6px; } .otp input { height: 50px; font-size: 20px; }
}
@media print { .side, .topbar, .toasts, .page-actions { display: none !important; } .app { display: block; } body { background: #fff; color: #000; } }

/* ==========================================================================
   OYUNCU BİLDİRİMLERİ (admin/reports) — önek `rep-` (kart), `scene-` / `sf` / `sp`
   (olay yeri). Bildiren altın, bildirilen kan tonundadır; ikisini birleştiren
   çizgi soldan sağa çizilir ve sebep ortada belirir.
   HAREKET: yalnız transform / opacity; "hareketi azalt" açıksa hiçbiri oynamaz.
   ========================================================================== */
.rep-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.rep-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--s1); color: inherit; text-decoration: none; transition: border-color var(--t-fast), transform var(--t-fast); animation: rep-in .45s cubic-bezier(.23, 1, .32, 1) calc(var(--i, 0) * 45ms) backwards; }
.rep-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.rep-card.is-open { border-color: rgba(245, 165, 36, .28); }
.rep-card.is-invalid { opacity: .75; }

.rep-duo { display: grid; grid-template-columns: minmax(0, auto) minmax(140px, 1fr) minmax(0, auto); align-items: center; gap: 14px; }
.rep-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rep-side.is-target { justify-content: flex-end; text-align: right; }
.rep-side.is-reporter { animation: rep-from-left .5s cubic-bezier(.23, 1, .32, 1) calc(var(--i, 0) * 45ms + 80ms) backwards; }
.rep-side.is-target { animation: rep-from-right .5s cubic-bezier(.23, 1, .32, 1) calc(var(--i, 0) * 45ms + 80ms) backwards; }
.rep-side.is-reporter .avatar { box-shadow: 0 0 0 2px rgba(242, 184, 75, .45); }
.rep-side.is-target .avatar { box-shadow: 0 0 0 2px rgba(229, 72, 77, .55); }
.rep-who { display: flex; flex-direction: column; min-width: 0; }
.rep-who strong { font-size: 15px; }
.rep-role { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.is-reporter .rep-role { color: var(--gold); }
.is-target .rep-role { color: #ff8d91; }

.rep-link { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; }
.rep-line { flex: 1; min-width: 10px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--blood)); transform-origin: 0 50%; animation: rep-draw .5s cubic-bezier(.23, 1, .32, 1) calc(var(--i, 0) * 45ms + 260ms) backwards; }
.rep-line.is-end { background: var(--blood); animation-delay: calc(var(--i, 0) * 45ms + 420ms); position: relative; }
.rep-line.is-end::after { content: ''; position: absolute; right: -1px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--blood); border-right: 2px solid var(--blood); transform: translateY(-50%) rotate(45deg); }
.rep-reason { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(229, 72, 77, .4); background: var(--blood-soft); color: #ffb0b3; font-size: 12px; font-weight: 600; white-space: nowrap; animation: rep-pop .4s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 0) * 45ms + 380ms) backwards; }
.rep-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rep-sub { font-size: 13px; color: var(--text-2); }
.rep-meta { margin-left: auto; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.rep-note { margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--s2); border-left: 2px solid var(--line-2); font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }

/* ayrıntı: büyük ikili */
.rep-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .5fr) minmax(0, 1fr); align-items: center; gap: 18px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(60% 120% at 0% 50%, rgba(242, 184, 75, .08), transparent 60%), radial-gradient(60% 120% at 100% 50%, rgba(229, 72, 77, .1), transparent 60%), var(--s1); }
.rep-person { display: flex; gap: 16px; min-width: 0; }
.rep-person.is-reporter { animation: rep-from-left .55s cubic-bezier(.23, 1, .32, 1) .05s backwards; }
.rep-person.is-target { flex-direction: row-reverse; text-align: right; animation: rep-from-right .55s cubic-bezier(.23, 1, .32, 1) .05s backwards; }
.rep-person.is-reporter .avatar { box-shadow: 0 0 0 2px rgba(242, 184, 75, .5), 0 12px 30px rgba(0, 0, 0, .5); }
.rep-person.is-target .avatar { box-shadow: 0 0 0 2px rgba(229, 72, 77, .6), 0 12px 30px rgba(0, 0, 0, .5); }
.rep-person-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.rep-person.is-target .rep-person-body { align-items: flex-end; }
.rep-person-name { margin: 0; font-size: 22px; line-height: 1.15; }
.rep-person-facts, .rep-person-record { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--text-3); }
.rep-person.is-target .rep-person-facts, .rep-person.is-target .rep-person-record { justify-content: flex-end; }
.rep-link.is-hero { flex-wrap: wrap; --i: 3; }
.rep-link.is-hero .rep-reason { font-size: 13px; padding: 7px 14px; }
.rep-hero-sub { flex-basis: 100%; text-align: center; font-size: 13px; color: var(--text-2); animation: rep-in .4s ease .7s backwards; }
.rep-quote { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--s2); border-left: 2px solid var(--gold); }
.rep-quote p { margin: 4px 0 0; }

/* olay yeri */
.scene-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.scene-track { position: relative; flex: 1; min-width: 0; padding-top: 12px; }
.scene-range { width: 100%; accent-color: var(--blood); cursor: pointer; }
.scene-ticks { position: absolute; left: 8px; right: 8px; top: 0; height: 12px; }
.scene-tick { position: absolute; top: 0; width: 8px; height: 8px; margin-left: -4px; padding: 0; border: 0; border-radius: 50%; background: var(--gold); opacity: .7; cursor: pointer; }
.scene-tick:hover { opacity: 1; transform: scale(1.4); }
.scene-clock { display: flex; flex-direction: column; align-items: flex-end; min-width: 150px; font-variant-numeric: tabular-nums; }
.scene-clock strong { font-size: 18px; }
.scene-clock span { font-size: 12px; color: var(--text-3); }
.scene.is-rewound .scene-clock span { color: var(--warn); }
.scene-filters { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.scene-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.scene-feed { max-height: 68vh; overflow-y: auto; padding: 10px 6px 14px; scroll-behavior: smooth; }
.scene-side { padding: 14px 16px; border-left: 1px solid var(--line); background: rgba(0, 0, 0, .14); max-height: 68vh; overflow-y: auto; }
.scene-side-title { margin: 0 0 10px; font-size: 13px; font-weight: 600; }

.sf { display: grid; grid-template-columns: 64px auto minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 5px 10px; border-radius: 8px; border-left: 2px solid transparent; transition: opacity .2s ease; }
.sf-time { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sf-ch { min-width: 54px; padding: 1px 7px; border-radius: 6px; background: var(--s2); color: var(--text-3); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-align: center; white-space: nowrap; }
.sf-ch.ch-takim { background: var(--violet-soft); color: var(--violet); }
.sf-ch.ch-oluler { background: rgba(255, 255, 255, .06); color: #a8a3b8; }
.sf-ch.ch-global { background: var(--info-soft); color: var(--info); }
.sf-ch.ch-belediye { background: var(--gold-soft); color: var(--gold); }
.sf-ico { min-width: 54px; display: grid; place-items: center; color: var(--text-3); }
.sf-body { min-width: 0; font-size: 13.5px; line-height: 1.5; }
.sf-name { margin-right: 6px; font-weight: 600; }
.sf-to { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 11.5px; color: var(--violet); }
.sf.is-system .sf-body { color: var(--text-2); }
.sf.is-system .sf-name { color: var(--gold); }
.sf.is-event .sf-body { font-size: 12.5px; color: var(--text-3); }
.sf.is-phase { margin: 8px 0 4px; border-top: 1px dashed var(--line-2); border-radius: 0; padding-top: 10px; }
.sf.is-phase .sf-body { color: var(--gold); font-weight: 600; font-size: 13px; }
.sf.is-act .sf-body { color: var(--info); }
.sf.is-target { border-left-color: var(--blood); background: rgba(229, 72, 77, .07); }
.sf.is-target .sf-name { color: #ff8d91; }
.sf.is-reporter { border-left-color: var(--gold); }
.sf.is-reporter .sf-name { color: var(--gold); }
.sf.is-secret { background: rgba(177, 151, 252, .06); }
.sf.is-mark { margin-top: 10px; border-left-color: var(--warn); background: var(--warn-soft); }
.sf.is-future { display: none; }
.sf.is-dim { opacity: .28; }
.scene[data-filter="chat"] .sf.is-event:not(.is-phase) { display: none; }
.scene[data-filter="events"] .sf.is-chat { display: none; }
.scene[data-filter="target"] .sf:not(.is-target):not(.is-phase):not(.is-mark) { display: none; }
.scene[data-filter="pair"] .sf:not(.is-target):not(.is-reporter):not(.is-phase):not(.is-mark) { display: none; }

.scene-roster { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--s1); cursor: pointer; transition: opacity .25s ease, border-color var(--t-fast); }
.sp:hover { border-color: var(--line-2); }
.sp-body { display: flex; flex-direction: column; min-width: 0; }
.sp-body strong { font-size: 13.5px; }
.sp-role { font-size: 12px; color: var(--text-3); }
.sp.al-vampir .sp-role { color: #ff8d91; }
.sp.al-kader .sp-role { color: var(--violet); }
.sp-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.sp-dead { display: none; }
.sp.is-target { border-color: rgba(229, 72, 77, .5); }
.sp.is-reporter { border-color: rgba(242, 184, 75, .45); }
.sp.is-dead { opacity: .55; }
.sp.is-dead .sp-dead { display: inline-flex; }
.sp.is-dead .avatar { filter: grayscale(1); }
.sp.is-absent { opacity: .25; }
.sp.is-focus { border-color: var(--info); box-shadow: 0 0 0 1px var(--info); opacity: 1; }

@keyframes rep-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rep-from-left { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes rep-from-right { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes rep-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rep-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 1100px) {
  .scene-grid { grid-template-columns: minmax(0, 1fr); }
  .scene-side { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
}
@media (max-width: 760px) {
  .rep-hero { grid-template-columns: minmax(0, 1fr); }
  .rep-person.is-target { flex-direction: row; text-align: left; }
  .rep-person.is-target .rep-person-body { align-items: flex-start; }
  .rep-person.is-target .rep-person-facts, .rep-person.is-target .rep-person-record { justify-content: flex-start; }
  .rep-duo { grid-template-columns: minmax(0, 1fr); }
  .rep-side.is-target { justify-content: flex-start; flex-direction: row-reverse; text-align: left; }
  .rep-link { justify-content: flex-start; }
  .rep-line { max-width: 28px; }
  .scene-bar { flex-wrap: wrap; }
  .scene-clock { align-items: flex-start; min-width: 0; }
  .sf { grid-template-columns: 56px minmax(0, 1fr); }
  .sf-ch, .sf-ico { grid-row: 2; grid-column: 1; min-width: 0; }
  .sf-body { grid-row: 1 / span 2; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .rep-card, .rep-side, .rep-person, .rep-line, .rep-reason, .rep-hero-sub { animation: none !important; }
  .rep-card:hover { transform: none; }
  .scene-feed { scroll-behavior: auto; }
}

/* ── elle gönderim: anlık bildirim önizlemesi + e-posta şablon kurucu ────────
   (public/js/broadcast.js; önekler: pn- bildirim, mb- şablon kurucu) */
.bc-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.pn-phone { padding: 22px 14px 26px; border-radius: 22px; background: linear-gradient(160deg, #33405f, #171b2e 55%, #241528); border: 1px solid var(--line-2); }
.pn-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: rgba(226, 232, 255, .16); }
.pn-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; background: #3a0d16; }
.pn-text { min-width: 0; flex: 1; }
.pn-app { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, .72); }
.pn-title { margin-top: 2px; font-size: 14px; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.pn-body { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .88); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }

.mb-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); align-items: start; }
/* Üstteki yapışkan çubuğun altında kalsın. */
.mb-preview { position: sticky; top: 94px; }
.mb-subject { padding: 10px 16px; font-size: 13px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.mb-frame-wrap { display: flex; justify-content: center; background: #07050a; }
.mb-frame { display: block; width: 100%; max-width: 380px; height: min(68vh, 700px); border: 0; background: #07050a; }
.mb-frame.is-wide { max-width: 100%; }
.mb-status { padding: 10px 16px; color: var(--text-3); border-top: 1px solid var(--line); }
.mb-status.is-error { color: var(--warn); }
.mb-block { border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.mb-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); }
.mb-block-type { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.mb-block-type > span { display: inline-flex; }
.mb-block-body { display: grid; gap: 10px; padding: 12px 14px 4px; }
.mb-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: start; }
.mb-field { display: grid; gap: 5px; min-width: 0; }
.mb-field-label { font-size: 12px; color: var(--text-3); }
.mb-gap { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px; font-size: 12px; color: var(--text-3); }
.mb-gap.is-bare { padding: 0; }
.mb-gap input[type='range'] { flex: 1; min-width: 80px; accent-color: var(--gold); }
.mb-gap output { min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.mb-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.mb-up .icon { transform: rotate(180deg); }
@media (max-width: 1100px) {
  .bc-split, .mb-layout { grid-template-columns: minmax(0, 1fr); }
  .mb-preview { position: static; }
}
