/* ==========================================================================
   SERBESTSÖZ — tasarım sistemi (app.css)
   Temalar: [data-theme="kagit"] (VARSAYILAN — Settings default_theme: krem kâğıt, lacivert mürekkep,
                                  kağıt-kesim gölgeler, durağan doku; aurora canvas çalışmaz)
            [data-theme="gece"]  (gece mavisi, cam, ışıma, gren, aurora; :root yedeği de budur)
   Bileşen sınıfları SPEC §7.2 ile birebir aynıdır. Modüle özgü stiller kendi dosyalarında.
   İçindekiler:
     01 Belirteçler (tokens)       08 Formlar               15 Veri (tablo, istatistik…)
     02 Temel + tipografi          09 Kartlar               16 Hata sayfaları
     03 Arka plan efektleri        10 Gönderi + yorum       17 Giriş (auth) yerleşimi
     04 Marka + amblem             11 Rozetler, avatar      18 Panel yerleşimi
     05 Site iskeleti              12 Sekmeler, menüler     19 Alt bilgiler
     06 Sayfa başlığı, düzen       13 Pencereler            20 Efektler + hareket
     07 Düğmeler                   14 Geri bildirim         21 Yazdırma
   ========================================================================== */

@view-transition { navigation: auto; }

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ==========================================================================
   01 · Belirteçler
   ========================================================================== */

/* F0-12: yazı tipleri kendi sunucumuzda (Google Fonts yok). Değişken WOFF2 — Fraunces (opsz 9–144, wght 100–900)
   ve Montserrat (wght 100–900); latin + latin-ext alt kümeleri unicode-range ile ayrı dosyalar (Türkçe: ç ö ü ı → latin,
   ğ ş İ → latin-ext). Roman kesimler layouts/base.php'de preload edilir; adlar sürümlüdür (önbellek 30 gün, immutable),
   dosya değişirse adı da değişmeli. Lisans: assets/fonts/OFL.txt */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-v38-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: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-v38-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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-v38-italic-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: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-v38-italic-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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-v31-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: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-v31-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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-v31-italic-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: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-v31-italic-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;
}
/* F0-12: metrik eşlemeli yedekler — yazı tipi inene kadar (font-display: swap) sistem fontu aynı genişlik/yükseklikte
   çizilir, satırlar kaymaz (CLS ≈ 0). Değerler Türkçe harf sıklığıyla ağırlıklı ortalama genişlik + hhea/typo metriklerinden
   hesaplandı. Masaüstü/iOS: Georgia + Arial; Android: Noto Serif + Roboto. Bulunamayan yedek atlanır. */
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia');
  size-adjust: 105.5%;
  ascent-override: 92.7%;
  descent-override: 24.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Fraunces Fallback Android';
  src: local('Noto Serif'), local('NotoSerif-Regular');
  size-adjust: 96.4%;
  ascent-override: 101.5%;
  descent-override: 26.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Arial'), local('ArialMT');
  size-adjust: 115.4%;
  ascent-override: 83.9%;
  descent-override: 21.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Montserrat Fallback Android';
  src: local('Roboto'), local('Roboto-Regular');
  size-adjust: 114.5%;
  ascent-override: 84.5%;
  descent-override: 21.9%;
  line-gap-override: 0%;
}

:root {
  --font-display: 'Fraunces', 'Fraunces Fallback', 'Fraunces Fallback Android', 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', 'Montserrat Fallback', 'Montserrat Fallback Android', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --radius-card: var(--radius-lg);   /* F0-14: kart / gönderi yarıçapı (Kâğıt'ta 12px — aşağıdaki tema bloğu) */

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-inout: cubic-bezier(.76, 0, .24, 1);
  --ease-soft: cubic-bezier(.25, .8, .25, 1);

  --nav-h: 60px;
  --bottom-h: 64px;
  --ticker-h: 42px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --side-w: 264px;
  --main-w: 640px;
  --rail-w: 340px;
  --gutter: 16px;
  --sticky-top: var(--nav-h);

  /* Marka sabitleri (temadan bağımsız) */
  --navy: #041D3B;
  --navy-2: #0A2A52;
  --navy-deep: #021428;
  --red: #9E1214;
  --red-bright: #C8262A;
  --cream: #F3EFE6;
  --paper: #F7F3EC;

  --z-sticky: 30;
  --z-nav: 40;
  --z-bottom: 50;
  --z-drawer: 90;
  --z-toast: 120;
  --z-tip: 140;
}

/* Gece — temel belirteçler (sayfanın data-theme özniteliği her zaman sunucuda yazılır; varsayılan tema ayarı: Settings::DEFAULTS default_theme = kagit) */
:root,
[data-theme="gece"] {
  color-scheme: dark;
  --bg: #030B17;
  --bg-2: #061329;
  --bg-img: radial-gradient(130% 70% at 50% -12%, #0C2246 0%, rgba(6, 19, 41, 0) 62%), linear-gradient(180deg, #030B17 0%, #061329 100%);
  --bg-size: auto, auto;
  --surface: rgba(16, 33, 64, .5);
  --surface-2: rgba(26, 47, 84, .55);
  --surface-3: rgba(38, 62, 104, .6);
  --surface-solid: #0A1931;
  --surface-raised: #0F2241;
  --glass: rgba(10, 24, 48, .5);
  --glass-strong: rgba(5, 14, 30, .78);
  --border: rgba(243, 239, 230, .085);
  --border-strong: rgba(243, 239, 230, .17);
  --hairline: inset 0 0 0 1px rgba(243, 239, 230, .085);
  --highlight: inset 0 1px 0 rgba(243, 239, 230, .07);
  --text: #F3EFE6;
  --text-2: rgba(243, 239, 230, .74);
  --text-3: rgba(243, 239, 230, .56);
  --text-inv: #041D3B;
  --accent: #E0313A;
  --accent-2: #FF5C61;
  --accent-text: #FF7A7E;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(224, 49, 58, .15);
  --accent-glow: rgba(224, 49, 58, .45);
  --accent-grad: linear-gradient(180deg, #E8383F 0%, #B8161F 100%);
  --gold: #D9B26A;
  --gold-2: #F2D79E;
  --gold-soft: rgba(217, 178, 106, .14);
  --success: #3DD68C;
  --success-soft: rgba(61, 214, 140, .14);
  --warning: #F5B94A;
  --warning-soft: rgba(245, 185, 74, .14);
  --danger: #FF6166;
  --danger-soft: rgba(255, 97, 102, .14);
  --info: #74B6FF;
  --info-soft: rgba(116, 182, 255, .14);
  --focus: #FF6B70;
  --scrim: rgba(1, 6, 14, .66);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .28), 0 6px 18px -8px rgba(0, 0, 0, .5);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .24), 0 20px 44px -18px rgba(0, 0, 0, .66);
  --shadow-3: 0 8px 18px rgba(0, 0, 0, .28), 0 44px 90px -30px rgba(0, 0, 0, .82);
  --skel: rgba(243, 239, 230, .06);
  --skel-shine: rgba(243, 239, 230, .09);
  --grain-opacity: .075;
  --input-bg: rgba(2, 9, 20, .45);
  --chip-bg: rgba(243, 239, 230, .065);
  --ico-contrast: #061329;
  --stage-bg: #071731;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F3EFE6' stroke-opacity='.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Kâğıt */
[data-theme="kagit"] {
  color-scheme: light;
  --bg: #F7F3EC;
  --bg-2: #EFE8DA;
  --bg-img: radial-gradient(120% 60% at 50% -10%, rgba(255, 253, 248, .9) 0%, rgba(247, 243, 236, 0) 60%), url('../img/paper.webp');
  --bg-size: auto, 512px 512px;
  --surface: rgba(255, 253, 248, .84);
  --surface-2: #F2EBDF;
  --surface-3: #E8DFCD;
  --surface-solid: #FFFDF8;
  --surface-raised: #FFFFFF;
  --glass: rgba(251, 248, 242, .72);
  --glass-strong: rgba(250, 247, 240, .9);
  --border: rgba(4, 29, 59, .1);
  --border-strong: rgba(4, 29, 59, .2);
  --hairline: inset 0 0 0 1px rgba(4, 29, 59, .1);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .7);
  --text: #041D3B;
  --text-2: rgba(4, 29, 59, .78);
  --text-3: rgba(4, 29, 59, .64);
  --text-inv: #F3EFE6;
  --accent: #B3141B;
  --accent-2: #8E0F14;
  --accent-text: #A8121A;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(179, 20, 27, .09);
  --accent-glow: rgba(179, 20, 27, .3);
  --accent-grad: linear-gradient(180deg, #C61F26 0%, #9E1214 100%);
  --gold: #8E6A22;
  --gold-2: #B98E3C;
  --gold-soft: rgba(154, 116, 40, .13);
  --success: #12764A;
  --success-soft: rgba(18, 118, 74, .1);
  --warning: #935C05;
  --warning-soft: rgba(176, 112, 8, .12);
  --danger: #B3141B;
  --danger-soft: rgba(179, 20, 27, .09);
  --info: #1A5AA6;
  --info-soft: rgba(26, 90, 166, .1);
  --focus: #B3141B;
  --scrim: rgba(4, 29, 59, .4);
  --shadow-1: 0 1px 1px rgba(2, 20, 40, .06), 0 4px 10px -5px rgba(2, 20, 40, .18);
  --shadow-2: 0 1px 1px rgba(2, 20, 40, .05), 0 10px 20px -10px rgba(2, 20, 40, .22), 0 26px 44px -28px rgba(2, 20, 40, .32);
  --shadow-3: 0 2px 4px rgba(2, 20, 40, .06), 0 34px 64px -26px rgba(2, 20, 40, .42);
  --skel: rgba(4, 29, 59, .07);
  --skel-shine: rgba(255, 255, 255, .55);
  --grain-opacity: .04;
  --input-bg: #FFFDF8;
  --chip-bg: rgba(4, 29, 59, .055);
  --ico-contrast: #FFFDF8;
  --stage-bg: #041D3B;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23041D3B' stroke-opacity='.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
/* F0-14: Kâğıt lansman makyajı (yalnız Kâğıt; Gece değişmez) — kart yarıçapı baskı işi gibi daha sıkı;
   yapışkan başlıklar opak kâğıt (bkz. §06 ve §05 .topbar); aurora canvas hiç çalışmaz (bkz. §03 + sz.js) */
[data-theme="kagit"] {
  --radius-card: 12px;
  --sticky-bg: var(--bg);
}

@media (min-width: 1100px) {
  :root { --sticky-top: 0px; --gutter: 24px; }
}
.nav-hidden { --sticky-top: 0px; }

/* ==========================================================================
   02 · Temel + tipografi
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  accent-color: var(--accent);
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-img);
  background-size: var(--bg-size);
  background-attachment: fixed;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  tab-size: 4;
  scrollbar-color: var(--border-strong) transparent;
}

@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font: 500 15px/1.6 var(--font-sans);
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
  font-optical-sizing: auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }

:where(h1, h2, h3, .page-title, .display, .card-title, .modal-title, .empty-title) em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
small { font-size: .85em; }
strong, b { font-weight: 700; }
hr { border: 0; height: 1px; background: var(--border); margin: 24px 0; }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:where(p, li, dd, td, .field-hint, .prose, .alert, .post-text, .comment-body, .muted, .page-sub) a:not([class]) {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: .2em;
  transition: text-decoration-color .2s ease;
}
:where(p, li, dd, td, .field-hint, .prose, .alert, .post-text, .comment-body, .muted, .page-sub) a:not([class]):hover {
  text-decoration-color: currentColor;
}

img, video, canvas, svg { max-width: 100%; }
img, video { height: auto; }
img { border-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:disabled { cursor: not-allowed; }
table { border-collapse: collapse; }
ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
dialog { color: inherit; }
pre, code, kbd, samp { font-family: var(--font-mono); font-size: .92em; }
code:not([class]) { padding: .1em .38em; border-radius: 6px; background: var(--chip-bg); box-shadow: var(--hairline); }
blockquote { margin: 0; }
mark { background: var(--warning-soft); color: inherit; border-radius: 3px; padding: 0 .15em; }

::selection { background: var(--accent); color: #fff; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* İkonlar (sprite) */
.ico {
  display: inline-block;
  flex: none;
  width: var(--ico, 1.25em);
  height: var(--ico, 1.25em);
  vertical-align: -.24em;
  overflow: visible;
}
.ico-on { display: none; }
.is-on > .ico-on, .is-on .act-ico .ico-on { display: inline-block; }
.is-on > .ico-off, .is-on .act-ico .ico-off { display: none; }

/* Kaydırma çubukları */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--text-3); }

/* Erişilebilirlik */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--accent-grad);
  box-shadow: var(--shadow-2);
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Yardımcı sınıflar */
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.text-accent { color: var(--accent-text); }
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.serif { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: .01em; }
.nowrap { white-space: nowrap; }
.small { font-size: 13px; }
.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--text-2); }
.display {
  font: 400 clamp(2.4rem, 1.6rem + 4vw, 4.6rem)/1 var(--font-display);
  letter-spacing: -.035em;
  margin: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font: 700 11px/1.2 var(--font-sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }
.w-full { width: 100%; }
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--hairline), var(--highlight);
}
.paper-cut { box-shadow: 5px 5px 0 -1px var(--accent), 10px 10px 0 -2px var(--navy-2), var(--shadow-2) !important; }
.pulse-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: sz-ping 1.8s var(--ease-out) infinite;
}
.pulse-dot--success { background: var(--success); }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .show-mobile { display: none !important; } }

/* ==========================================================================
   03 · Arka plan efektleri: aurora + gren
   ========================================================================== */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.bg-fx::before {
  /* JS yokken ya da canvas çizilmeden önce statik ışık alanı */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 38% at 14% 8%, rgba(24, 74, 150, .32), transparent 70%),
    radial-gradient(34% 30% at 88% 14%, rgba(224, 49, 58, .1), transparent 70%),
    radial-gradient(46% 40% at 62% 92%, rgba(40, 98, 190, .18), transparent 72%);
  transition: opacity 1.2s ease;
}
[data-theme="kagit"] .bg-fx::before {
  background:
    radial-gradient(40% 36% at 12% 6%, rgba(179, 20, 27, .05), transparent 70%),
    radial-gradient(44% 40% at 86% 18%, rgba(217, 178, 106, .1), transparent 70%),
    radial-gradient(46% 40% at 60% 96%, rgba(4, 29, 59, .05), transparent 72%);
}
.bg-aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.bg-aurora.is-live { opacity: 1; }
.bg-fx:has(.bg-aurora.is-live)::before { opacity: 0; }
/* F0-14: Kâğıt'ta aurora yok (sz.js canvas'ı hiç başlatmaz); yerinde durağan kâğıt dokusu + hafif ışık alanı kalır */
[data-theme="kagit"] .bg-aurora { display: none; }
[data-theme="kagit"] .bg-fx:has(.bg-aurora)::before { opacity: 1; }
.bg-grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: sz-grain 1.2s steps(1) infinite;
}
[data-theme="kagit"] .bg-grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 .1  0 0 0 0 .2  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (max-width: 767px) { .bg-grain { inset: 0; width: 100%; height: 100%; animation: none; } }
/* F0-14: Kâğıt dokusu durağandır — gren kıpırdamaz (baskı hissi; masaüstünde de sürekli yeniden boyama yok) */
[data-theme="kagit"] .bg-grain { inset: 0; width: 100%; height: 100%; animation: none; }

/* ==========================================================================
   04 · Marka kilidi + katmanlı amblem
   ========================================================================== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.brand-mark {
  position: relative;
  flex: none;
  width: 52px;
  aspect-ratio: 1000 / 620;
}
.brand--compact .brand-mark { width: 42px; }
.brand-ly {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .6s var(--ease-spring);
}
.brand-ly--red, .brand-ly--cream { transform-origin: 74.5% 62.9%; }
.brand-ly--navy { filter: drop-shadow(0 2px 3px rgba(2, 20, 40, .18)); }
.brand-ly--red { filter: drop-shadow(0 1px 2px rgba(2, 20, 40, .3)); }
.brand-ly--cream { filter: drop-shadow(0 1px 2px rgba(2, 20, 40, .3)); }
.brand:hover .brand-ly--red { animation: sz-flutter-a .9s var(--ease-out); }
.brand:hover .brand-ly--cream { animation: sz-flutter-b .9s var(--ease-out); }
.brand-word {
  font: 800 19px/1 var(--font-sans);
  letter-spacing: -.012em;
  color: var(--text);
  white-space: nowrap;
}
.brand-word b { font-weight: 800; color: var(--accent); }
.brand--compact .brand-word { font-size: 17px; }

/* Lacivert katman koyu yüzeylerde krem görünür (gece teması + koyu sahneler) */
:root:not([data-theme="kagit"]) :is(.brand-ly--navy, .ly-navy),
.on-dark :is(.brand-ly--navy, .ly-navy),
.auth-stage :is(.brand-ly--navy, .ly-navy) {
  filter: brightness(0) invert(.86) sepia(.22) saturate(1.25) drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
}
.on-dark .brand-word b,
.auth-stage .brand-word b { color: #FF4A51; }

/* Büyük amblem: .emblem[data-emblem] > img.ly.ly-navy + .wings > img.ly.ly-red + img.ly.ly-cream (+ .emblem-say) */
.emblem,
[data-emblem] {
  --mx: 0;
  --my: 0;
  position: relative;
  aspect-ratio: 1000 / 620;
  transform: perspective(1100px) rotateX(calc(var(--my) * -5deg)) rotateY(calc(var(--mx) * 7deg));
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.ly {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.ly-red, .ly-cream { transform-origin: 74.5% 62.9%; }
.ly-navy {
  --depth: 4;
  filter: drop-shadow(0 12px 16px rgba(2, 20, 40, .2));
  translate: calc(var(--mx) * var(--depth) * 1px) calc(var(--my) * var(--depth) * 1px);
}
.ly-red {
  --depth: 10;
  filter: drop-shadow(0 6px 9px rgba(2, 20, 40, .24));
  translate: calc(var(--mx) * var(--depth) * 1px) calc(var(--my) * var(--depth) * 1px);
  animation: sz-unfold 1.25s var(--ease-spring) .35s both, sz-breathe 4.6s ease-in-out 1.6s infinite alternate both;
}
.ly-cream {
  --depth: 16;
  filter: drop-shadow(0 7px 10px rgba(2, 20, 40, .26));
  translate: calc(var(--mx) * var(--depth) * 1px) calc(var(--my) * var(--depth) * 1px);
  animation: sz-unfold 1.2s var(--ease-spring) .2s both, sz-breathe 5.2s ease-in-out 1.4s infinite alternate-reverse both;
}
.wings { position: absolute; inset: 0; transform-origin: 74.5% 62.9%; pointer-events: none; }
.emblem--speak .ly-navy { animation: sz-speak 1.3s var(--ease-out) both; }
.emblem-say {
  position: absolute;
  right: -2%;
  top: -10%;
  padding: .5em .9em .58em;
  font: italic 500 clamp(13px, 1.3vw, 17px)/1 var(--font-display);
  color: var(--cream);
  background: var(--navy);
  border-radius: 1.2em 1.2em 1.2em .2em;
  box-shadow: 0 12px 24px -12px rgba(2, 20, 40, .6), inset 0 0 0 1px rgba(243, 239, 230, .1);
  white-space: nowrap;
  transform-origin: 0 100%;
  opacity: 0;
  pointer-events: none;
}
.emblem-float { animation: sz-float 6.5s ease-in-out 1.5s infinite alternate; }

/* Büyük kelime işareti (kahraman alanları) */
.wordmark {
  display: flex;
  margin: 0;
  font: 800 clamp(2rem, 1.2rem + 4vw, 4.2rem)/1 var(--font-sans);
  letter-spacing: -.012em;
  color: var(--text);
}
.wordmark > span { display: block; transition: translate .45s var(--ease-spring) calc(var(--i, 0) * .028s); animation: sz-letter-in .9s var(--ease-out) calc(.2s + var(--i, 0) * .04s) both; }
.wordmark > .is-red { color: var(--accent); }
.wordmark:hover > span { translate: 0 -.1em; }

/* ==========================================================================
   05 · Site iskeleti: üst çubuk, sol menü, ana sütun, sağ sütun, alt menü, şerit
   ========================================================================== */

.shell {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* Kısa sayfalarda alt bilgi ekranın dibine otursun (altta boş şerit kalmasın) */
body.site { display: flex; flex-direction: column; }
body.site > .shell { flex: 1 0 auto; }
body.site > .site-foot { flex: none; }

.main {
  display: block;
  width: 100%;
  max-width: var(--main-w);
  min-width: 0;
  margin: 0 auto;
  padding: 18px 0 calc(var(--bottom-h) + var(--safe-b) + 32px);
  outline: none;
  view-transition-name: main;
}
.shell--wide .main { max-width: 1080px; }
.shell--panel .main { max-width: 920px; }

/* --- Üst çubuk (mobil + tablet) --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 8px;
  height: calc(var(--nav-h) + var(--safe-t));
  margin: 0 calc(-1 * var(--gutter));
  padding: var(--safe-t) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(180deg, var(--glass-strong), transparent);
  border-bottom: 1px solid transparent;
  transition: transform .4s var(--ease-out), background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
  view-transition-name: topbar;
}
.topbar.is-stuck {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .7);
}
/* F0-14: Kâğıt'ta yapışkan üst çubuk opak kâğıt — altından metin sızmaz, bulanıklık (GPU) maliyeti yok */
[data-theme="kagit"] .topbar.is-stuck {
  background: var(--sticky-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 10px 24px -22px rgba(2, 20, 40, .5);
}
.topbar.is-hidden { transform: translateY(-104%); }
.topbar .brand { view-transition-name: brand; }
.topbar-back { margin-left: -8px; }
.topbar-nav { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.topbar-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease-spring);
}
.topbar-avatar:active { transform: scale(.92); }
.topbar-avatar .avatar { transition: box-shadow .2s ease; }
.topbar-avatar:hover .avatar, .topbar-avatar[aria-expanded="true"] .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--border-strong); }
.topbar-avatar[aria-expanded="true"] .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

/* Hesap menüsü (üst çubuk avatarı): panel, yönetim, hareket tercihi, çıkış */
.menu.account-menu { min-width: 248px; }
.account-menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 6px; min-width: 0; }
.account-menu-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.account-menu-meta strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-meta span { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-form { margin: 0; }
.topbar-bell { position: relative; }
.topbar-bell .count-dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; font-size: 10px; padding: 0 5px; margin: 0; }
.topbar .brand { min-width: 0; }
.topbar .topbar-login { --btn-h: 44px; --btn-px: 16px; }
/* Dar telefonlar: geri düğmesi varken yalnızca amblem; giriş düğmesi simgeye iner */
@media (max-width: 419px) {
  .topbar:has(.topbar-back) .brand-word { display: none; }
}
@media (max-width: 359px) {
  .topbar .brand-word { font-size: 15px; }
  .topbar-login span { display: none; }
  .topbar .topbar-login { width: 44px; padding: 0; justify-content: center; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .topbar-nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
  .topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    font: 650 14px/1 var(--font-sans);
    color: var(--text-2);
    transition: background-color .2s ease, color .2s ease;
  }
  .topbar-link .ico { width: 18px; height: 18px; }
  .topbar-link:hover { color: var(--text); background: var(--chip-bg); }
  .topbar-link.is-active { color: var(--text); background: var(--surface-2); box-shadow: var(--hairline), var(--highlight); }
  .topbar-link.is-active .ico { color: var(--accent-text); }
  .main { padding-bottom: 56px; }
}
@media (min-width: 768px) and (max-width: 919px) {
  .topbar-link span { display: none; }
  .topbar-link { width: 44px; padding: 0; justify-content: center; }
}

/* --- Sol menü (masaüstü) --- */
.side-nav { display: none; }

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font: 600 16px/1.2 var(--font-sans);
  letter-spacing: -.005em;
  color: var(--text-2);
  text-align: left;
  transition: background-color .2s ease, color .2s ease, transform .3s var(--ease-spring);
}
.side-link .ico { width: 24px; height: 24px; transition: transform .45s var(--ease-spring), color .2s ease; }
.side-link:hover { color: var(--text); background: var(--chip-bg); }
.side-link:hover .ico { transform: scale(1.08) rotate(-4deg); }
.side-link:active { transform: scale(.98); }
.side-link.is-active {
  color: var(--text);
  font-weight: 700;
  background: var(--surface-2);
  box-shadow: var(--hairline), var(--highlight);
}
.side-link.is-active .ico { color: var(--accent-text); }
.side-link.is-active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translateY(-50%);
}
.side-link .count-dot { margin-left: auto; }

/* Metinli tema düğmeleri: görünen ad her zaman yapılacak eylemi söyler (aria-pressed kullanılmaz) */
.theme-label-kagit { display: none; }
[data-theme="kagit"] .theme-label-gece { display: none; }
[data-theme="kagit"] .theme-label-kagit { display: inline; }

/* Tercih anahtarı (hareket azaltma vb.): ad sabit, durum aria-pressed / aria-checked ile + bu görsel anahtar */
.pref-switch {
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  margin-left: auto;
  border-radius: 99px;
  background: var(--surface-3);
  box-shadow: var(--hairline), inset 0 1px 3px rgba(0, 0, 0, .25);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.pref-switch::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease-spring);
}
[aria-pressed="true"] > .pref-switch, [aria-checked="true"] > .pref-switch {
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(224, 49, 58, .4), 0 4px 12px -4px var(--accent-glow);
}
[aria-pressed="true"] > .pref-switch::after, [aria-checked="true"] > .pref-switch::after { transform: translateX(14px); }
.side-motion .ico { width: 20px; height: 20px; }

/* Alt bilgi / giriş ekranı tercih düğmeleri */
.foot-pref {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  box-shadow: var(--hairline);
  font: 650 13.5px/1 var(--font-sans);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.foot-pref:hover { color: var(--text); background: var(--surface-2); }
.foot-pref .ico { width: 18px; height: 18px; }
.foot-pref .pref-switch { margin-left: 4px; }
.ico-sun { display: none; }
:root:not([data-theme="kagit"]) .ico-sun { display: inline-block; }
:root:not([data-theme="kagit"]) .ico-moon { display: none; }
[data-theme-toggle] .ico { transition: transform .6s var(--ease-spring); }
[data-theme-toggle]:hover .ico { transform: rotate(-24deg) scale(1.06); }

@media (min-width: 1100px) {
  .shell {
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, var(--main-w));
    grid-template-areas: 'side ticker' 'side main';
    grid-template-rows: auto 1fr;
    justify-content: center;
    column-gap: 36px;
    max-width: calc(var(--side-w) + var(--main-w) + var(--rail-w) + 72px + 2 * var(--gutter));
  }
  .shell--wide { grid-template-columns: var(--side-w) minmax(0, 1040px); max-width: calc(var(--side-w) + 1040px + 36px + 2 * var(--gutter)); }
  .shell--panel { grid-template-columns: var(--side-w) minmax(0, 920px); max-width: calc(var(--side-w) + 920px + 36px + 2 * var(--gutter)); }
  .topbar { display: none; }
  .shell-ticker { grid-area: ticker; }
  .main { grid-area: main; max-width: none; margin: 0; padding: 28px 0 72px; }
  .shell--wide .main, .shell--panel .main { max-width: none; }

  .side-nav {
    grid-area: side;
    grid-row: 1 / -1;
    align-self: start;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100vh;
    height: 100dvh;
    padding: 22px 10px 18px 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    view-transition-name: side-nav;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav > .brand { padding: 0 12px 22px; view-transition-name: brand; }
  .side-nav-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
  .side-cta { margin: 18px 0 6px; }
  .side-nav-foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 18px; }
  .side-theme { font-size: 14.5px; min-height: 44px; color: var(--text-3); }
  .side-theme .ico { width: 20px; height: 20px; }
  .side-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px 10px 10px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--hairline), var(--highlight);
  }
  .side-user-meta { display: flex; flex: 1; min-width: 0; flex-direction: column; line-height: 1.25; }
  .side-user-meta strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-user-meta span { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-user form { margin: 0; }
  .side-guest {
    padding: 16px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--hairline), var(--highlight);
  }
  .side-guest p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
}

/* --- Sağ sütun (geniş ekran) --- */
.rail { display: none; }
@media (min-width: 1280px) {
  .shell--rail {
    grid-template-columns: var(--side-w) minmax(0, var(--main-w)) var(--rail-w);
    grid-template-areas: 'side ticker rail' 'side main rail';
  }
  .shell--rail .rail {
    grid-area: rail;
    grid-row: 1 / -1;
    align-self: start;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 28px 2px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .shell--rail .rail::-webkit-scrollbar { display: none; }
}
.rail-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--hairline), var(--highlight);
}
.rail-card-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  font: 600 17px/1.2 var(--font-display);
  letter-spacing: -.01em;
  color: var(--text);
}
.rail-card-title > .ico { flex: none; width: 18px; height: 18px; color: var(--accent-text); }
.rail-card-title > span { min-width: 0; }
/* Başlık solda; "Tümü" bağlantısı ya da sondaki ikon/düğme sağa yaslanır */
.rail-card-title > a, .rail-card-title > span ~ .ico, .rail-card-title > span ~ button { margin-left: auto; }
.rail-card-title a { font: 650 12.5px/1 var(--font-sans); color: var(--accent-text); letter-spacing: 0; }

/* --- Alt menü (mobil) --- */
.bottom-nav {
  position: fixed;
  z-index: var(--z-bottom);
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  height: calc(var(--bottom-h) + var(--safe-b));
  padding: 0 max(4px, env(safe-area-inset-right)) var(--safe-b) max(4px, env(safe-area-inset-left));
  isolation: isolate;
  /* view-transition-name VERİLMEZ: adlandırılmış öğe "backdrop root" olur ve ::before'daki bulanıklık arkadaki içeriği göremez. */
}
/* Cam zemin + ortadaki düğme için oyuk ayrı katmanda (maske çocukları kesmesin) */
.bottom-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: inset 0 1px 0 var(--border);
  -webkit-mask: radial-gradient(circle 38px at 50% -6px, transparent 36.5px, #000 37.5px);
  mask: radial-gradient(circle 38px at 50% -6px, transparent 36.5px, #000 37.5px);
}
.bottom-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--bottom-h);
  min-width: 0;
  color: var(--text-3);
  font: 650 10.5px/1 var(--font-sans);
  letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease;
}
.bottom-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 30px;
  border-radius: var(--radius-pill);
  transition: background-color .3s ease, transform .4s var(--ease-spring);
}
.bottom-ico .ico { width: 22px; height: 22px; }
.bottom-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.bottom-link:active .bottom-ico { transform: scale(.88); }
.bottom-link.is-active { color: var(--text); }
.bottom-link.is-active .bottom-ico { background: var(--accent-soft); color: var(--accent-text); }
.bottom-link--cta .bottom-ico {
  position: relative;
  width: 56px;
  height: 56px;
  margin-top: -30px;
  margin-bottom: 1px;
  border-radius: 20px;
  color: #fff;
  background: var(--accent-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .16), 0 12px 26px -8px var(--accent-glow);
  transform: rotate(-6deg);
}
.bottom-link--cta .bottom-ico .ico { width: 24px; height: 24px; transform: rotate(6deg); }
.bottom-link--cta.is-active .bottom-ico { background: var(--accent-grad); color: #fff; }
.bottom-link--cta:active .bottom-ico { transform: rotate(-6deg) scale(.9); }
.bottom-link--cta .bottom-label { color: var(--text-2); }
.bottom-link .count-dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; margin: 0; }
@media (min-width: 768px) { .bottom-nav { display: none; } }

/* --- Duyuru şeridi (.ticker) --- */
.shell-ticker { margin: 0 calc(-1 * var(--gutter)); }
.ticker {
  position: relative;
  display: flex;
  align-items: stretch;
  height: var(--ticker-h);
  overflow: hidden;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.ticker-tag {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px 0 16px;
  font: 800 10.5px/1 var(--font-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-grad);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.ticker-tag .pulse-dot { background: #fff; width: 7px; height: 7px; }
.ticker-track {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  font: 600 13px/1 var(--font-sans);
  color: var(--text-2);
  white-space: nowrap;
}
.ticker-item a { color: var(--text); }
.ticker-item a:hover { color: var(--accent-text); }
.ticker-item strong { color: var(--text); }
.ticker-item::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-left: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.ticker-item--accent { color: var(--accent-text); }
.ticker-item--success { color: var(--success); }
.ticker-item--warning { color: var(--warning); }
@media (min-width: 1100px) {
  .shell-ticker { margin: 24px 0 0; }
  .shell-ticker .ticker { border: 0; border-radius: var(--radius); box-shadow: var(--hairline), var(--highlight), var(--shadow-1); }
  .shell-ticker + .main { padding-top: 18px; }
}

/* Genel kayan şerit [data-marquee] */
[data-marquee] { overflow: hidden; }
.marquee-row { display: flex; width: max-content; }
.marquee-group { display: flex; flex: none; align-items: center; }
[data-marquee].is-running .marquee-row { animation: sz-marquee var(--marquee-dur, 40s) linear infinite; }
[data-marquee]:hover .marquee-row,
[data-marquee]:focus-within .marquee-row { animation-play-state: paused; }
.reduce-motion [data-marquee] { overflow-x: auto; scrollbar-width: none; }

/* ==========================================================================
   06 · Sayfa başlığı ve düzen yardımcıları
   ========================================================================== */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 6px 0 22px;
}
.page-head > :first-child { min-width: 0; flex: 1 1 280px; }
.page-title {
  margin: 0;
  font: 500 clamp(1.85rem, 1.25rem + 2.4vw, 2.75rem)/1.04 var(--font-display);
  letter-spacing: -.035em;
  color: var(--text);
  text-wrap: balance;
}
.page-sub { margin: 8px 0 0; max-width: 56ch; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); min-width: 0; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--top { align-items: flex-start; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--gap, 16px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(max(var(--min, 260px), calc((100% - var(--gap, 16px)) / 2)), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(max(var(--min, 200px), calc((100% - 2 * var(--gap, 16px)) / 3)), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(max(var(--min, 148px), calc((100% - 3 * var(--gap, 16px)) / 4)), 1fr)); }
@media (max-width: 380px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.divider {
  height: 1px;
  margin: var(--gap, 22px) 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border-strong) 18%, var(--border-strong) 82%, transparent);
}
.divider[data-label] {
  display: flex;
  align-items: center;
  gap: 14px;
  height: auto;
  background: none;
  font: 700 11px/1 var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.divider[data-label]::before, .divider[data-label]::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }
.sticky-head {
  position: sticky;
  top: var(--sticky-top);
  z-index: var(--z-sticky);
  margin: 0 calc(-1 * var(--gutter));
  padding: 10px var(--gutter);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: top .4s var(--ease-out);
}
@media (min-width: 768px) {
  .sticky-head { top: calc(var(--sticky-top) + 8px); margin: 0 0 16px; padding: 6px 8px; border: 0; border-radius: var(--radius-card); box-shadow: var(--hairline), var(--highlight), var(--shadow-1); }
  .sticky-head > .tabs { border-bottom: 0; }
}
@media (min-width: 1100px) { .sticky-head { top: 12px; } }
/* F0-14: Kâğıt'ta yapışkan başlık opak — mobilde sayfa zemini, masaüstünde yüzen kart olduğu için kart kâğıdı */
[data-theme="kagit"] .sticky-head { background: var(--sticky-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (min-width: 768px) { [data-theme="kagit"] .sticky-head { background: var(--surface-solid); } }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin: 30px 0 14px; }
.section-head h2, .section-title { margin: 0; font: 500 clamp(1.3rem, 1.1rem + .8vw, 1.6rem)/1.15 var(--font-display); letter-spacing: -.02em; }
.section-head a { font-size: 13.5px; font-weight: 650; color: var(--accent-text); }

/* Basit liste (sağ sütun, menüler) */
.list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.list-item:first-child { border-top: 0; }
a.list-item { border-radius: 12px; transition: background-color .2s ease; }
a.list-item:hover { background: var(--chip-bg); }
.list-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-item-title { font-weight: 700; font-size: 14.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item-sub { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-rank { flex: none; width: 22px; font: 600 15px/1 var(--font-display); color: var(--text-3); text-align: center; font-variant-numeric: lining-nums; }

/* ==========================================================================
   07 · Düğmeler
   ========================================================================== */

.btn {
  --btn-h: 44px;
  --btn-px: 18px;
  --spin: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 var(--btn-px);
  border: 0;
  border-radius: var(--radius-pill);
  font: 650 14.5px/1.1 var(--font-sans);
  letter-spacing: .005em;
  color: var(--text);
  background: var(--surface-2);
  box-shadow: var(--hairline), var(--highlight);
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  user-select: none;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .35s var(--ease-spring), translate .35s var(--ease-out), background-color .2s ease, box-shadow .3s ease, color .2s ease, opacity .2s ease, filter .2s ease;
}
.btn .ico { width: 18px; height: 18px; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: scale(.965); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn[disabled], .btn.is-disabled, .btn[aria-disabled="true"] { opacity: .48; pointer-events: none; box-shadow: var(--hairline); }

.btn--primary {
  --spin: #fff;
  color: var(--accent-ink);
  background: var(--accent-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 0 0 1px rgba(224, 49, 58, .35), 0 10px 26px -12px var(--accent-glow);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .26) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn--primary:hover { background: var(--accent-grad); filter: brightness(1.07) saturate(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 0 0 1px rgba(224, 49, 58, .45), 0 14px 34px -12px var(--accent-glow); }
.btn--primary:hover::before { transform: translateX(120%); }
[data-theme="kagit"] .btn--primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 1px 0 rgba(2, 20, 40, .1), 0 8px 18px -10px var(--accent-glow); }

.btn--ghost { background: transparent; box-shadow: none; color: var(--text-2); }
.btn--ghost:hover { background: var(--chip-bg); color: var(--text); }

.btn--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: var(--hairline), var(--highlight), var(--shadow-1);
}
.btn--glass:hover { background: var(--surface-2); }

.btn--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn--outline:hover { background: var(--chip-bg); box-shadow: inset 0 0 0 1.5px var(--text-3); }

.btn--danger { color: var(--danger); background: var(--danger-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 32%, transparent); }
.btn--danger:hover, .btn--danger.btn--solid { --spin: #fff; color: #fff; background: linear-gradient(180deg, #D93A40, #A3161D); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 22px -10px rgba(217, 58, 64, .55); }
.btn--success { color: var(--success); background: var(--success-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 32%, transparent); }
.btn--success:hover, .btn--success.btn--solid { --spin: #fff; color: #fff; background: linear-gradient(180deg, #23B072, #127A4D); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 22px -10px rgba(35, 176, 114, .5); }
.btn--gold { color: #2A1D05; background: linear-gradient(180deg, #F2D79E, #C99A4B); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 22px -12px rgba(217, 178, 106, .6); }
.btn--gold:hover { filter: brightness(1.05); background: linear-gradient(180deg, #F2D79E, #C99A4B); }

.btn--sm { --btn-h: 36px; --btn-px: 14px; font-size: 13px; gap: 6px; }
.btn--sm .ico { width: 16px; height: 16px; }
.btn--lg { --btn-h: 52px; --btn-px: 26px; font-size: 15.5px; gap: 10px; }
.btn--lg .ico { width: 20px; height: 20px; }
.btn--block { display: flex; width: 100%; }
.btn--icon { width: var(--btn-h); padding: 0; flex: none; }
.btn--icon .ico { width: 20px; height: 20px; }
.btn--icon.btn--sm .ico { width: 17px; height: 17px; }
@media (pointer: coarse) { .btn--sm { --btn-h: 40px; } }

.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid var(--spin);
  border-right-color: transparent;
  border-radius: 50%;
  animation: sz-spin .7s linear infinite;
}
.btn.is-copied { color: var(--success); }

.btn-group { display: inline-flex; align-items: stretch; border-radius: var(--radius-pill); box-shadow: var(--hairline); }
.btn-group > .btn { border-radius: 0; box-shadow: none; }
.btn-group > .btn + .btn { box-shadow: inset 1px 0 0 var(--border); }
.btn-group > .btn:first-child { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }
.btn-group > .btn:last-child { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.btn-group > .btn.is-active { background: var(--surface-3); color: var(--text); }

.ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: currentColor;
  opacity: .22;
  transform: scale(0);
  pointer-events: none;
  animation: sz-ripple .65s var(--ease-out) forwards;
}
.btn--primary .ripple, .btn--danger.btn--solid .ripple { background: #fff; }

/* ==========================================================================
   08 · Formlar
   ========================================================================== */

form { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font: 700 13px/1.3 var(--font-sans); color: var(--text); }

.field { position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field + .field { margin-top: 16px; }
:is(.stack, .grid-2, .grid-3, .grid-4, .row, .form-grid) > .field + .field { margin-top: 0; }
.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font: 650 13.5px/1.35 var(--font-sans);
  color: var(--text);
}
.field-label small, .field-label .opt { font-weight: 500; font-size: 12px; color: var(--text-3); }
.field-label .req { color: var(--accent-text); margin-left: 2px; }
.field-hint { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  font: 600 13px/1.45 var(--font-sans);
  color: var(--danger);
  animation: sz-fade-up .3s var(--ease-out);
}
.field-error:empty { display: none; }
.field-error::before {
  content: '!';
  flex: none;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  font: 800 11px/1 var(--font-sans);
  color: #fff;
  background: var(--danger);
}
.field-row { display: flex; align-items: center; gap: 10px; }
.field-row > .input, .field-row > .textarea, .field-row > .select { flex: 1; min-width: 0; }
.field-meta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 30px; }

.input, .textarea, .select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font: 500 16px/1.4 var(--font-sans);
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease;
}
@media (min-width: 768px) { .input, .textarea, .select { font-size: 15px; } }
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: 1; }
.input:hover, .textarea:hover, .select:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.input[readonly], .textarea[readonly] { background: var(--chip-bg); }
.input:disabled, .textarea:disabled, .select:disabled { opacity: .55; }
.textarea { min-height: 124px; line-height: 1.6; resize: vertical; }
.textarea[data-autogrow] { resize: none; overflow-y: hidden; max-height: 60vh; }
.select { padding-right: 46px; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; cursor: pointer; }
.select[multiple] { padding-right: 16px; background-image: none; }
.select option { color: var(--text); background: var(--surface-solid); }
.input[type="file"] { padding: 8px; min-height: 48px; cursor: pointer; }
.input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  font: 650 13px/1 var(--font-sans);
  color: var(--text);
  background: var(--surface-3);
  cursor: pointer;
}
.input[type="color"] { padding: 6px; width: 64px; cursor: pointer; }
.input[type="range"] { padding: 0; border: 0; background: none; box-shadow: none; min-height: 32px; }
.input--sm { min-height: 38px; padding: 8px 12px; font-size: 14px; border-radius: 11px; }
.input--lg { min-height: 56px; font-size: 17px; }

.field.has-error .input, .field.has-error .textarea, .field.has-error .select, .field.has-error .input-group {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}
.field.has-error .input, .field.has-error .textarea, .field.has-error .input-group { animation: sz-shake .4s var(--ease-out); }
.field.is-over-limit .textarea, .field.is-over-limit .input { border-color: var(--danger); }

.input-group {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .25s ease;
}
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input-group > .input, .input-group > .select {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none !important;
}
.input-addon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 0 14px;
  font-weight: 650;
  font-size: 14px;
  color: var(--text-3);
  white-space: nowrap;
}
.input-addon + .input { padding-left: 6px; }
.input-addon:last-child { padding: 0 14px 0 4px; }
.input-addon .ico { width: 18px; height: 18px; }
.input-group > .btn { border-radius: 0; min-height: auto; box-shadow: none; }
.input-group > .btn--icon { width: 46px; }
.input-group > .btn--primary { border-radius: 0 12px 12px 0; }

/* Özel onay kutusu / anahtar: <label class="check"><input type="checkbox"><span>metin</span></label> */
.check, .switch {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.check > input, .switch > input {
  position: absolute;
  top: 6px;
  left: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.check > span, .switch > span { position: relative; display: inline-block; padding-left: 34px; min-height: 22px; }
.check > span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  background: var(--input-bg) no-repeat center / 14px;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .3s var(--ease-spring);
}
.check:hover > span::before { border-color: var(--text-3); }
.check > input:checked + span::before {
  border-color: transparent;
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  box-shadow: 0 4px 14px -4px var(--accent-glow);
  animation: sz-pop .35s var(--ease-spring);
}
.check > input:indeterminate + span::before {
  border-color: transparent;
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}
.check > input[type="radio"] + span::before { border-radius: 50%; }
.check > input[type="radio"]:checked + span::before { background-image: radial-gradient(circle, #fff 0 4px, transparent 4.5px); }
.check > input:focus-visible + span::before, .switch > input:focus-visible + span::before { outline: 2px solid var(--focus); outline-offset: 2px; }
.check > input:disabled + span, .switch > input:disabled + span { opacity: .5; cursor: not-allowed; }
.check > span:empty { padding-left: 22px; }
.check--sm > span { padding-left: 30px; font-size: 13.5px; }

.switch > input { width: 44px; height: 26px; top: 3px; }
.switch > span { padding-left: 56px; min-height: 26px; padding-top: 1px; }
.switch > span::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 44px;
  height: 26px;
  border-radius: 99px;
  background: var(--surface-3);
  box-shadow: var(--hairline), inset 0 1px 3px rgba(0, 0, 0, .25);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.switch > span::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease-spring), width .2s ease;
}
.switch > input:checked + span::before { background: var(--accent); box-shadow: 0 0 0 1px rgba(224, 49, 58, .4), 0 4px 14px -4px var(--accent-glow); }
.switch > input:checked + span::after { transform: translateX(18px); }
.switch:active > span::after { width: 24px; }
.switch > input:checked:active + span::after { transform: translateX(14px); }

/* Radyo kartları */
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 15px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--hairline);
  cursor: pointer;
  transition: box-shadow .25s ease, background-color .2s ease, transform .35s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.radio-card > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  transition: all .25s var(--ease-out);
}
.radio-card:hover { background: var(--surface-2); }
.radio-card:active { transform: scale(.985); }
.radio-card.is-checked, .radio-card:has(input:checked) {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 10px 26px -16px var(--accent-glow);
}
.radio-card.is-checked::after, .radio-card:has(input:checked)::after { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4.5px, transparent 5px); }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.radio-card-ico { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 6px; border-radius: 12px; background: var(--chip-bg); color: var(--accent-text); }
.radio-card-title { font-weight: 700; font-size: 15px; color: var(--text); padding-right: 24px; }
.radio-card-text { font-size: 13px; line-height: 1.45; color: var(--text-3); }

/* Karakter halkası */
.char-ring {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  transition: transform .35s var(--ease-spring);
}
.char-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.char-ring-track { fill: none; stroke: var(--border-strong); stroke-width: 3; }
.char-ring-bar {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .25s var(--ease-out), stroke .2s ease;
}
.char-ring b { position: relative; font: 700 10.5px/1 var(--font-sans); color: var(--text-3); font-variant-numeric: tabular-nums; }
.char-ring.is-warn { transform: scale(1.18); }
.char-ring.is-warn .char-ring-bar { stroke: var(--warning); }
.char-ring.is-warn b { color: var(--warning); }
.char-ring.is-over { transform: scale(1.22); }
.char-ring.is-over .char-ring-bar { stroke: var(--danger); }
.char-ring.is-over b { color: var(--danger); }
.char-ring.is-over svg { animation: sz-pulse-ring 1s ease-in-out infinite; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.form-actions--start { justify-content: flex-start; }
.form-actions--between { justify-content: space-between; }
@media (max-width: 480px) {
  .form-actions > .btn { flex: 1 1 auto; }
}
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form-grid > .field--full { grid-column: 1 / -1; }
.hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; pointer-events: none; }

/* ==========================================================================
   09 · Kartlar ve yüzeyler
   ========================================================================== */

.card {
  --card-p: 20px;
  position: relative;
  min-width: 0;
  padding: var(--card-p);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--hairline), var(--highlight), var(--shadow-1);
}
@media (min-width: 768px) { .card { --card-p: 24px; } }
.card--flush { padding: 0; overflow: hidden; }
.card--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: var(--hairline), var(--highlight), var(--shadow-2);
}
.card--glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(243, 239, 230, .22), rgba(243, 239, 230, 0) 40%, rgba(243, 239, 230, .06) 80%, rgba(224, 49, 58, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
[data-theme="kagit"] .card--glass::before { background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 40%, rgba(4, 29, 59, .06) 80%, rgba(179, 20, 27, .14)); }
.card--hover { transition: transform .45s var(--ease-out), box-shadow .3s ease, background-color .2s ease; }
.card--hover:hover { transform: translateY(-3px); background: var(--surface-2); box-shadow: var(--hairline), var(--highlight), var(--shadow-2); }
a.card { display: block; color: inherit; text-decoration: none; }
.card--accent {
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(140deg, var(--accent), var(--gold) 55%, rgba(217, 178, 106, 0) 85%) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-2), 0 0 40px -18px var(--accent-glow);
}
[data-theme="kagit"] .card--accent {
  background: var(--surface-solid);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--border), 5px 5px 0 -1px var(--accent), 10px 10px 0 -2px var(--navy), var(--shadow-2);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card-head > :first-child { min-width: 0; }
.card-title { margin: 0; font: 600 19px/1.25 var(--font-display); letter-spacing: -.015em; color: var(--text); }
.card-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--text-3); }
.card-body { min-width: 0; }
.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 20px calc(-1 * var(--card-p)) calc(-1 * var(--card-p));
  padding: 14px var(--card-p);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: var(--chip-bg);
}
.card--flush > .card-head { padding: 18px 20px 0; }
.card--flush > .card-foot { margin: 0; }

/* ==========================================================================
   10 · Gönderi kartı + yorum
   ========================================================================== */

.post {
  position: relative;
  min-width: 0;
  padding: 18px 18px 8px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--hairline), var(--highlight);
  transition: background-color .25s ease, box-shadow .3s ease, transform .45s var(--ease-out);
}
@media (min-width: 768px) { .post { padding: 20px 22px 10px; } }
.post:hover { box-shadow: var(--hairline), var(--highlight), var(--shadow-1); }
.post-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.post-head > .avatar { margin-top: 1px; }
.post-author { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 1px 6px; min-width: 0; line-height: 1.3; }
.post-name { font-weight: 700; font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
a.post-name:hover { text-decoration: underline; text-underline-offset: .18em; }
.post-handle { font-size: 13.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; width: 100%; font-size: 12.5px; color: var(--text-3); }
.post-meta > time, .post-meta a { color: inherit; }
.post-meta a:hover { color: var(--text); }
.post-meta .sep { opacity: .6; }
.post-menu { flex: none; margin: -8px -10px 0 auto; color: var(--text-3); }
.post-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -2px 0 10px;
  font: 700 11px/1 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.post-flag .ico { width: 14px; height: 14px; }
.post--pinned .post-flag { color: var(--gold); }
.post-body { margin-top: 12px; min-width: 0; }
.post-title { margin: 0 0 8px; font: 600 clamp(20px, 1.2rem + .6vw, 24px)/1.2 var(--font-display); letter-spacing: -.022em; color: var(--text); }
.post-title a:hover { color: var(--accent-text); }
.post-text { font-size: 15.5px; line-height: 1.68; color: var(--text); overflow-wrap: anywhere; }
.post:not(.post--yazi) .post-text { font: 400 18px/1.55 var(--font-display); letter-spacing: -.004em; }
.post-text p { margin: 0 0 .7em; }
.post-text p:last-child { margin-bottom: 0; }
.post-text blockquote { margin: .6em 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); color: var(--text-2); font-style: italic; }
.post-text ul, .post-text ol { margin: .4em 0 .8em; padding-left: 1.3em; }
.post-text h2 { margin: 1em 0 .4em; font-size: 1.25em; }
.post-text .tag-link, .post-text a.mention { font-family: var(--font-sans); font-size: .88em; }
.post-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font: 700 14px/1 var(--font-sans); color: var(--accent-text); }
.post-more .ico { width: 16px; height: 16px; transition: transform .3s var(--ease-spring); }
.post-more:hover .ico { transform: translateX(3px); }
.post-media { margin-top: 14px; }
.media-grid { display: grid; gap: 4px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--hairline); }
.media-grid--1 { grid-template-columns: 1fr; }
.media-grid--2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 10; }
.media-grid--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 10; }
.media-grid--3 > :first-child { grid-row: 1 / 3; }
.media-grid--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 11; }
.media-item { position: relative; display: block; min-height: 0; overflow: hidden; background: var(--skel); }
.media-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), opacity .4s ease; }
.media-grid--1 .media-item img { max-height: 540px; height: auto; }
.media-item:hover img { transform: scale(1.035); }
.media-more { position: absolute; inset: 0; display: grid; place-items: center; font: 600 28px/1 var(--font-display); color: #fff; background: rgba(3, 11, 23, .55); }
.post-poll, .post-quote { margin-top: 14px; }
.quote-card {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--chip-bg);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: inherit;
  transition: background-color .2s ease, box-shadow .2s ease;
}
a.quote-card:hover { background: var(--surface-2); }
.quote-card-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.quote-card-head strong { color: var(--text); }
.quote-card-text { font: 400 16px/1.5 var(--font-display); color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.post-actions { display: flex; align-items: center; justify-content: space-between; gap: 2px; margin: 10px -10px 0; }
.act {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font: 650 13.5px/1 var(--font-sans);
  white-space: nowrap;
  color: var(--text-3);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, background-color .2s ease;
}
.act .ico { width: 20px; height: 20px; transition: transform .4s var(--ease-spring); }
.act:hover { color: var(--text); background: var(--chip-bg); }
.act:active .ico { transform: scale(.85); }
.act-count { min-width: 1ch; font-variant-numeric: tabular-nums; white-space: nowrap; }
.act--like:hover, .act--like.is-on { color: var(--accent-text); }
.act--like:hover { background: var(--accent-soft); }
.act--like.is-on .ico { animation: sz-like .5s var(--ease-spring); filter: drop-shadow(0 0 8px var(--accent-glow)); }
.act--dislike:hover, .act--dislike.is-on { color: var(--info); }
.act--dislike:hover { background: var(--info-soft); }
.act--comment:hover { color: var(--info); background: var(--info-soft); }
.act--share:hover { color: var(--success); background: var(--success-soft); }
.act--save:hover, .act--save.is-on { color: var(--gold); }
.act--save:hover { background: var(--gold-soft); }
.act[disabled] { opacity: .45; pointer-events: none; }
/* Dar ekranda beş-altı eylem tek satıra sığsın (sayılar asla alt satıra kırılmaz) */
@media (max-width: 419px) {
  .post-actions { margin-inline: -8px; }
  .post-actions .act { gap: 4px; padding: 0 7px; min-width: 40px; font-size: 13px; }
  .post-actions .act .ico { width: 19px; height: 19px; }
}

.post--yazi .post-body { margin-top: 14px; }
.post--pinned { box-shadow: inset 0 0 0 1px rgba(217, 178, 106, .32), var(--highlight); }
.post--featured {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(217, 178, 106, .12), transparent 55%),
    radial-gradient(100% 70% at 0% 100%, var(--accent-soft), transparent 60%),
    var(--surface);
  box-shadow: var(--highlight), var(--shadow-2), 0 0 50px -22px rgba(217, 178, 106, .5);
}
.post--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), rgba(217, 178, 106, .9), rgba(217, 178, 106, .05) 22%, rgba(224, 49, 58, .55) 45%, rgba(217, 178, 106, .05) 70%, rgba(242, 215, 158, .95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: sz-spin-angle 7s linear infinite;
  pointer-events: none;
}
.post--featured .post-flag { color: var(--gold); }

.comment { position: relative; padding: 14px 0 6px; border-top: 1px solid var(--border); min-width: 0; }
.comment:first-child { border-top: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.comment-name { font-weight: 700; font-size: 14.5px; color: var(--text); }
.comment-head time { font-size: 12.5px; color: var(--text-3); }
.comment-body { margin: 6px 0 0 40px; font-size: 15px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.comment-body p { margin: 0 0 .5em; }
.comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 2px 0 0 30px; }
.comment-actions .act { min-height: 36px; font-size: 12.5px; padding: 0 9px; }
.comment-actions .act .ico { width: 17px; height: 17px; }
.comment-replies { margin: 4px 0 0 40px; padding-left: 14px; border-left: 2px solid var(--border); }
.comment-replies .comment { border-top: 0; padding-top: 10px; }
.comment.is-highlight { animation: sz-highlight 2.4s ease; border-radius: 12px; }
.comment.is-pending { opacity: .7; }

/* ==========================================================================
   11 · Çipler, rozetler, avatar
   ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  max-width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  font: 650 13px/1 var(--font-sans);
  color: var(--text-2);
  background: var(--chip-bg);
  box-shadow: var(--hairline);
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .3s var(--ease-spring);
}
.chip .ico { width: 15px; height: 15px; }
a.chip:hover, button.chip:hover, label.chip:hover { color: var(--text); background: var(--surface-2); }
a.chip:active, button.chip:active { transform: scale(.96); }
.chip.is-active, .chip[aria-pressed="true"] { color: var(--accent-text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.chip--accent { color: var(--accent-text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.chip--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }
.chip--gold { color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
.chip--sm { height: 24px; padding: 0 9px; font-size: 12px; gap: 5px; }
.chip--sm .ico { width: 13px; height: 13px; }
.chip--color { color: var(--text); background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--accent)) 38%, transparent); }
.chip--color::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 8px var(--c, var(--accent)); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  font: 700 10.5px/1 var(--font-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--chip-bg);
  box-shadow: var(--hairline);
  white-space: nowrap;
  vertical-align: middle;
  text-decoration: none;
}
.badge .ico { width: 13px; height: 13px; }
.badge--success { color: var(--success); background: var(--success-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 28%, transparent); }
.badge--warning { color: var(--warning); background: var(--warning-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning) 28%, transparent); }
.badge--danger { color: var(--danger); background: var(--danger-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 28%, transparent); }
.badge--info { color: var(--info); background: var(--info-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--info) 28%, transparent); }
.badge--muted { color: var(--text-3); background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }
.badge--accent { color: #fff; background: var(--accent-grad); box-shadow: 0 4px 12px -4px var(--accent-glow); }
.badge--gold { color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 32%, transparent); }
.badge--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
a.badge:hover { filter: brightness(1.1); }

.device-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px 0 6px;
  border-radius: var(--radius-pill);
  font: 600 11.5px/1 var(--font-mono);
  letter-spacing: .05em;
  color: var(--text-2);
  background: var(--chip-bg);
  box-shadow: var(--hairline);
  white-space: nowrap;
  vertical-align: middle;
}
.device-chip .ico { width: 13px; height: 13px; color: var(--accent-text); }

.verified {
  --ico-contrast: var(--bg);
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--gold);
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(217, 178, 106, .35));
}
.verified .ico { width: 17px; height: 17px; }
[data-theme="kagit"] .verified { filter: none; }

.count-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font: 750 11px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg), 0 4px 10px -3px var(--accent-glow);
}
.count-dot--muted { color: var(--text-2); background: var(--surface-3); box-shadow: none; }
/* Okunmamış sayısının anlamı ekran okuyucuya ("Bildirimler 3 okunmamış"); ek CSS'te olduğu için panel.js sayıyı
   güncellediğinde de korunur. Görsel olarak gizli (sr-only ile aynı teknik). */
.count-dot[data-unread]::after {
  content: " okunmamış";
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tag-link { color: var(--accent-text); font-weight: 650; text-decoration: none; }
.tag-link:hover { text-decoration: underline; text-underline-offset: .18em; }

.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  font: 650 11.5px/1 var(--font-mono);
  color: var(--text-2);
  background: var(--surface-2);
  box-shadow: inset 0 -2px 0 var(--border-strong), var(--hairline);
  vertical-align: middle;
}

.avatar {
  --s: 44px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  font: 750 calc(var(--s) * .37)/1 var(--font-sans);
  letter-spacing: .01em;
  color: #fff;
  background: linear-gradient(140deg, hsl(var(--h, 220) 70% 58%), hsl(calc(var(--h, 220) + 38) 64% 34%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 3px 10px -4px rgba(0, 0, 0, .45);
  user-select: none;
  vertical-align: middle;
}
.avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .38), transparent 55%);
}
.avatar[data-initials]::after { content: attr(data-initials); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--xs { --s: 24px; font-size: 9.5px; }
.avatar--sm { --s: 32px; }
.avatar--md { --s: 44px; }
.avatar--lg { --s: 64px; }
.avatar--xl { --s: 112px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border-strong), var(--shadow-2); }
.avatar-stack { display: inline-flex; }
.avatar-stack > .avatar { box-shadow: 0 0 0 2px var(--bg); }
.avatar-stack > .avatar + .avatar { margin-left: -8px; }

/* ==========================================================================
   12 · Sekmeler, segmentli seçim, açılır menü, ipucu
   ========================================================================== */

.tabs {
  position: relative;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  font: 650 14.5px/1 var(--font-sans);
  color: var(--text-3);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, background-color .2s ease;
}
.tab .ico { width: 18px; height: 18px; }
.tab:hover { color: var(--text-2); background: var(--chip-bg); }
.tab.is-active, .tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--text); }
.tab.is-active .ico { color: var(--accent-text); }
.tab::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity .2s ease;
}
.tab.is-active::after, .tab[aria-current="page"]::after { opacity: 1; }
.tabs.has-ink .tab::after { display: none; }
.tab .count-dot { min-width: 18px; height: 18px; font-size: 10px; }
.tabs-ink {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--ink-w, 0);
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translateX(var(--ink-x, 0));
  pointer-events: none;
}
.tabs.ink-ready .tabs-ink { transition: transform .5s var(--ease-spring), width .5s var(--ease-spring), opacity .2s ease; }

/* Hap sekmeler (.tabs--pills) */
.tabs--pills { gap: 4px; padding: 4px; border: 0; border-radius: var(--radius-pill); background: var(--chip-bg); box-shadow: var(--hairline); }
.tabs--pills .tab { min-height: 40px; border-radius: var(--radius-pill); z-index: 1; }
.tabs--pills .tab:hover { background: transparent; }
.tabs--pills .tab::after { display: none; }
.tabs--pills .tab.is-active { background: var(--surface-3); }
.tabs--pills.has-ink .tab.is-active { background: transparent; }
.tabs--pills .tabs-ink { top: 4px; bottom: 4px; height: auto; border-radius: var(--radius-pill); background: var(--surface-3); box-shadow: var(--highlight), var(--shadow-1); z-index: 0; }

/* Yatay kaydırılan şeritler [data-scroll-x]: taşan kenar yumuşakça solar → ekran dışında devamı olduğu belli olur.
   sz.js .is-overflowing / .at-start / .at-end sınıflarını kaydırma ve boyut değişiminde günceller.
   Kendi zemini olan şeritlerde (yapışkan panel sekmeleri, hap sekmeler) maske zemini de soldurur; panel sekmeleri
   aşağıda yapışkan kenar gölgeleriyle aynı ipucunu verir. */
[data-scroll-x].is-overflowing:not(.panel-tabs):not(.tabs--pills) {
  --sx-l: 0px;
  --sx-r: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--sx-l), #000 calc(100% - var(--sx-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--sx-l), #000 calc(100% - var(--sx-r)), transparent 100%);
}
[data-scroll-x].is-overflowing:not(.at-start):not(.panel-tabs):not(.tabs--pills) { --sx-l: 40px; }
[data-scroll-x].is-overflowing:not(.at-end):not(.panel-tabs):not(.tabs--pills) { --sx-r: 40px; }
/* Dar telefonlarda sekmeler biraz sıkışır: bir sonraki sekmenin ucu kenarda görünür kalır */
@media (max-width: 479px) {
  .tabs[data-scroll-x] .tab { padding: 0 12px; gap: 7px; }
}

.seg {
  position: relative;
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  box-shadow: var(--hairline);
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font: 650 13.5px/1 var(--font-sans);
  color: var(--text-3);
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}
.seg-btn .ico { width: 16px; height: 16px; }
.seg-btn > input { position: absolute; opacity: 0; pointer-events: none; }
.seg-btn:hover { color: var(--text-2); }
.seg-btn.is-active, .seg-btn[aria-pressed="true"] { color: var(--text); background: var(--surface-3); box-shadow: var(--highlight); }
.seg.has-ink .seg-btn.is-active, .seg.has-ink .seg-btn[aria-pressed="true"] { background: transparent; box-shadow: none; }
.seg-ink {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--ink-w, 0);
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  box-shadow: var(--highlight), var(--shadow-1);
  transform: translateX(var(--ink-x, 0));
  pointer-events: none;
}
.seg.ink-ready .seg-ink { transition: transform .45s var(--ease-spring), width .45s var(--ease-spring); }
[data-theme="kagit"] .seg-ink, [data-theme="kagit"] .tabs--pills .tabs-ink { background: var(--surface-solid); }

/* Açılır menü: <button data-menu-toggle>…</button><div class="menu" hidden>…</div> */
.menu {
  position: fixed;
  inset: auto;
  z-index: var(--z-drawer);
  min-width: 210px;
  max-width: min(320px, calc(100vw - 16px));
  margin: 0;
  padding: 6px;
  border: 0;
  border-radius: 18px;
  color: var(--text);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
  box-shadow: var(--hairline), var(--highlight), var(--shadow-3);
  overflow: visible;
  opacity: 0;
  transform: translateY(-6px) scale(.97);
  transform-origin: top right;
  transition: opacity .18s ease, transform .3s var(--ease-spring);
}
.menu.is-open { opacity: 1; transform: none; }
.menu[data-align="start"] { transform-origin: top left; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: 600 14px/1.2 var(--font-sans);
  color: var(--text-2);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-item .ico { width: 18px; height: 18px; color: var(--text-3); }
.menu-item:hover, .menu-item:focus-visible { color: var(--text); background: var(--chip-bg); outline: none; }
.menu-item:hover .ico { color: var(--text-2); }
.menu-item--danger, .menu-item--danger .ico { color: var(--danger); }
.menu-item--danger:hover { background: var(--danger-soft); color: var(--danger); }
.menu-sep { height: 1px; margin: 6px 8px; background: var(--border); }
.menu-label { padding: 8px 12px 4px; font: 700 10.5px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

.tip {
  position: fixed;
  z-index: var(--z-tip);
  top: 0;
  left: 0;
  max-width: 260px;
  padding: 7px 11px;
  border-radius: 9px;
  font: 650 12px/1.35 var(--font-sans);
  color: var(--bg);
  background: var(--text);
  box-shadow: var(--shadow-2);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(.96);
  transition: opacity .15s ease, transform .25s var(--ease-out);
}
.tip.is-on { opacity: 1; transform: none; }

/* ==========================================================================
   13 · Pencereler (dialog.modal) — mobilde alt sayfa
   ========================================================================== */

.modal {
  --drag: 0px;
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: min(88vh, 880px);
  max-height: min(88dvh, 880px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface-solid));
  box-shadow: var(--hairline), var(--highlight), var(--shadow-3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(.965);
  transition: opacity .22s ease, transform .45s var(--ease-spring);
}
.modal[open] { display: flex; flex-direction: column; }
.modal.is-in { opacity: 1; transform: translateY(var(--drag)); }
.modal.is-out { opacity: 0; transform: translateY(12px) scale(.98); transition-duration: .2s, .25s; }
.modal.is-dragging { transition: none; }
.modal::backdrop {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  backdrop-filter: blur(6px) saturate(1.2);
  opacity: 0;
  transition: opacity .3s ease;
}
.modal.is-in::backdrop { opacity: 1; }
.modal > form, .modal > .modal-form { display: contents; }
.modal-grab { display: none; }
.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 14px 22px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.modal-title { flex: 1; min-width: 0; margin: 0; font: 600 20px/1.25 var(--font-display); letter-spacing: -.015em; }
.modal-head [data-dialog-close], .modal-head [data-act="cancel"] { margin: -6px -4px -6px 0; }
.modal-badge { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; color: var(--accent-text); background: var(--accent-soft); }
.modal-badge .ico { width: 20px; height: 20px; }
.modal-body { flex: 1 1 auto; min-height: 0; padding: 20px 22px; overflow-y: auto; overscroll-behavior: contain; }
.modal-text { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.modal-text + .field { margin-top: 16px; }
.modal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--chip-bg);
  flex: none;
}
.modal--confirm { width: min(440px, calc(100vw - 32px)); }
.modal--confirm .modal-head { border-bottom: 0; padding-bottom: 0; }
.modal--confirm .modal-body { padding-top: 12px; }
.modal--confirm .modal-foot { border-top: 0; background: transparent; padding-top: 4px; padding-bottom: 20px; }
.modal--danger .modal-badge { color: var(--danger); background: var(--danger-soft); }
.modal--lg { width: min(780px, calc(100vw - 32px)); }
.modal--full { width: min(980px, calc(100vw - 32px)); height: min(90dvh, 900px); }

@media (max-width: 767px) {
  .modal, .modal--confirm, .modal--lg, .modal--full {
    width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 26px 26px 0 0;
    transform: translateY(100%);
    transition: opacity .2s ease, transform .5s var(--ease-out);
  }
  .modal--full { height: 94dvh; }
  .modal.is-in { transform: translateY(var(--drag)); }
  .modal.is-out { transform: translateY(100%); opacity: 1; transition-duration: .1s, .3s; }
  .modal-grab {
    display: block;
    flex: none;
    width: 100%;
    height: 22px;
    margin-bottom: -10px;
    cursor: grab;
    touch-action: none;
    position: relative;
  }
  .modal-grab::before { content: ''; position: absolute; left: 50%; top: 9px; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: var(--border-strong); }
  .modal-head { touch-action: none; padding-left: 20px; }
  .modal-body { padding: 18px 20px; }
  .modal-foot { padding: 12px 20px calc(14px + var(--safe-b)); }
  .modal-foot > .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   14 · Geri bildirim: uyarı, bildirim (toast), boş durum, iskelet, yükleniyor, ilerleme
   ========================================================================== */

.alert {
  --a-c: var(--info);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  background: color-mix(in srgb, var(--a-c) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a-c) 30%, transparent);
}
.alert > .ico:first-child { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--a-c); }
.alert-body { flex: 1; min-width: 0; }
.alert-title { display: block; margin-bottom: 2px; font-weight: 750; color: var(--text); }
.alert [data-dismiss] { flex: none; margin: -8px -8px -8px auto; }
.alert--info { --a-c: var(--info); }
.alert--success { --a-c: var(--success); }
.alert--warning { --a-c: var(--warning); }
.alert--danger { --a-c: var(--danger); }
.alert--accent { --a-c: var(--accent); }

.toasts {
  position: fixed;
  z-index: var(--z-toast);
  left: 50%;
  bottom: calc(var(--bottom-h) + var(--safe-b) + 12px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(440px, calc(100vw - 20px));
  transform: translateX(-50%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .toasts { left: auto; right: 24px; bottom: 24px; transform: none; width: 400px; }
}
.toast {
  --t-c: var(--info);
  --tx: 0px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 8px 10px 12px;
  border-radius: 18px;
  font: 600 14px/1.4 var(--font-sans);
  color: var(--text);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
  box-shadow: var(--hairline), var(--highlight), var(--shadow-3);
  overflow: hidden;
  pointer-events: auto;
  touch-action: pan-y;
  animation: sz-toast-in .55s var(--ease-spring) both;
  transition: transform .3s var(--ease-out), opacity .3s ease;
}
.toast.is-dragging { transition: none; }
.toast.is-leaving { animation: sz-toast-out .32s var(--ease-out) forwards; }
.toast--success { --t-c: var(--success); }
.toast--error { --t-c: var(--danger); }
.toast--warning { --t-c: var(--warning); }
.toast-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 12px; color: var(--t-c); background: color-mix(in srgb, var(--t-c) 16%, transparent); }
.toast-ico .ico { width: 19px; height: 19px; }
.toast-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast-close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); cursor: pointer; }
.toast-close:hover { color: var(--text); background: var(--chip-bg); }
.toast-close .ico { width: 17px; height: 17px; }
.toast-timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--t-c); opacity: .7; transform-origin: left; animation: sz-timer var(--t, 4s) linear forwards; }
.toast.is-paused .toast-timer { animation-play-state: paused; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 22px;
  text-align: center;
  border-radius: var(--radius-card);
  background: radial-gradient(70% 70% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface);
  box-shadow: var(--hairline);
}
.empty--plain { background: transparent; box-shadow: none; padding: 32px 12px; }
.empty-ico {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 6px;
  border-radius: 22px;
  color: var(--accent-text);
  background: var(--surface-2);
  box-shadow: var(--hairline), var(--highlight), 0 14px 34px -14px var(--accent-glow);
  transform: rotate(-6deg);
  animation: sz-float-small 4s ease-in-out infinite alternate;
}
.empty-ico .ico { width: 30px; height: 30px; transform: rotate(6deg); }
.empty-title { margin: 0; font: 500 22px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--text); }
.empty-text { margin: 0; max-width: 42ch; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }

.skeleton { position: relative; display: block; pointer-events: none; }
.skel-line, .skel-avatar, .skel-card, .skel-pill, [data-skeleton]:not(.is-loaded):not(img) {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--skel);
}
.skel-line { height: 12px; width: var(--w, 100%); margin: 10px 0; border-radius: 6px; }
.skel-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; }
.skel-avatar--sm { width: 32px; height: 32px; }
.skel-card { height: var(--h, 160px); border-radius: var(--radius-card); }
.skel-pill { width: 64px; height: 28px; border-radius: 99px; }
.skel-line::after, .skel-avatar::after, .skel-card::after, .skel-pill::after, [data-skeleton]:not(.is-loaded):not(img)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, var(--skel-shine) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: sz-shimmer 1.5s ease-in-out infinite;
}
img[data-skeleton] { opacity: 0; transition: opacity .5s ease; }
img[data-skeleton].is-loaded { opacity: 1; }
.skel-post, .skel-comment { padding: 18px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--hairline); }
.skel-post + .skel-post { margin-top: 12px; }
.skel-comment { padding: 14px 0; background: none; box-shadow: none; border-top: 1px solid var(--border); border-radius: 0; }
.skel-row { display: flex; align-items: center; gap: 12px; }
.skel-col { flex: 1; min-width: 0; }
.skel-col .skel-line { margin: 6px 0; }
.skel-actions { justify-content: space-between; margin-top: 14px; }
.skel-list-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; }

.spinner {
  display: inline-block;
  flex: none;
  width: var(--s, 20px);
  height: var(--s, 20px);
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: .85;
  vertical-align: middle;
  animation: sz-spin .7s linear infinite;
}
.spinner--lg { --s: 34px; border-width: 3px; color: var(--accent); }
.loading-block { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 32px; color: var(--text-3); font-size: 14px; }

.progress {
  --p: 0;
  position: relative;
  display: block;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  box-shadow: var(--hairline);
  overflow: hidden;
}
.progress::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(var(--p));
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.progress::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--p) * 100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: translateX(-100%);
  animation: sz-shimmer 2.4s ease-in-out infinite;
}
.progress--gold::before { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.progress--success::before { background: linear-gradient(90deg, #6BE3A8, var(--success)); }
.progress--lg { height: 10px; }

/* ==========================================================================
   15 · Veri: tablo, istatistik kutuları, araç çubuğu, sayfalama, kv, zaman çizelgesi, grafik
   (Yönetim yoğunluk ayarları admin.css'te; burada panel ve site için temel sürümler.)
   ========================================================================== */

.table-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--hairline), var(--highlight);
  -webkit-overflow-scrolling: touch;
}
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th {
  padding: 12px 14px;
  font: 700 11px/1.25 var(--font-sans);
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-3);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 60%, transparent);
}
.table td { padding: 12px 14px; color: var(--text-2); vertical-align: middle; border-bottom: 1px solid var(--border); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .15s ease; }
.table tbody tr:hover { background: var(--chip-bg); }
.table tr.is-selected { background: var(--accent-soft); }
.table tr.is-selected:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.table td strong, .table td a:not(.btn):not(.chip):not(.badge) { color: var(--text); font-weight: 650; }
.table td a:not(.btn):not(.chip):not(.badge):hover { color: var(--accent-text); }
.table .num, .table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .check-col { width: 44px; padding-right: 0; }
.table .check-col .check { min-height: 22px; padding: 0; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.table th[data-sort] { cursor: pointer; user-select: none; transition: color .2s ease; }
.table th[data-sort]:hover { color: var(--text); }
.table th[data-sort]::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: 1px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom-width: 0;
  opacity: .35;
  transition: transform .25s var(--ease-out), opacity .2s ease;
}
.table th[aria-sort="ascending"]::after { opacity: 1; transform: rotate(180deg); color: var(--accent-text); }
.table th[aria-sort="descending"]::after { opacity: 1; color: var(--accent-text); }
.table-empty td { padding: 40px 16px; text-align: center; color: var(--text-3); }
.table-wrap--scroll .table { min-width: 720px; }

@media (max-width: 767px) {
  .table-wrap:not(.table-wrap--scroll) { overflow: visible; background: transparent; box-shadow: none; border-radius: 0; }
  .table-wrap:not(.table-wrap--scroll) .table,
  .table-wrap:not(.table-wrap--scroll) .table tbody,
  .table-wrap:not(.table-wrap--scroll) .table tr,
  .table-wrap:not(.table-wrap--scroll) .table td { display: block; width: 100%; }
  .table-wrap:not(.table-wrap--scroll) .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap:not(.table-wrap--scroll) .table tr {
    position: relative;
    margin-bottom: 10px;
    padding: 6px 14px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--hairline), var(--highlight);
  }
  .table-wrap:not(.table-wrap--scroll) .table tr.is-selected { box-shadow: inset 0 0 0 1.5px var(--accent); }
  .table-wrap:not(.table-wrap--scroll) .table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 42px;
    padding: 7px 0;
    text-align: right;
    border-bottom: 1px solid var(--border);
  }
  .table-wrap:not(.table-wrap--scroll) .table td:last-child { border-bottom: 0; }
  .table-wrap:not(.table-wrap--scroll) .table td::before {
    content: attr(data-label);
    flex: none;
    max-width: 45%;
    font: 700 10.5px/1.3 var(--font-sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: left;
    color: var(--text-3);
  }
  .table-wrap:not(.table-wrap--scroll) .table td:not([data-label])::before { content: none; }
  .table-wrap:not(.table-wrap--scroll) .table td:not([data-label]) { justify-content: flex-start; text-align: left; }
  .table-wrap:not(.table-wrap--scroll) .table td.check-col { justify-content: flex-start; min-height: 44px; padding: 4px 0; }
  .table-wrap:not(.table-wrap--scroll) .table td.check-col::before { content: 'Seç'; order: 2; max-width: none; }
  .table-wrap:not(.table-wrap--scroll) .table td.check-col .check { order: 1; }
  .table-wrap:not(.table-wrap--scroll) .table td.table-actions { justify-content: flex-end; flex-wrap: wrap; }
  .table-wrap:not(.table-wrap--scroll) .table tbody tr:hover { background: var(--surface); }
}

.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 768px) { .stat-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 16px 15px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--hairline), var(--highlight);
  overflow: hidden;
  isolation: isolate;
}
.stat::before {
  content: '';
  position: absolute;
  inset: auto -30% -60% auto;
  z-index: -1;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--stat-c, var(--accent-soft)), transparent 70%);
  opacity: .9;
}
.stat-label { padding-right: 44px; font: 650 12.5px/1.3 var(--font-sans); color: var(--text-3); }
.stat-value {
  font: 500 clamp(26px, 1.4rem + 1.2vw, 36px)/1 var(--font-display);
  letter-spacing: -.03em;
  color: var(--text);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font: 700 11.5px/1 var(--font-sans);
  color: var(--text-3);
  background: var(--chip-bg);
}
.stat-delta.is-up { color: var(--success); background: var(--success-soft); }
.stat-delta.is-down { color: var(--danger); background: var(--danger-soft); }
.stat-delta.is-up::before { content: '↑'; }
.stat-delta.is-down::before { content: '↓'; }
.stat-ico {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--accent-text);
  background: var(--accent-soft);
}
.stat-ico .ico { width: 19px; height: 19px; }
/* Dar kutucuk (2 sütunlu telefon ızgarası): ikon üste, etiket tam genişlik — uzun kelimeler ikonun altına girmez */
.stat { container-type: inline-size; }
@container (max-width: 150px) {
  .stat-ico { position: static; order: -1; width: 34px; height: 34px; border-radius: 11px; margin-bottom: 2px; }
  .stat-ico .ico { width: 17px; height: 17px; }
  .stat-label { padding-right: 0; }
}
.stat--gold { --stat-c: var(--gold-soft); } .stat--gold .stat-ico { color: var(--gold); background: var(--gold-soft); }
.stat--success { --stat-c: var(--success-soft); } .stat--success .stat-ico { color: var(--success); background: var(--success-soft); }
.stat--info { --stat-c: var(--info-soft); } .stat--info .stat-ico { color: var(--info); background: var(--info-soft); }
.stat--warning { --stat-c: var(--warning-soft); } .stat--warning .stat-ico { color: var(--warning); background: var(--warning-soft); }
.stat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-3); }
.stat .chart-spark { margin: 4px -4px -4px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--hairline), var(--highlight);
}
.toolbar-search { position: relative; flex: 1 1 240px; min-width: 0; }
.toolbar-search > .ico { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.toolbar-search .input { min-height: 42px; padding-left: 42px; border-radius: var(--radius-pill); }
.toolbar-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar-filters .select, .toolbar-filters .input { width: auto; min-height: 42px; border-radius: var(--radius-pill); }
.toolbar-filters .select { padding-top: 8px; padding-bottom: 8px; }
.toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
@media (max-width: 600px) {
  .toolbar-filters { width: 100%; }
  .toolbar-filters > * { flex: 1 1 140px; }
  .toolbar-filters .select { width: 100%; }
  .toolbar-actions { width: 100%; margin-left: 0; }
  .toolbar-actions > .btn { flex: 1 1 auto; }
}

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 6px; }
.pagination .page {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  font: 650 14px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  background: var(--chip-bg);
  box-shadow: var(--hairline);
  transition: background-color .2s ease, color .2s ease, transform .3s var(--ease-spring);
}
.pagination .page .ico { width: 18px; height: 18px; }
.pagination a.page:hover { color: var(--text); background: var(--surface-2); }
.pagination a.page:active { transform: scale(.94); }
.pagination .page.is-active { color: #fff; background: var(--accent-grad); box-shadow: 0 8px 20px -8px var(--accent-glow); }
.pagination .page.is-disabled { opacity: .4; pointer-events: none; }
.pagination .page-gap { color: var(--text-3); padding: 0 4px; }
.pagination-info { width: 100%; text-align: center; font-size: 12.5px; color: var(--text-3); margin-top: 4px; }

.kv { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); margin: 0; font-size: 14px; }
.kv dt { padding: 11px 18px 11px 0; font-weight: 650; color: var(--text-3); border-bottom: 1px solid var(--border); }
.kv dd { margin: 0; padding: 11px 0; color: var(--text); border-bottom: 1px solid var(--border); min-width: 0; overflow-wrap: anywhere; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
@media (max-width: 480px) {
  .kv { grid-template-columns: 1fr; }
  .kv dt { padding: 10px 0 2px; border-bottom: 0; font-size: 12px; letter-spacing: .04em; }
  .kv dd { padding: 0 0 10px; }
}

.timeline { position: relative; margin: 0; padding: 0 0 0 30px; list-style: none; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--border-strong), transparent); }
.tl-item { position: relative; padding: 0 0 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 0 0 2px var(--border-strong);
}
.tl-item.is-done::before { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.tl-item.is-current::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: sz-beacon 2s ease-in-out infinite; }
.tl-item.is-danger::before { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.tl-item.is-warning::before { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); }
.tl-title { font-weight: 700; font-size: 14.5px; color: var(--text); }
.tl-time { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.tl-body { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--text-2); }

.chart { position: relative; width: 100%; min-width: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: var(--border); stroke-width: 1; }
.chart-axis { fill: var(--text-3); font: 600 10.5px var(--font-sans); }
.chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { pointer-events: none; }
.chart-cross { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .15s ease; }
.chart-dot { stroke: var(--surface-solid); stroke-width: 2.5; opacity: 0; transition: cy .15s ease, opacity .15s ease; }
.chart.is-hover .chart-cross, .chart.is-hover .chart-dot { opacity: 1; }
.chart-bar { transform-box: fill-box; transform-origin: bottom; animation: sz-bar .8s var(--ease-out) calc(var(--i, 0) * 25ms) both; transition: opacity .2s ease; }
.chart-bar:hover { opacity: .8; }
.chart-tip {
  position: absolute;
  top: -6px;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 120px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--hairline), var(--shadow-2);
  transform: translate(-50%, -100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}
.chart-tip.is-on { opacity: 1; }
.chart-tip strong { font-size: 12.5px; }
.chart-tip span { display: flex; align-items: center; gap: 6px; color: var(--text-2); white-space: nowrap; }
.chart-tip i, .chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }
.chart-tip b { margin-left: auto; padding-left: 8px; color: var(--text); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.chart-legend-item { display: inline-flex; align-items: center; gap: 7px; cursor: default; }
.chart-legend-item b { color: var(--text); font-weight: 700; }
.chart--donut { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.chart--donut .chart-legend { flex-direction: column; margin: 0; gap: 8px; }
.chart-donut-wrap { position: relative; flex: none; }
.chart-donut-wrap svg { width: 180px; height: 180px; transform: rotate(0deg); }
.chart-donut-track { fill: none; stroke: var(--chip-bg); stroke-width: 5; }
.chart-donut-seg { fill: none; stroke-width: 5; transition: stroke-dasharray 1.1s var(--ease-out), opacity .2s ease; }
.chart-donut-seg.is-dim { opacity: .25; }
.chart-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.chart-donut-center b { font: 500 28px/1 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.chart-donut-center span { margin-top: 4px; font-size: 11.5px; color: var(--text-3); max-width: 100px; }
.chart-spark { display: block; width: 100%; height: 36px; }
.chart-spark svg { width: 100%; height: 100%; }
.chart-spark-line { fill: none; stroke-width: 2; stroke-linecap: round; }
.chart-spark-area { opacity: .14; }

/* ==========================================================================
   16 · Hata sayfaları
   ========================================================================== */

.error-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 7vh, 90px) 8px 48px;
  text-align: center;
  isolation: isolate;
}
.error-hero--solo { min-height: 100vh; min-height: 100dvh; justify-content: center; padding: 40px 20px; }
.error-art { position: relative; width: min(100%, 560px); margin-bottom: 8px; }
.error-code {
  position: relative;
  margin: 0;
  font: italic 600 clamp(150px, 42vw, 300px)/.8 var(--font-display);
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  user-select: none;
  font-variant-numeric: lining-nums;
}
.error-code::after {
  content: attr(data-code);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 0;
  background: linear-gradient(100deg, transparent 30%, var(--accent) 45%, var(--gold) 55%, transparent 70%) no-repeat;
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .9;
  animation: sz-sweep 5s var(--ease-inout) 1s infinite;
}
.error-emblem { position: absolute; left: 50%; top: 50%; width: clamp(110px, 26vw, 190px); translate: -50% -58%; z-index: 1; }
.error-title { margin: 6px 0 10px; font: 500 clamp(28px, 1.6rem + 1.6vw, 42px)/1.08 var(--font-display); letter-spacing: -.03em; }
.error-text { max-width: 48ch; margin: 0 auto; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.error-debug {
  width: 100%;
  max-width: 900px;
  max-height: 50vh;
  margin: 32px 0 0;
  padding: 16px;
  overflow: auto;
  text-align: left;
  white-space: pre-wrap;
  font: 12px/1.55 var(--font-mono);
  color: var(--text-2);
  background: var(--input-bg);
  border-radius: var(--radius);
  box-shadow: var(--hairline);
}
.error-tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
/* Yalın hata sayfası (500): üstte marka + tema düğmesi, ortada kahraman */
.error-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(14px + var(--safe-t)) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}
.error-main { display: block; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) calc(40px + var(--safe-b)); outline: none; }
.error-page--solo .error-hero { min-height: calc(100vh - 80px); min-height: calc(100dvh - 80px); justify-content: center; padding-top: 12px; }

/* ==========================================================================
   17 · Giriş (auth) bölünmüş yerleşim
   ========================================================================== */

.auth { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'brand emblem' 'kicker emblem' 'title title';
  align-items: center;
  gap: 4px 12px;
  padding: calc(14px + var(--safe-t)) 20px 30px;
  color: var(--cream);
  background:
    radial-gradient(90% 80% at 85% 10%, rgba(224, 49, 58, .22), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgba(40, 98, 190, .28), transparent 60%),
    var(--stage-bg);
  isolation: isolate;
}
[data-theme="kagit"] .auth-stage {
  background:
    radial-gradient(90% 80% at 85% 10%, rgba(200, 38, 42, .25), transparent 60%),
    linear-gradient(rgba(4, 29, 59, .86), rgba(4, 29, 59, .86)),
    var(--stage-bg) url('../img/paper.webp');
  background-blend-mode: normal, normal, multiply;
}
.auth-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.auth-stage .brand { grid-area: brand; color: var(--cream); }
.auth-stage .brand-word { color: var(--cream); }
.auth-emblem { grid-area: emblem; width: 112px; }
.auth-kicker { grid-area: kicker; margin: 0; font: 700 10.5px/1.3 var(--font-sans); letter-spacing: .26em; text-transform: uppercase; color: rgba(243, 239, 230, .72); }
.auth-title { grid-area: title; margin: 10px 0 0; font: 400 clamp(26px, 6.4vw, 34px)/1.08 var(--font-display); letter-spacing: -.03em; color: var(--cream); }
.auth-title em { font-style: italic; color: #FF6B70; }
.auth-text { display: none; }
.auth-bubbles { display: none; }
.auth-edge { position: absolute; z-index: 2; pointer-events: none; overflow: visible; }
.auth-edge--v { display: none; }
.auth-edge--h { left: 0; right: 0; top: calc(100% - 1px); width: 100%; height: 30px; }
.auth-edge .e-red { fill: var(--red-bright); }
.auth-edge .e-cream { fill: var(--cream); }
.auth-edge .e-shade { fill: rgba(2, 20, 40, .28); }
.auth-edge .e-navy { fill: var(--stage-bg); }
.auth-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 34px 16px calc(40px + var(--safe-b));
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: stretch;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  min-height: 44px;
  font: 650 14px/1 var(--font-sans);
  color: var(--text-2);
}
.auth-back:hover { color: var(--text); }
.auth-back .ico { width: 18px; height: 18px; transition: transform .3s var(--ease-spring); }
.auth-back:hover .ico { transform: translateX(-3px); }
.auth-card { width: 100%; max-width: 460px; --card-p: 24px; border-radius: 28px; animation: sz-rise-in .8s var(--ease-out) both; }
/* F0-14: Kâğıt'ta giriş/başvuru kartı da diğer kartlar gibi kart yarıçapı belirtecine bağlı (12px); Gece'de 28px kalır */
[data-theme="kagit"] .auth-card { border-radius: var(--radius-card); }
.auth-card h1 { margin: 0 0 6px; font: 500 clamp(28px, 1.5rem + 1.4vw, 36px)/1.08 var(--font-display); letter-spacing: -.03em; }
.auth-card .page-sub, .auth-card .auth-sub { margin: 0 0 22px; color: var(--text-2); font-size: 15px; }
.auth-foot { max-width: 460px; width: 100%; text-align: center; font-size: 13px; color: var(--text-3); }
.auth-foot a { color: var(--accent-text); font-weight: 650; }

@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(420px, 44%) minmax(0, 1fr); }
  .auth-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 48px clamp(40px, 5vw, 80px);
    overflow: visible;
  }
  .auth-stage .brand { position: absolute; top: 34px; left: clamp(40px, 5vw, 80px); }
  .auth-emblem { width: min(440px, 88%); margin: 0 0 18px -2%; }
  .auth-kicker { display: flex; align-items: center; gap: 14px; font-size: 11px; }
  .auth-kicker::before { content: ''; width: 40px; height: 2px; border-radius: 2px; background: #FF4A51; }
  .auth-title { margin: 0; max-width: 13ch; font-size: clamp(40px, 3.6vw, 62px); }
  .auth-text { display: block; max-width: 38ch; margin: 4px 0 0; font-size: 16px; line-height: 1.65; color: rgba(243, 239, 230, .76); }
  .auth-bubbles { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
  .auth-bubble {
    position: absolute;
    padding: .5em .95em .58em;
    font: italic 400 15px/1 var(--font-display);
    color: var(--navy);
    background: rgba(252, 250, 245, .94);
    border-radius: 1.3em;
    box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .5);
    animation: sz-bob 7s ease-in-out infinite alternate;
  }
  .auth-bubble::after { content: ''; position: absolute; left: 16px; bottom: -6px; width: 12px; height: 12px; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); }
  .auth-bubble:nth-child(1) { right: 12%; top: 16%; animation-duration: 8s; }
  .auth-bubble:nth-child(2) { right: 26%; bottom: 14%; animation-duration: 9.5s; animation-delay: -3s; }
  .auth-bubble:nth-child(3) { left: 46%; top: 9%; animation-duration: 7s; animation-delay: -1.5s; opacity: .8; }
  .auth-edge--h { display: none; }
  .auth-edge--v { display: block; top: 0; bottom: 0; left: calc(100% - 1px); width: clamp(42px, 4vw, 70px); height: 100%; }
  .auth-main { justify-content: center; padding: 48px clamp(28px, 6vw, 96px) 48px calc(clamp(42px, 4vw, 70px) + clamp(24px, 4vw, 64px)); }
  .auth-card { --card-p: 32px; }
}

/* ==========================================================================
   18 · Yazar paneli yerleşimi
   ========================================================================== */

.panel-wrap { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel-tabs {
  position: sticky;
  top: var(--sticky-top);
  z-index: var(--z-sticky);
  display: flex;
  gap: 6px;
  margin: -6px calc(-1 * var(--gutter)) 0;
  padding: 10px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: top .4s var(--ease-out);
}
/* F0-14: Kâğıt'ta yapışkan panel sekmeleri de opak kâğıt */
[data-theme="kagit"] .panel-tabs { background: var(--sticky-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.panel-tabs::-webkit-scrollbar { display: none; }
/* Taşan panel sekmelerinde yapışkan kenar gölgeleri (zemin camsı olduğundan maske yerine): devamı olduğunu gösterir */
.panel-tabs.is-overflowing::before,
.panel-tabs.is-overflowing::after {
  content: '';
  position: sticky;
  z-index: 2;
  flex: none;
  align-self: stretch;
  width: 36px;
  margin: -10px 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.panel-tabs.is-overflowing::before { left: calc(-1 * var(--gutter)); margin-right: -42px; background: linear-gradient(90deg, var(--bg) 18%, transparent); }
.panel-tabs.is-overflowing::after { right: calc(-1 * var(--gutter)); margin-left: -42px; background: linear-gradient(270deg, var(--bg) 18%, transparent); }
.panel-tabs.is-overflowing:not(.at-start)::before,
.panel-tabs.is-overflowing:not(.at-end)::after { opacity: 1; }
.panel-tab {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font: 650 14px/1 var(--font-sans);
  color: var(--text-2);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, color .2s ease, transform .3s var(--ease-spring);
}
.panel-tab .ico { width: 18px; height: 18px; }
.panel-tab:hover { color: var(--text); background: var(--chip-bg); }
.panel-tab:active { transform: scale(.95); }
.panel-tab.is-active { color: var(--bg); background: var(--text); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .55); }
.panel-tab.is-active .ico { color: var(--accent); }
.panel-tab .count-dot { min-width: 18px; height: 18px; font-size: 10px; }
.panel-body { min-width: 0; }
@media (min-width: 1100px) {
  .panel-tabs {
    top: 14px;
    margin: 0;
    padding: 6px;
    border: 0;
    border-radius: var(--radius-pill);
    box-shadow: var(--hairline), var(--highlight), var(--shadow-1);
  }
  /* Masaüstünde sekiz sekme tek satıra sığar ve satırı eşit doldurur */
  .panel-tab { flex: 1 1 auto; justify-content: center; gap: 6px; padding: 0 10px; font-size: 13.5px; }
}

/* ==========================================================================
   19 · Alt bilgiler
   ========================================================================== */

.rail-foot { padding: 8px 6px 4px; font-size: 12.5px; color: var(--text-3); }
.rail-foot-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rail-foot-links a { color: var(--text-3); transition: color .2s ease; }
.rail-foot-links a:hover { color: var(--text); }
.rail-foot-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; line-height: 1.6; }
.rail-foot-social { display: flex; gap: 4px; margin-top: 10px; }
.rail-foot-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text-3); background: var(--chip-bg); transition: color .2s ease, background-color .2s ease; }
.rail-foot-social a:hover { color: var(--text); background: var(--surface-2); }
.rail-foot-social .ico { width: 16px; height: 16px; }

.site-foot {
  position: relative;
  margin-top: 40px;
  padding: 44px var(--gutter) calc(var(--bottom-h) + var(--safe-b) + 36px);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 70%, transparent));
  overflow: hidden;
  isolation: isolate;
}
.site-foot-mark {
  position: absolute;
  z-index: -1;
  right: -2vw;
  bottom: -.24em;
  font: italic 600 clamp(140px, 30vw, 380px)/.8 var(--font-display);
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--border);
  user-select: none;
  pointer-events: none;
}
.site-foot-inner { display: grid; gap: 28px; max-width: 1120px; margin: 0 auto; }
.site-foot-brand .brand-word { font-size: 26px; }
.site-foot-brand p { margin: 10px 0 0; max-width: 30ch; font: italic 400 19px/1.4 var(--font-display); color: var(--text-2); }
.site-foot-brand .row { margin-top: 18px; }
.site-foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; align-content: start; }
.site-foot-links a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .2s ease; }
.site-foot-links a:hover { color: var(--text); }
.site-foot-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-3);
}
@media (min-width: 768px) {
  .site-foot { padding-bottom: 40px; }
  .site-foot-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .site-foot-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
  .site-foot-copy { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .site-foot--rail { display: none; }
}
.site-foot-copy .device-chip { margin-left: 4px; }
/* İmza satırı (partials/credits.php) */
.foot-credits { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.foot-credits a { color: var(--text-2); font-weight: 600; text-decoration: none; transition: color .2s ease; }
.foot-credits a b { color: var(--accent-text); font-weight: 700; }
.foot-credits a:hover, .foot-credits a:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-credits-sep { opacity: .6; }
.rail-foot-credits { margin: 6px 0 0; line-height: 1.6; }
.auth-credits { margin: 14px 0 0; font-size: 12.5px; color: var(--text-3); text-align: center; }
.site-foot-prefs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
/* Masaüstünde aynı düğme sol menüde (side-nav-foot) — tekrar etmesin */
@media (min-width: 1100px) { .site-foot-prefs { display: none; } }
.auth-prefs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 460px; width: 100%; }

/* tur2 pwa: "Uygulamayı indir" düğmeleri (data-install; HTML'de hidden, yüklenebilir olunca pwa.js gösterir).
   Şerit ve tarif penceresi stilleri assets/css/pwa.css'te (gerektiğinde yüklenir). */
.side-install .ico, .foot-pref[data-install] .ico, .menu-item[data-install] .ico, .topbar-install .ico { color: var(--accent-text); }
.side-install:hover { color: var(--text); }
/* En dar telefonlarda üst çubuk taşmasın: düğme hesap menüsünde ve alt bilgide de var */
@media (max-width: 359px) { .topbar-install { display: none !important; } }

/* ==========================================================================
   20 · Efektler + hareket
   ========================================================================== */

/* Kaydırınca belirme (JS yoksa içerik her zaman görünür) */
.js [data-reveal] {
  opacity: 0;
  transition: opacity .8s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s), filter .8s var(--ease-out) var(--d, 0s);
}
.js [data-reveal=""], .js [data-reveal="up"] { transform: translateY(26px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="blur"] { filter: blur(10px); transform: translateY(10px); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js:not(.js-ok) [data-reveal] { animation: sz-reveal-failsafe .01s linear 3s forwards; }

/* 3B eğim + parlama */
[data-tilt] { transform-style: preserve-3d; transition: transform .7s var(--ease-out); will-change: transform; }
[data-tilt].is-tilting { transition: transform .12s linear; }
.tilt-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .2), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
[data-tilt].is-tilting .tilt-glare { opacity: 1; }
[data-magnetic] { transition: translate .4s var(--ease-out), transform .35s var(--ease-spring), background-color .2s ease, box-shadow .3s ease, filter .2s ease; }

/* Parçacık patlaması */
.burst-layer { position: fixed; z-index: var(--z-toast); width: 0; height: 0; pointer-events: none; }
.burst-p { position: absolute; left: 0; top: 0; width: var(--s, 6px); height: var(--s, 6px); border-radius: 50%; }
.burst-p--line { width: 2.5px; height: 11px; border-radius: 2px; }
.burst-ring { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border: 2px solid; border-radius: 50%; }

/* Görünüm geçişleri (sayfalar arası) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: var(--ease-out); }
::view-transition-old(main) { animation: .2s var(--ease-out) both sz-vt-out; }
::view-transition-new(main) { animation: .48s var(--ease-out) both sz-vt-in; }
::view-transition-group(brand), ::view-transition-group(side-nav), ::view-transition-group(topbar) { animation-duration: .4s; }
.vt-theme :is(.main, .brand, .side-nav, .topbar, .bottom-nav, .side-nav .brand, .topbar .brand) { view-transition-name: none !important; }
.vt-theme::view-transition-old(root), .vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.vt-theme::view-transition-new(root) { z-index: 2; }

/* Kare animasyonları */
@keyframes sz-spin { to { transform: rotate(360deg); } }
@keyframes sz-spin-angle { to { --angle: 360deg; } }
@keyframes sz-ping { to { transform: scale(3); opacity: 0; } }
@keyframes sz-grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(-1%, 1%); }
}
@keyframes sz-marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes sz-ripple { to { transform: scale(1); opacity: 0; } }
@keyframes sz-shimmer { 60%, 100% { transform: translateX(100%); } }
@keyframes sz-timer { to { transform: scaleX(0); } }
@keyframes sz-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes sz-like { 0% { transform: scale(1); } 25% { transform: scale(.7); } 55% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }
@keyframes sz-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes sz-fade-up { from { opacity: 0; transform: translateY(6px); } }
@keyframes sz-rise-in { from { opacity: 0; transform: translateY(22px) scale(.985); } }
@keyframes sz-toast-in { from { opacity: 0; transform: translateY(24px) scale(.92); } }
@keyframes sz-toast-out { to { opacity: 0; transform: translateX(var(--tx, 0)) translateY(var(--ty, 12px)) scale(.94); } }
@keyframes sz-float { to { translate: 0 -10px; } }
@keyframes sz-float-small { to { translate: 0 -5px; } }
@keyframes sz-bob { to { transform: translateY(-14px) rotate(2deg); } }
@keyframes sz-beacon { 50% { box-shadow: 0 0 0 7px var(--accent-soft); } }
@keyframes sz-pulse-ring { 50% { transform: rotate(-90deg) scale(1.08); } }
@keyframes sz-highlight { 0%, 30% { background: var(--accent-soft); } 100% { background: transparent; } }
@keyframes sz-bar { from { transform: scaleY(0); } }
@keyframes sz-sweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
@keyframes sz-reveal-failsafe { to { opacity: 1; transform: none; filter: none; } }
@keyframes sz-vt-out { to { opacity: 0; transform: translateY(-6px); filter: blur(3px); } }
@keyframes sz-vt-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes sz-letter-in { from { opacity: 0; transform: translateY(.55em) rotate(6deg); filter: blur(6px); } }
@keyframes sz-unfold { 0% { opacity: 0; transform: rotate(-20deg) scale(.72); } 35% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes sz-breathe { from { rotate: -1.6deg; } to { rotate: 1.4deg; } }
@keyframes sz-speak {
  from { clip-path: inset(0 100% 0 0); transform: translateX(-4%); }
  to { clip-path: inset(-20% -10% -40% -10%); transform: none; }
}
@keyframes sz-flutter-a { 0% { transform: none; } 25% { transform: rotate(-18deg) scale(.96); } 55% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } 100% { transform: none; } }
@keyframes sz-flutter-b { 0% { transform: none; } 25% { transform: rotate(-10deg); } 55% { transform: rotate(6deg); } 80% { transform: rotate(-2deg); } 100% { transform: none; } }

/* Hareket azaltma: işletim sistemi tercihi ya da uygulama içi düğme (html.reduce-motion) */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .spinner, .btn.is-loading::after { animation-duration: .9s !important; animation-iteration-count: infinite !important; }
  [data-emblem], .emblem { transform: none; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
  animation-duration: .01ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
.reduce-motion .spinner, .reduce-motion .btn.is-loading::after { animation-duration: .9s !important; animation-iteration-count: infinite !important; }
.reduce-motion::view-transition-group(*), .reduce-motion::view-transition-old(*), .reduce-motion::view-transition-new(*) { animation: none !important; }
.reduce-motion [data-emblem], .reduce-motion .emblem { transform: none; }
.reduce-motion .bg-grain { animation: none; }

/* Yüksek kontrast / zorunlu renkler */
@media (forced-colors: active) {
  .btn, .chip, .badge, .card, .post, .input, .textarea, .select { border: 1px solid CanvasText; }
  .bg-fx { display: none; }
}

/* ==========================================================================
   21 · Yazdırma
   ========================================================================== */

@media print {
  .bg-fx, .topbar, .side-nav, .rail, .bottom-nav, .shell-ticker, .ticker, .site-foot, .toasts, .tip,
  .post-actions, .post-menu, .skip-link, .panel-tabs, .admin-side, .admin-top, .drawer, .bulkbar, .btn { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  * { box-shadow: none !important; text-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .shell { display: block !important; max-width: none; padding: 0; }
  .main { max-width: 100% !important; padding: 0 !important; }
  .card, .post, .rail-card, .stat, .table-wrap { background: #fff !important; border: 1px solid #ccc; break-inside: avoid; }
  a { color: #000 !important; text-decoration: underline; }
  .post-text a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 10px; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
