/* Gurme Panel · tasarım dili: kömür + ateş kırmızısı + sıcak krem */
:root {
  --ink: #161311; --ink2: #2a2420; --muted: #6b625a; --line: #e8e2d9; --soft: #f1ece4; --bg: #f6f2ec; --card: #fff;
  --red: #d0102b; --red2: #a50c22; --ember: #ff5a36; --acik: #c0122b; --fazla: #1f56d6; --ok: #157a3b; --warn: #b45309;
  --r: 16px; --shadow: 0 1px 2px rgba(22,19,17,.04), 0 8px 24px -12px rgba(22,19,17,.14);
  --ease: cubic-bezier(.2,.8,.2,1);
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); font-feature-settings: "tnum" 1, "cv11" 1; caret-color: transparent; -webkit-font-smoothing: antialiased; }
input, textarea, select, [contenteditable] { caret-color: auto; }
[hidden] { display: none !important; }
a { color: var(--red); } a:hover { color: var(--red2); }
h1 { margin: 2px 0 0; font: 800 32px/1.1 var(--display); letter-spacing: -.02em; }
h2 { margin: 0; font: 700 17px/1.3 var(--display); letter-spacing: -.01em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .acik { color: var(--acik); } .fazla { color: var(--fazla); } .okc { color: var(--ok); }
::selection { background: #ffd9d0; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- giriş ---------- */
.center { min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; background: #0d0b0a; }
.center::before { content: ""; position: absolute; inset: -4%; background: url(/api/img/giris.webp) center right / cover no-repeat; animation: kenburns 24s var(--ease) infinite alternate; }
.center::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,8,7,.94) 0%, rgba(10,8,7,.78) 38%, rgba(10,8,7,.15) 75%), radial-gradient(60% 80% at 90% 100%, rgba(208,16,43,.25), transparent 60%); }
@keyframes kenburns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
.center > * { position: relative; z-index: 1; }
@media (min-width: 900px) { .center { place-items: center start; padding-left: 9vw; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.login { padding: 32px; width: 100%; max-width: 410px; background: rgba(22,19,17,.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid rgba(255,255,255,.1); color: #f5efe8; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); animation: pop .7s var(--ease) both .15s; }
.login img { height: 72px; display: block; margin: 0 0 18px; border-radius: 12px; background: #fff; padding: 6px; }
.login h1 { font-size: 30px; color: #fff; } .login .sub { margin: 6px 0 20px; color: #bfb4a8; font-size: 14px; }
.login label { color: #d8cfc5; }
.login input { width: 100%; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.login input:focus { border-color: var(--ember); background: rgba(255,255,255,.09); }
.login .err { color: #ff9b8a; }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input, select { font: inherit; padding: 10px 12px; border: 1px solid #d9d2c7; border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:hover, select:hover { border-color: #bfb5a8; }
input:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(208,16,43,.12); }

/* ---------- butonlar ---------- */
.btn { font: inherit; font-weight: 600; font-size: 14px; border: 1px solid #d9d2c7; background: #fff; color: var(--ink); border-radius: 11px; min-height: 44px; padding: 0 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { border-color: #b9ae9f; transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(22,19,17,.3); color: var(--ink); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: linear-gradient(180deg, #e3142f, var(--red)); border-color: var(--red2); color: #fff; box-shadow: 0 6px 18px -8px rgba(208,16,43,.7), inset 0 1px 0 rgba(255,255,255,.2); }
.btn.primary:hover { color: #fff; box-shadow: 0 10px 24px -8px rgba(208,16,43,.75), inset 0 1px 0 rgba(255,255,255,.2); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; } .btn.dark:hover { color: #fff; background: var(--ink2); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn.wide { width: 100%; margin-top: 22px; } .btn.sm { min-height: 36px; padding: 0 12px; border-radius: 9px; }
.btn.ai { border-color: #c4b5fd; color: #5b21b6; background: linear-gradient(180deg, #faf7ff, #f3edff); }
.link { font: inherit; background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.err { color: var(--acik); font-size: 14px; margin-top: 12px; min-height: 20px; }

/* ---------- iskelet ---------- */
.shell { display: flex; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; flex: 0 0 248px; background: radial-gradient(120% 60% at 0% 100%, rgba(208,16,43,.22), transparent 60%), linear-gradient(180deg, #1b1715, #110e0d); color: #e7e0d8; padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid #000; }
.side .brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; }
.side .brand img { height: 38px; background: #fff; border-radius: 9px; padding: 3px; box-shadow: 0 4px 14px -4px rgba(208,16,43,.6); }
.side .brand b { color: #fff; font: 800 18px/1 var(--display); letter-spacing: -.01em; } .side .brand small { display: block; color: #9a8f84; font-size: 11px; font-weight: 500; margin-top: 3px; }
.side a { position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; text-decoration: none; font-size: 14px; font-weight: 500; color: #c9bfb4; transition: background .2s, color .2s; }
.side a svg { width: 19px; height: 19px; flex: none; opacity: .75; transition: opacity .2s, transform .3s var(--ease); }
.side a:hover { background: rgba(255,255,255,.06); color: #fff; } .side a:hover svg { opacity: 1; transform: scale(1.08); }
.side a.on { background: linear-gradient(180deg, #e3142f, var(--red)); color: #fff; font-weight: 600; box-shadow: 0 8px 22px -10px rgba(208,16,43,.9), inset 0 1px 0 rgba(255,255,255,.18); }
.side a.on svg { opacity: 1; }
.side .sec { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7d7268; padding: 16px 12px 6px; }
.side .grow { flex: 1; }
.side .who { font-size: 12px; color: #a39789; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.side .who b { color: #f2ebe3; font-weight: 600; flex: 1; } .side .who .link { color: #a39789; }
.main { flex: 1 1 auto; min-width: 0; padding: 30px 36px 60px; display: flex; flex-direction: column; gap: 22px; max-width: 1480px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; } .head > div:first-child { flex: 1 1 300px; }
.head .small.muted { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; color: var(--red); }

/* ---------- kahraman kart (genel bakış) ---------- */
.hero { position: relative; overflow: hidden; border-radius: 22px; color: #fff; padding: 28px 30px; background: #120f0d; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: end; box-shadow: 0 24px 60px -30px rgba(22,19,17,.7); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(/api/img/et.webp) center / cover; opacity: .55; z-index: -2; animation: kenburns 30s var(--ease) infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,11,10,.96) 25%, rgba(14,11,10,.55) 70%, rgba(14,11,10,.25)), radial-gradient(50% 90% at 0% 100%, rgba(208,16,43,.35), transparent 70%); z-index: -1; }
.hero .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffb3a6; }
.hero .big { font: 800 clamp(40px, 6vw, 64px)/1 var(--display); letter-spacing: -.03em; margin: 8px 0 6px; }
.hero .sub { color: #d8cfc5; font-size: 14px; }
.hero .side2 { display: flex; flex-direction: column; gap: 10px; }
.hero .mini { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(8px); font-size: 14px; }
.hero .mini b { font-family: var(--display); font-size: 18px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi { padding: 18px 18px 16px; position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(22,19,17,.3); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.kpi:has(.v.acik)::before { background: var(--acik); } .kpi:has(.v.fazla)::before { background: var(--fazla); }
.kpi .v { font: 800 30px/1.15 var(--display); letter-spacing: -.02em; margin: 4px 0 2px; }
.kpi .l { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); } .kpi .s { font-size: 13px; color: var(--muted); }

/* ---------- adımlar ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; font-size: 13px; }
.steps li { position: relative; padding-top: 12px; } .steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px; background: var(--line); }
.steps li::after { content: ""; position: absolute; top: 0; left: 0; height: 5px; border-radius: 3px; width: 0; transition: width .9s var(--ease); }
.steps li.done::after { width: 100%; background: var(--ok); } .steps li.now::after { width: 100%; background: linear-gradient(90deg, var(--red), var(--ember)); animation: glow 2s ease-in-out infinite; }
.steps li b { font-weight: 700; }
@keyframes glow { 50% { box-shadow: 0 0 12px rgba(255,90,54,.7); } }

.row2 { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; } .row2 > .wide { flex: 3 1 460px; min-width: 0; } .row2 > .narrow { flex: 2 1 320px; min-width: 0; }

/* ---------- tablolar ---------- */
.tbl { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 12px 8px; text-align: right; white-space: nowrap; background: #fbf9f6; }
th:first-child, td:first-child { text-align: left; padding-left: 20px; } th:last-child, td:last-child { padding-right: 20px; }
td { padding: 13px 8px; border-top: 1px solid var(--soft); text-align: right; white-space: nowrap; transition: background .15s; }
tbody tr:hover td { background: #fcfaf7; }
tr.click { cursor: pointer; } tr.open td { background: #fbf7f2; }
td.l, th.l { text-align: left; } tr.total td { font-weight: 800; background: #f8f4ee; border-top: 2px solid var(--line); font-family: var(--display); }
.cardhead { padding: 16px 20px; border-bottom: 1px solid var(--soft); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- fark çubuğu ---------- */
.bar { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.bar .track { flex: 1; min-width: 80px; display: flex; height: 10px; background: #f1ece4; border-radius: 6px; overflow: hidden; }
.bar .track > div { border-radius: 6px; transform-origin: left; animation: grow .9s var(--ease) both; }
.bar .half { flex: 1; display: flex; } .bar .half.neg { justify-content: flex-end; } .bar .half.neg > div { transform-origin: right; }
.bar .half > div { border-radius: 6px; animation: grow .9s var(--ease) both .1s; }
.bar .mid { width: 2px; background: #b9ae9f; } .bar b { width: 92px; text-align: right; font-weight: 700; }
@keyframes grow { from { transform: scaleX(0); } }
.detail td { white-space: normal; text-align: left; padding: 6px 20px 18px 46px; background: #fbf7f2; border-top: 0; }
.detail td > * { animation: rise .35s var(--ease) both; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; font-size: 13px; } .dgrid div div { color: var(--muted); }

/* ---------- sekmeler, rozetler ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s var(--ease); }
.tab:hover { border-color: #c9bfb2; color: var(--ink); }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 6px 16px -8px rgba(22,19,17,.6); }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f1ece4; color: #4a423c; white-space: nowrap; }
.pill.acik { background: #fde2e4; color: #8a0d1f; } .pill.fazla { background: #dde7fd; color: #173e9b; } .pill.ok { background: #dbf3e3; color: var(--ok); } .pill.warn { background: #fdebd3; color: #7c3a06; }

/* ---------- dosya bırakma ---------- */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 24px; border: 2px dashed #e3a2a9; border-radius: 20px; background: radial-gradient(80% 120% at 50% 0%, #fff6f4, #fff); text-align: center; cursor: pointer; transition: border-color .2s, background .3s, transform .2s var(--ease); }
.drop:hover { border-color: var(--red); transform: translateY(-1px); }
.drop svg { transition: transform .4s var(--ease); } .drop:hover svg { transform: translateY(-4px); }
.drop.over { border-style: solid; border-color: var(--red); background: #fff0ee; animation: pulse 1.1s ease-in-out infinite; }
.drop.over svg { transform: translateY(-6px) scale(1.1); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(208,16,43,.08); } }
.drop b { font: 700 19px/1.3 var(--display); }

/* ---------- sorular ---------- */
.issues { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; } .issue { display: flex; gap: 12px; font-size: 14px; }
.issue > b { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #fde2e4; font-size: 13px; }
.q { border-bottom: 1px solid var(--soft); padding: 0 0 14px; display: flex; flex-direction: column; gap: 8px; } .q:last-child { border: 0; } .q .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.q .acts { display: flex; flex-wrap: wrap; gap: 8px; } .q select { flex: 1 1 200px; min-width: 0; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 54px; height: 54px; color: #d8cbbb; }

/* ---------- bildirim ---------- */
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: 92vw; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); animation: toastin .4s var(--ease) both; pointer-events: auto; }
.toast.bye { animation: toastout .35s var(--ease) both; }
@keyframes toastin { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastout { to { opacity: 0; transform: translateY(8px) scale(.97); } }
.fadein { animation: fade .5s var(--ease) both; } @keyframes fade { from { opacity: 0; } }

/* ---------- giriş animasyonları ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.rise { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.sk { border-radius: var(--r); background: linear-gradient(90deg, #eee8df 0%, #f7f3ee 40%, #eee8df 80%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.skel { display: flex; flex-direction: column; gap: 18px; } .skel .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

/* ---------- kapanış mühürü ---------- */
.stamp { position: fixed; inset: 0; display: grid; place-items: center; z-index: 30; pointer-events: none; }
.stamp div { font: 800 54px/1 var(--display); color: var(--ok); border: 6px solid var(--ok); border-radius: 18px; padding: 18px 30px; transform: rotate(-8deg); background: rgba(255,255,255,.9); animation: stamp 1.6s var(--ease) both; letter-spacing: .02em; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-8deg) scale(2.4); } 18% { opacity: 1; transform: rotate(-8deg) scale(.95); } 26% { transform: rotate(-8deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: rotate(-8deg) scale(1); } }

/* ---------- katalog ---------- */
dialog.edit { border: 0; border-radius: 18px; padding: 0; width: min(640px, 94vw); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
dialog.edit[open] { animation: pop .35s var(--ease) both; }
dialog.edit::backdrop { background: rgba(22,19,17,.5); backdrop-filter: blur(3px); }
dialog.edit form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fgrid label, .fl { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: #4a423c; margin: 0; }
.fgrid input, .fgrid select, .fl input, .fl select, .rl input, .rl select, .search { font: inherit; font-size: 14px; border: 1px solid #d9d2c7; border-radius: 10px; min-height: 42px; padding: 0 12px; background: #fff; }
.chk { flex-direction: row !important; align-items: center; gap: 9px !important; font-weight: 500 !important; }
.chk input { width: 18px; height: 18px; accent-color: var(--red); }
.rl { display: grid; grid-template-columns: 1fr 110px 44px 36px; gap: 8px; align-items: center; animation: rise .3s var(--ease) both; }
.rl .u { font-size: 13px; color: var(--muted); }
.reclist { max-height: 70vh; overflow: auto; }
.reclist button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: 11px 20px; cursor: pointer; border-bottom: 1px solid var(--soft); font-size: 14px; transition: background .15s, padding .2s var(--ease); }
.reclist button:hover { background: #fbf5f2; padding-left: 24px; } .reclist button.on { background: #fde9e7; box-shadow: inset 3px 0 0 var(--red); }
.reclist button small { color: var(--muted); }
.grphead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- tanıtım ---------- */
.intro { position: fixed; inset: 0; z-index: 50; background: #0b0908; color: #fff; overflow: hidden; display: grid; place-items: center; font-family: var(--display); }
.intro .scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.intro .bg { position: absolute; inset: -5%; background-size: cover; background-position: center; filter: saturate(1.1); }
.intro .bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(11,9,8,.35), rgba(11,9,8,.92)); }
.intro .t { position: relative; text-align: center; padding: 0 24px; }
.intro .t .k { font: 700 clamp(16px, 2vw, 22px)/1.2 Inter, sans-serif; letter-spacing: .22em; text-shadow: 0 2px 12px rgba(0,0,0,.6); text-transform: uppercase; color: #ff9d88; margin-bottom: 18px; }
.intro .t .h { font-weight: 800; font-size: clamp(38px, 7vw, 86px); line-height: .98; letter-spacing: -.035em; }
.intro .t .h em { font-style: normal; color: var(--ember); }
.intro .skip { position: absolute; top: 18px; right: 18px; z-index: 3; font: 600 15px Inter, sans-serif; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 9px 16px; cursor: pointer; backdrop-filter: blur(6px); }
.intro .skip:hover { background: rgba(255,255,255,.2); }
.intro .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--ember)); animation: prog var(--dur) linear both; z-index: 3; }
@keyframes prog { from { width: 0; } to { width: 100%; } }
.intro .chips { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.intro .chip { font: 700 clamp(16px, 1.8vw, 21px) Inter, sans-serif; padding: 14px 22px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); opacity: 0; }
.intro .logo { width: 120px; height: 120px; border-radius: 28px; background: #fff; padding: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px -10px rgba(208,16,43,.7); margin: 0 auto 26px; display: block; }
.intro.out { animation: introout .7s var(--ease) both; }
@keyframes introout { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }
@keyframes sc { 0% { opacity: 0; } 8% { opacity: 1; } 86% { opacity: 1; } 100% { opacity: 0; } }
@keyframes scLast { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(1.18); } to { transform: scale(1.02); } }
@keyframes txtIn { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes chipFly { to { opacity: 0; transform: translateY(-30px) scale(.8); } }
@keyframes logoIn { from { opacity: 0; transform: scale(.6) rotate(-10deg); } 60% { opacity: 1; transform: scale(1.06) rotate(2deg); } to { opacity: 1; transform: none; } }

.login .replay { margin-top: 14px; font-size: 13px; color: #b3a79b; text-align: left; }

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .side { position: fixed; z-index: 10; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 2px; border-right: 0; border-top: 1px solid #000; background: rgba(17,14,13,.96); backdrop-filter: blur(12px); }
  .side .brand, .side .grow, .side .sec, .side .who { display: none; }
  .side a { flex: 1; flex-direction: column; gap: 3px; padding: 8px 2px; font-size: 10.5px; text-align: center; border-radius: 10px; }
  .side a svg { width: 21px; height: 21px; }
  .main { padding: 18px 14px 100px; gap: 16px; }
  .mtop { display: flex !important; }
  h1 { font-size: 26px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi { padding: 14px; } .kpi .v { font-size: 21px; }
  #toasts { bottom: 90px; }
}
.mtop { display: none; align-items: center; gap: 10px; padding: 14px 14px 0; } .mtop img { height: 32px; border-radius: 8px; } .mtop b { font: 800 17px var(--display); flex: 1; } .mtop .link { font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- açılır menü ---------- */
details.menu { position: relative; } details.menu > summary { list-style: none; } details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary { border-color: var(--ink); }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px -16px rgba(22,19,17,.35); padding: 6px; animation: pop .22s var(--ease) both; }
.menu-list button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.menu-list button:hover, .menu-list button:focus-visible { background: #fbf1ee; }
.menu-list b { font-size: 14px; } .menu-list span { font-size: 12px; color: var(--muted); }

/* ---------- kullanım turu ---------- */
.tour-hole { position: fixed; z-index: 60; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(16,13,11,.72), 0 0 0 3px var(--ember), 0 0 30px 6px rgba(255,90,54,.45); pointer-events: none; transition: all .45s var(--ease); }
.tour-block { position: fixed; inset: 0; z-index: 59; }
.tour-card { position: fixed; z-index: 61; width: min(380px, calc(100vw - 24px)); background: #fff; border-radius: 18px; padding: 20px 20px 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); transition: top .45s var(--ease), left .45s var(--ease); animation: pop .35s var(--ease) both; }
.tour-card .n { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.tour-card h3 { margin: 6px 0 8px; font: 800 21px/1.2 var(--display); letter-spacing: -.01em; }
.tour-card p { margin: 0 0 8px; font-size: 14px; color: #3d3631; } .tour-card ul { margin: 0 0 8px; padding-left: 18px; font-size: 14px; color: #3d3631; } .tour-card li { margin: 3px 0; }
.tour-card .dots { display: flex; gap: 5px; margin: 12px 0; } .tour-card .dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: all .3s var(--ease); } .tour-card .dots i.on { width: 22px; background: var(--red); }
.tour-card .acts { display: flex; gap: 8px; align-items: center; } .tour-card .acts .link { margin-right: auto; font-size: 13px; color: var(--muted); }
.side .help { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: #c9bfb4; font-size: 14px; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.14); cursor: pointer; font-weight: 500; }
.side .help:hover { color: #fff; background: rgba(255,255,255,.09); }
@media print { .side, .mtop, #toasts, details.menu { display: none !important; } .main { padding: 0; } }

.kinds { display: flex; flex-wrap: wrap; gap: 5px; } .pill.miss { background: #f6f3ef; color: #9a8f84; border: 1px dashed #d9d0c4; }
/* okunurluk: küçük üst başlıklar büyütüldü */
.hero .k { font-size: 14px; } .kpi .l { font-size: 13px; } .head .small.muted { font-size: 13px; } th { font-size: 12px; } .side .sec { font-size: 12px; }
@media (max-width: 760px) { .side .help { display: none; } }
.head { position: relative; z-index: 5; }

/* ---------- asistan ---------- */
.chatbox { display: flex; flex-direction: column; height: min(72vh, 760px); }
.chat { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { display: flex; flex-direction: column; max-width: 86%; animation: rise .3s var(--ease) both; } .msg.user { align-self: flex-end; align-items: flex-end; }
.msg .b { padding: 11px 14px; border-radius: 16px; white-space: pre-wrap; font-size: 14.5px; line-height: 1.5; }
.msg.user .b { background: var(--ink); color: #fff; border-bottom-right-radius: 5px; } .msg.assistant .b { background: #f4efe8; border-bottom-left-radius: 5px; }
.msg .prop { margin-top: 8px; border: 1px solid #ddd2fb; background: linear-gradient(180deg, #fbf9ff, #fff); border-radius: 14px; padding: 12px 14px; }
.msg .prop .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6d28d9; margin-bottom: 4px; }
.msg .chg { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #efe9fb; font-size: 14px; } .msg .chg .pill { flex: none; }
.msg .acts { display: flex; gap: 8px; margin-top: 10px; }
.typing { display: flex; gap: 5px; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: #b9ae9f; animation: blink 1.2s infinite; } .typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
.chatin { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--soft); align-items: flex-end; }
.chatin textarea { flex: 1; font: inherit; font-size: 15px; resize: none; border: 1px solid #d9d2c7; border-radius: 12px; padding: 10px 12px; min-height: 46px; max-height: 160px; }
.chatin textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(208,16,43,.12); }
@media (max-width: 760px) { .side { overflow-x: auto; scrollbar-width: none; } .side a { flex: 0 0 auto; min-width: 66px; } }

.tbl tr.subhead td{background:var(--paper-2,#f6f1ea);font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.04em;padding:10px 12px;border-top:2px solid #e8dfd3}
