/* Maaşanaliz — Yön B "Kontrol merkezi" tasarım sistemi. Derleme gerektirmez. */
:root {
  --bg: #0B0F14;
  --surface: #151B23;
  --surface-2: #0F141A;
  --line: #232C37;
  --line-2: #2E3946;
  --text: #F2F5F8;
  --text-2: #C9D2DB;
  --muted: #9AA7B5;
  --muted-2: #8592A0;
  --lime: #C6F432;
  --lime-ink: #10160A;
  --violet: #8B7CF6;
  --violet-soft: #B9AEFF;
  --amber: #FFB547;
  --sky: #5CC8FF;
  --red: #FF7A7A;
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --nav-h: 64px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F4F6F3; --surface: #FFFFFF; --surface-2: #EEF2EE; --line: #E1E6E2; --line-2: #CDD6D1;
  --text: #11181F; --text-2: #2E3A44; --muted: #53606C; --muted-2: #5E6B77;
  --lime: #4E7A00; --lime-ink: #FFFFFF; --violet: #5B4BD6; --violet-soft: #5B4BD6; --amber: #9A5B00; --sky: #0B6E9E; --red: #B42323;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none !important; }

/* Uygulama kabuğu */
.app { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 40px + var(--ad-anchor-h, 0px)); display: flex; flex-direction: column; gap: 16px; min-height: 100vh; }
@media (min-width: 960px) { .app { max-width: 1080px; padding-top: 24px; } .app--wide { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 20px; } }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.5px; color: var(--text); }
.brand span { color: var(--lime); }
.brand:hover { text-decoration: none; }
.topbar__actions { display: flex; gap: 8px; align-items: center; }

.h1 { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; }
.h2 { margin: 0; font-size: 16px; font-weight: 800; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 800; }
.lede { margin: 0; color: var(--text-2); font-size: 15px; }

/* Kart */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card--lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.card--lime .muted { color: var(--lime-ink); opacity: .8; }
.card--violet { background: #1C1730; border-color: #352C5E; }
.card--flush { padding: 4px 14px; gap: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.scroller { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.scroller::-webkit-scrollbar { display: none; }

/* Liste satırı */
.list-item { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid #1E2630; color: var(--text); }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { text-decoration: none; }
.list-item__body { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.list-item__title { font-size: 14px; font-weight: 700; }
.list-item__sub { font-size: 12px; color: var(--muted); }
.mark { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--lime); }
.chev { color: #5E6B79; flex-shrink: 0; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none !important; }
.btn--primary { background: var(--lime); color: var(--lime-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--dark { background: var(--lime-ink); color: var(--lime); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn--block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"], .chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; background: var(--lime); color: var(--lime-ink); }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 12px; font-weight: 700; color: var(--muted); }
.input, .select { height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); padding: 0 12px; font-size: 17px; font-weight: 700; width: 100%; min-width: 0; }
.select { font-size: 15px; }
.input:focus, .select:focus { border-color: var(--lime); outline: none; }
.search { display: flex; align-items: center; gap: 10px; height: 52px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 0 14px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; }
.form-error { background: rgba(255,122,122,.12); border: 1px solid rgba(255,122,122,.4); color: var(--red); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; }

/* Segment */
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border-radius: 14px; padding: 4px; gap: 4px; }
.segment > * { height: 40px; border-radius: 11px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none !important; }
.segment > [aria-current="page"], .segment > .is-active { background: var(--lime); color: var(--lime-ink); }

/* Tablo */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid #1E2630; text-align: right; white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.table thead th { color: var(--muted); font-weight: 700; font-size: 12px; background: var(--surface); }
.table tr.is-total td { font-weight: 800; color: var(--lime); }

/* Sonuç kalemleri */
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; border-bottom: 1px solid #1E2630; font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv__k { color: var(--text-2); }
.kv__v { font-weight: 800; white-space: nowrap; }
.pos { color: var(--lime); }
.neg { color: var(--red); }

/* İlerleme */
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; background: var(--lime); }

/* Alt menü */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom) + var(--ad-anchor-h, 0px)); transition: bottom .2s; height: var(--nav-h); max-width: 536px; margin: 0 auto; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; color: var(--muted); text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--lime); font-weight: 800; }
.tabbar .tabbar__fab { justify-self: center; width: 52px; height: 52px; border-radius: 18px; background: var(--lime); color: var(--lime-ink); display: flex; align-items: center; justify-content: center; }

/* İçerik metni (SEO yazıları, SSS) */
.prose { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.prose h2 { color: var(--text); font-size: 19px; margin: 24px 0 8px; font-family: var(--font-display); }
.prose h3 { color: var(--text); font-size: 16px; margin: 18px 0 6px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px; }
details.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--text); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq p { margin: 8px 0 0; color: var(--text-2); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); display: flex; flex-direction: column; gap: 10px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer a { color: var(--muted); }

/* Radyo tabanlı segment (form gönderimi için) */
.segment > label { position: relative; }
.segment > label input { position: absolute; opacity: 0; pointer-events: none; }
.segment > label:has(input:checked) { background: var(--lime); color: var(--lime-ink); }
.segment > label:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.table tr.is-current td { background: color-mix(in srgb, var(--lime) 10%, var(--surface)); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 4px; }
.stat__k { font-size: 12px; color: var(--muted); font-weight: 700; }
.stat__v { font-family: var(--font-display, Sora, sans-serif); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.ad-slot { min-height: 280px; display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px dashed var(--line); }
.ad-slot ins { min-height: 250px; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-slot__label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Eski SEO hesaplayıcı işaretlemesi (legacy/includes/seo-calculators.php) için kapsamlı stiller */
.seo-calc section { display: grid; gap: 12px; }
.seo-calc .mt-4, .seo-calc .mt-3 { margin-top: 12px; }
.seo-calc .mt-1 { margin-top: 2px; }
.seo-calc .grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .seo-calc .sm\:grid-cols-4 { grid-template-columns: repeat(2, 1fr); } .seo-calc .sm\:grid-cols-5 { grid-template-columns: repeat(2, 1fr); } }
.seo-calc .flex { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 4px; }
.seo-calc .text-xs { font-size: 12px; }
.seo-calc .text-lg { font-size: 17px; }
.seo-calc .uppercase { text-transform: uppercase; letter-spacing: .12em; }
.seo-calc .text-indigo-600 { color: var(--lime); font-weight: 800; }
.seo-calc .text-slate-500, .seo-calc .text-slate-900 { color: var(--muted); }
.seo-calc h2 { font-family: var(--font-display, Sora, sans-serif); font-size: 18px; margin: 0; color: var(--text); }
.seo-calc p { margin: 0; }
.seo-calc input, .seo-calc select { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 14px; font: inherit; font-size: 16px; }
.seo-calc input:focus, .seo-calc select:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.seo-calc button { height: 48px; border-radius: 14px; border: 0; background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 15px; cursor: pointer; width: 100%; }
.seo-calc #seoCalcResult { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 14px; }
.seo-calc #seoCalcResult strong { color: var(--lime); font-variant-numeric: tabular-nums; }
.seo-calc #seoCalcResult hr { border: 0; border-top: 1px solid var(--line); }
.seo-calc #seoCalcResult .space-y-2 { display: grid; gap: 6px; }
.seo-calc #seoCalcResult .hidden, .seo-calc .hidden { display: none !important; }
.seo-calc .bg-amber-50 { background: color-mix(in srgb, var(--amber) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); border-radius: 14px; padding: 14px; font-size: 13px; color: var(--text); }
.seo-calc .bg-amber-50 ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.seo-calc .bg-amber-50 .font-bold { font-weight: 800; color: var(--amber); }
.seo-calc .text-amber-800, .seo-calc .text-indigo-700 { color: var(--muted); }
.list-item__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--lime); flex: none; }
.list-item__body strong { font-size: 14px; }

/* Ana sayfa */
.brand { display: inline-flex; align-items: center; }
.brand span.brand__mark { margin-right: 8px; width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.fact { flex: 0 0 auto; min-width: 150px; gap: 4px; padding: 12px 14px; color: var(--text); text-decoration: none !important; }
.tool-tile { gap: 8px; padding: 14px; color: var(--text); text-decoration: none !important; min-height: 132px; }
.tool-tile:active, .fact:active { transform: scale(.98); }

/* Üye alanı */
.avatar { width: 40px; height: 40px; border-radius: 14px; background: var(--lime-ink); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; flex-shrink: 0; }
.icon-btn--ink { background: rgba(16,22,10,.12); border-color: rgba(16,22,10,.2); color: var(--lime-ink); width: 40px; height: 40px; }
.badge-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid--3 .stat { padding: 10px 12px; }
.stat-grid--3 .stat__v { font-size: 15px; }
.kv.is-total { border-top: 1px solid var(--line-2); }
.kv.is-total .kv__v, .kv.is-total .kv__k { color: var(--lime); font-weight: 800; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; min-height: 56px; }
.list-row:last-child { border-bottom: 0; }
.list-row__icon { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 17px; background: color-mix(in srgb, var(--lime) 14%, transparent); color: var(--lime); }
.list-row__icon--gece { background: color-mix(in srgb, var(--violet) 18%, transparent); color: var(--violet-soft); }
.list-row__icon--tatil { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.list-row__icon--izin { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.empty { align-items: center; text-align: center; padding: 24px 16px; }
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); border: 0; cursor: pointer; }
.sheet__panel { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: sheet-up .2s ease-out; }
.sheet__panel::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); align-self: center; margin-top: -6px; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet__panel { animation: none; } }
.cal__legend { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 5px; vertical-align: 1px; background: var(--lime); }
.dot--gece { background: var(--violet); } .dot--tatil { background: var(--red); } .dot--izin { background: var(--amber); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.day-cell { position: relative; aspect-ratio: 1 / 1.12; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 5px 5px 7px; cursor: pointer; font: inherit; overflow: hidden; text-align: left; }
.day-cell__n { font-size: 13px; font-weight: 800; }
.day-cell__h { font-size: 9.5px; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; }
.day-cell__bar { position: absolute; left: 5px; right: 5px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--line); }
.day-cell__bar::after { content: ""; display: block; height: 100%; width: var(--w); border-radius: 2px; background: currentColor; }
.day-cell--mesai { background: color-mix(in srgb, var(--lime) 12%, var(--surface-2)); border-color: color-mix(in srgb, var(--lime) 30%, transparent); }
.day-cell--mesai .day-cell__h, .day-cell--mesai .day-cell__bar { color: var(--lime); }
.day-cell--gece { background: color-mix(in srgb, var(--violet) 16%, var(--surface-2)); border-color: color-mix(in srgb, var(--violet) 40%, transparent); }
.day-cell--gece .day-cell__h, .day-cell--gece .day-cell__bar { color: var(--violet-soft); }
.day-cell--tatil { background: color-mix(in srgb, var(--red) 13%, var(--surface-2)); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.day-cell--tatil .day-cell__h, .day-cell--tatil .day-cell__bar { color: var(--red); }
.day-cell--izin { background: color-mix(in srgb, var(--amber) 13%, var(--surface-2)); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.day-cell--izin .day-cell__h { color: var(--amber); }
.day-cell.has-izin::before { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 3px; background: var(--amber); }
.day-cell.is-today { box-shadow: inset 0 0 0 2px var(--text); }
.day-cell.is-active { outline: 2px solid var(--lime); outline-offset: 1px; }
[aria-busy="true"] { opacity: .55; pointer-events: none; transition: opacity .15s; }
.form-ok { background: color-mix(in srgb, var(--lime) 12%, transparent); border: 1px solid color-mix(in srgb, var(--lime) 40%, transparent); color: var(--text); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pass { position: relative; }
.pass .input { padding-right: 76px; }
.pass__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 10px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.choice input { width: 22px; height: 22px; accent-color: var(--lime); margin-top: 2px; flex-shrink: 0; }
.choice__body { display: grid; gap: 4px; }
.bar > span { display: block; height: 100%; width: var(--w); background: var(--c, var(--lime)); border-radius: inherit; }
.chart6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 150px; align-items: end; }
.chart6__col { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; }
.chart6__bars { display: flex; gap: 3px; align-items: flex-end; justify-content: center; height: 100%; }
.chart6__bars i { display: block; width: 40%; max-width: 18px; border-radius: 5px 5px 2px 2px; min-height: 2px; }
.kv--total { background: var(--surface-2); margin: 0 -14px; padding: 0 14px; }
.print-sheet { display: grid; gap: 12px; }
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --muted: #444; --line: #ccc; }
  body { background: #fff !important; color: #000; }
  .no-print, .tabbar { display: none !important; }
  .table td { border-color: #ccc; color: #000; }
}
.stepper { display: grid; grid-template-columns: 50px 1fr 50px; gap: 8px; align-items: center; }
.stepper .icon-btn { width: 50px; height: 50px; font-size: 22px; font-weight: 800; }
.quick-hours { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.quick-hours .chip { justify-content: center; padding: 0 4px; }
.label-like { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.kat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kat { position: relative; }
.kat input { position: absolute; opacity: 0; inset: 0; }
.kat span { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 800; cursor: pointer; }
.kat input:checked + span { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.kat input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line-2); position: relative; cursor: pointer; flex-shrink: 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--lime); }
.switch:checked::after { transform: translateX(20px); background: var(--lime-ink); }
.switch:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.daybars { display: flex; align-items: flex-end; gap: 2px; height: 90px; }
.daybars i { flex: 1; background: var(--line); border-radius: 3px 3px 1px 1px; min-height: 2px; }
.daybars i.on { background: var(--lime); }
.mcard__more summary { cursor: pointer; list-style: none; }
.mcard__more summary::-webkit-details-marker { display: none; }
.mcard__more summary::after { content: " ▾"; }
.mcard__more[open] summary::after { content: " ▴"; }
.table--sticky th:first-child, .table--sticky td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.table--sticky tr.is-current th:first-child { background: inherit; }
.table td.num, .table th.num { white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 28px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); font-weight: 800; font-size: 13px; padding: 10px 16px; border-radius: 12px; z-index: 90; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* legend key swatch */
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--lime)); font-style: normal; vertical-align: middle; }

/* tablo düzeltmeleri: prose içindeki .table blok olmasın, zemin tek renk, metin tabloları sola hizalı ve satır kırar */
.table-wrap { background: var(--surface); }
.prose .table-wrap table.table { display: table; }
.prose .table th, .prose .table td { border: 0; border-bottom: 1px solid var(--line); }
.table tbody th { text-align: left; font-weight: 700; color: var(--text); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; left: 0; background: var(--surface); }
.table caption { caption-side: top; }
.table--text { min-width: 0; }
.table--text th, .table--text td { text-align: left; white-space: normal; vertical-align: top; }
.table--text td.num { text-align: right; white-space: nowrap; }
.table--text tbody th { white-space: normal; position: static; min-width: 110px; }
.prose table:not(.table) { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table:not(.table) th { color: var(--text); background: var(--surface-2); text-align: left; font-size: 12px; }
.prose table:not(.table) th, .prose table:not(.table) td { border: 0; border-bottom: 1px solid var(--line); min-width: 110px; vertical-align: top; }

/* Bildirim kutusu */
.list-item.is-new { position: relative; }
.list-item.is-new::before { content: ""; position: absolute; left: -10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--lime); }
#push-kart[hidden], .push-kart[hidden] { display: none; }
.chip--new { height: 20px; padding: 0 8px; font-size: 10px; background: var(--lime); color: var(--lime-ink); border-color: transparent; vertical-align: middle; }

/* Uygulamayı yükle kartı */
.install-kart { position: fixed; left: 12px; right: 12px; max-width: 536px; margin: 0 auto; bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom) + var(--ad-anchor-h, 0px)); z-index: 60; display: grid; grid-template-columns: 44px 1fr 32px; gap: 10px 12px; align-items: start; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.45); transform: translateY(16px); opacity: 0; transition: transform .25s, opacity .25s; }
.install-kart.is-open { transform: none; opacity: 1; }
.install-kart[hidden] { display: none; }
.install-kart__ic { border-radius: 12px; }
.install-kart__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.install-kart__txt strong { font-size: 15px; }
.install-kart__x { width: 32px; height: 32px; }
.install-kart__btn { grid-column: 1 / -1; }
.install-kart__ios { margin: 6px 0 0; padding-left: 18px; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.install-kart__ios[hidden] { display: none; }
@media print { .install-kart { display: none !important; } }

/* Kampanya günü kartı */
.kampanya-kart { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 22px; text-decoration: none; color: #0B0F14; background: linear-gradient(135deg, #C6F432 0%, #9BE15D 55%, #8B7CF6 140%); box-shadow: 0 14px 34px rgba(198,244,50,.18); }
.kampanya-kart:hover { text-decoration: none; filter: brightness(1.03); }
.kampanya-kart__etiket { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(11,15,20,.12); border-radius: 999px; padding: 3px 10px; }
.kampanya-kart__baslik { font-family: var(--font-display, inherit); font-size: 21px; line-height: 1.2; }
.kampanya-kart__metin { font-size: 14px; line-height: 1.45; opacity: .85; }
.kampanya-kart__btn { margin-top: 6px; align-self: flex-start; background: #0B0F14; color: #C6F432; font-weight: 800; font-size: 14px; border-radius: 12px; padding: 10px 14px; }

/* Sonucu paylaş */
.paylas-kutu { display: flex; flex-direction: column; gap: 12px; border-color: rgba(198,244,50,.35); }
.paylas-kutu[hidden] { display: none; }
.paylas-kutu__txt { display: flex; flex-direction: column; gap: 2px; }
.paylas-btn { gap: 8px; background: #25D366; border-color: #25D366; color: #0B0F14; }
.paylas-btn:hover { filter: brightness(1.05); }

/* Takvim gün detayı: mesai kaydını düzenle / sil */
.mesai-kayit__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.btn--danger { color: var(--red); }
.btn--danger-solid { background: var(--red); color: var(--bg); border-color: var(--red); }
.mesai-duzenle .kat-grid { grid-template-columns: repeat(4, 1fr); }
.mesai-duzenle .kat span { min-height: 40px; font-size: 13px; }

/* Açılış penceresi (duyuru / yeni enflasyon) */
.acilis { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.acilis[hidden] { display: none; }
.acilis__scrim { position: absolute; inset: 0; border: 0; background: rgba(5, 8, 12, .72); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; cursor: pointer; }
.acilis__kart { position: relative; width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 28px 20px 16px; display: flex; flex-direction: column; gap: 10px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.45); transform: translateY(16px) scale(.97); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.acilis.is-open .acilis__scrim { opacity: 1; }
.acilis.is-open .acilis__kart { transform: none; opacity: 1; }
.acilis__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; }
.acilis__ikon { font-size: 40px; line-height: 1; }
.acilis__gorsel { width: 100%; max-height: 200px; object-fit: cover; border-radius: 16px; margin-top: 8px; }
.acilis__etiket { align-self: center; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); background: color-mix(in srgb, var(--lime) 14%, transparent); padding: 4px 10px; border-radius: 999px; }
.acilis__baslik { margin: 0; font-family: var(--font-display, "Sora", sans-serif); font-size: 21px; line-height: 1.25; }
.acilis__metin { margin: 0; color: var(--muted, #9CA3AF); font-size: 14.5px; line-height: 1.5; }
.acilis__kisisel { margin: 0; text-align: left; font-size: 14px; line-height: 1.5; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.acilis__btn { margin-top: 6px; }
.acilis__sonra { border: 0; background: none; color: var(--muted, #9CA3AF); font-weight: 700; font-size: 14px; padding: 10px; cursor: pointer; }
html.acilis-acik { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .acilis__kart, .acilis__scrim { transition: none; } }
.acilis__kart:focus { outline: none; }

/* Zam tahmini oyunu (partials/tahmin-kart.php, /enflasyon-tahmini) */
.tahmin { position: relative; overflow: hidden; gap: 14px; border-color: #352C5E; background: radial-gradient(120% 90% at 100% 0%, rgba(139,124,246,.22), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(198,244,50,.10), transparent 60%), var(--surface); }
:root[data-theme="light"] .tahmin { border-color: #D9D3FF; background: radial-gradient(120% 90% at 100% 0%, rgba(91,75,214,.12), transparent 60%), var(--surface); }
.tahmin__eyebrow { color: var(--violet-soft); }
.tahmin__soru { font-family: var(--font-display); font-size: 21px; line-height: 1.2; letter-spacing: -.2px; }
.tahmin__sure { min-height: 28px; padding: 0 10px; font-size: 11px; gap: 6px; white-space: nowrap; }
.tahmin__nabiz { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198,244,50,.6); animation: tahminNabiz 1.8s infinite; }
@keyframes tahminNabiz { 0% { box-shadow: 0 0 0 0 rgba(198,244,50,.55); } 70% { box-shadow: 0 0 0 8px rgba(198,244,50,0); } 100% { box-shadow: 0 0 0 0 rgba(198,244,50,0); } }
@media (prefers-reduced-motion: reduce) { .tahmin__nabiz { animation: none; } }
.tahmin__giris { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 10px; }
.tahmin__adim { width: 52px; height: 52px; border-radius: 16px; font-size: 24px; font-weight: 800; background: var(--surface-2); }
.tahmin__deger { display: flex; align-items: baseline; justify-content: center; gap: 2px; height: 72px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line-2); cursor: text; }
.tahmin__deger:focus-within { border-color: var(--lime); }
.tahmin__yuzde { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--muted); align-self: center; }
.tahmin__input { width: 5.2ch; border: 0; background: transparent; outline: none; font-size: 40px; line-height: 72px; height: 72px; color: var(--lime); text-align: left; padding: 0; }
.tahmin__range { width: 100%; accent-color: var(--lime); height: 28px; margin: -4px 0 0; }
.tahmin__sonuc { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.tahmin__sonuc:empty, .tahmin__sonuc[hidden] { display: none; }
.tahmin__satir { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--text-2); }
.tahmin__satir strong { font-size: 16px; color: var(--text); white-space: nowrap; }
.tahmin__satir--vurgu strong { font-size: 20px; color: var(--lime); }
.tahmin__kapali { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--line-2); }
.tahmin__alt { border-top: 1px solid var(--line); padding-top: 10px; gap: 8px; }
.tahmin__kahin { display: flex; flex-direction: column; gap: 8px; }
.tahmin__kahin .chip { min-height: 32px; font-size: 12px; padding: 0 12px; }
.tahmin-dagilim { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 6px; }
.tahmin-dagilim > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.tahmin-dagilim i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--violet), color-mix(in srgb, var(--violet) 40%, transparent)); min-height: 4px; }
.tahmin-dagilim i.on { background: linear-gradient(180deg, var(--lime), color-mix(in srgb, var(--lime) 40%, transparent)); }
.tahmin-dagilim span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.kahin-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kahin-row:last-child { border-bottom: 0; }
.kahin-row.is-me { background: color-mix(in srgb, var(--lime) 8%, transparent); border-radius: 12px; padding-left: 6px; padding-right: 6px; }
.kahin-row__sira { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.kahin-row__sira--1 { background: linear-gradient(135deg, #FFD66B, #F2A900); color: #2A1A00; border: 0; }
.kahin-row__sira--2 { background: linear-gradient(135deg, #E4E9EF, #A8B3BF); color: #1A2028; border: 0; }
.kahin-row__sira--3 { background: linear-gradient(135deg, #F0B08A, #B8683C); color: #2A1205; border: 0; }
.rozet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.rozet { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.rozet__ikon { font-size: 26px; line-height: 1.1; }
.rozet strong { font-size: 12px; }
.rozet.is-off { opacity: .38; filter: grayscale(1); }
.tahmin-cagri { display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 18px; cursor: pointer; color: var(--text); border: 1px solid #352C5E; background: radial-gradient(120% 120% at 100% 0%, rgba(139,124,246,.28), transparent 60%), var(--surface); }
.tahmin-cagri:active { transform: scale(.99); }
:root[data-theme="light"] .tahmin-cagri { border-color: #D9D3FF; }
.tahmin-cagri__ikon { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; background: color-mix(in srgb, var(--violet) 22%, transparent); }
.tahmin-cagri__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tahmin-cagri__txt strong { font-size: 15px; }
.tahmin-cagri__ok { font-size: 26px; color: var(--lime); line-height: 1; }
.tahmin-pill { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 13px; text-decoration: none !important; }
.tahmin-pill__txt { flex: 1; min-width: 0; }
.tahmin-pill strong { color: var(--lime); }
.sheet .tahmin { border-radius: 20px; }
/* Mesai Karnem */
.list-row--yeni { margin: 4px -8px; padding: 12px 8px; border-radius: 16px; border: 1px solid #5B4BD6 !important; background: linear-gradient(135deg, rgba(139,124,246,.24), rgba(198,244,50,.08)); }
.list-row--yeni .list-item__icon { background: rgba(139,124,246,.3); }
.karne-hero { gap: 6px; border-color: #352C5E; background: radial-gradient(120% 90% at 100% 0%, rgba(139,124,246,.45), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(198,244,50,.16), transparent 60%), var(--surface); }
:root[data-theme="light"] .karne-hero { border-color: #D9D3FF; background: radial-gradient(120% 90% at 100% 0%, rgba(91,75,214,.16), transparent 60%), var(--surface); }
.karne-hero__big { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--lime); }
.karne-bars { display: flex; align-items: flex-end; gap: 5px; height: 96px; }
.karne-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.karne-bars i { display: block; width: 100%; border-radius: 5px 5px 2px 2px; min-height: 3px; background: linear-gradient(180deg, var(--violet), color-mix(in srgb, var(--violet) 35%, transparent)); }
.karne-bars i.on { background: linear-gradient(180deg, var(--lime), color-mix(in srgb, var(--lime) 35%, transparent)); }
.karne-bars span { font-size: 9px; color: var(--muted); }

/* Mobil taşma düzeltmesi (04.12.2026): tam genişlik reklam kutuyu taşırmasın */
html, body { max-width: 100%; overflow-x: clip; }
.ad-slot { grid-template-columns: minmax(0, 1fr); max-width: 100%; min-width: 0; overflow: hidden; }
.ad-slot ins, .ad-slot ins > *, .ad-slot iframe { max-width: 100% !important; }
