/* Telif Tarama — LOST panelinin kitinden (label-platform/…/wise/wise.css) alınan dil: token'lar ve ölçüler aynen,
   sınıf adları bizim. Koyu tema varsayılan, açık tema prefers-color-scheme ile. Ekrana özgü parçalar ekran.css'te. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(/fonts/jakarta-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: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(/fonts/jakarta-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --zemin: #0e0f10; --yuzey: rgba(255, 255, 255, 0.045); --yuzey-2: rgba(255, 255, 255, 0.08); --yuzey-3: rgba(255, 255, 255, 0.13);
  --cizgi: rgba(255, 255, 255, 0.09); --yazi: #f2f2f3; --ikincil: #aaaaae; --soluk: #8a8a90;
  --parlak: #ffffff; --parlak-murekkep: #0e0f10;
  --bekleyen: #e2c081; --bekleyen-zemin: rgba(226, 192, 129, 0.13); --tamam: #e7e7e9; --tamam-zemin: rgba(255, 255, 255, 0.11);
  --kotu: #ef9081; --kotu-zemin: rgba(239, 144, 129, 0.12); --odak: rgba(255, 255, 255, 0.55); --golge: rgba(0, 0, 0, 0.6);
  --yukseltilmis: #18181a; --yuzey-dolu: #171719; --dalga: #55565b; --dalga-calinan: #8a8a90;
  --r: 20px; --r-k: 14px; --menu-gen: 248px; --kolon: 880px; --kenar: 32px;
  --cikis: cubic-bezier(0.23, 1, 0.32, 1); --cekmece: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --zemin: #ffffff; --yuzey: rgba(16, 18, 17, 0.045); --yuzey-2: rgba(16, 18, 17, 0.08); --yuzey-3: rgba(16, 18, 17, 0.14);
    --cizgi: rgba(16, 18, 17, 0.11); --yazi: #101211; --ikincil: #4a4f4c; --soluk: #6b706d;
    --parlak: #101211; --parlak-murekkep: #ffffff;
    --bekleyen: #8a6a12; --bekleyen-zemin: rgba(214, 168, 62, 0.18); --tamam: #2f3330; --tamam-zemin: rgba(16, 18, 17, 0.09);
    --kotu: #a33222; --kotu-zemin: rgba(163, 50, 34, 0.10); --odak: rgba(16, 18, 17, 0.32); --golge: rgba(0, 0, 0, 0.16);
    --yukseltilmis: #ffffff; --yuzey-dolu: #f4f5f4; --dalga: #c9cbca; --dalga-calinan: #8d918e;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  display: grid; grid-template-columns: var(--menu-gen) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "menu ana" "calar calar"; background: var(--zemin); color: var(--yazi);
  font: 500 14px/1.45 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
:where(a) { color: inherit; text-decoration: none; }
:where(p, h1, h2, h3) { margin: 0; }
:where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--odak); outline-offset: 2px; border-radius: 8px; }
.say { font-variant-numeric: tabular-nums; }
.ikon { width: 20px; height: 20px; flex: none; display: block; }

/* ── menü ── */
.menu { grid-area: menu; display: flex; flex-direction: column; gap: 2px; padding: 20px 12px; }
.menu__ad { padding: 4px 14px 18px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; width: fit-content; }
.menu__cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin: 2px 4px 10px; border-radius: 999px;
  background: var(--parlak); color: var(--parlak-murekkep); font-weight: 700; transition: transform 160ms var(--cikis), filter 120ms; }
.menu__cta .ikon { width: 18px; height: 18px; }
.menu__oge { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 600; color: var(--ikincil);
  transition: background 120ms, color 120ms; }
.menu__oge .ikon { width: 18px; height: 18px; }
.menu__oge--acik { background: var(--yuzey-2); color: var(--yazi); font-weight: 700; }

/* ── ana kolon: geniş ekranda görünür alanın gerçek ortasında, menüyle çakışmadan ── */
#ana { grid-area: ana; overflow-y: auto; overflow-x: hidden; padding: 28px 0 56px; }
.sayfa { display: flex; flex-direction: column; gap: 24px; width: min(var(--kolon), 100% - 2 * var(--kenar));
  margin-left: max(var(--kenar), calc((100% - var(--menu-gen) - var(--kolon)) / 2)); margin-right: auto; }
.geri { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 44px; margin-bottom: -12px; color: var(--ikincil);
  font-size: 13px; font-weight: 600; transition: color 120ms; }
.geri .ikon { width: 15px; height: 15px; }

/* ── baş blok (ortalı) ── */
.bas { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.bas h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.bas__ust { font-size: 12.5px; font-weight: 700; color: var(--ikincil); overflow-wrap: anywhere; }
.bas__alt { color: var(--ikincil); font-size: 13px; }
.bas__aciklama { color: var(--ikincil); margin-top: 2px; max-width: 60ch; }
.bas .buyuk { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }

/* ── yuvarlak eylemler ── */
.eylemler { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 16px; }
.eylem { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 84px; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; }
.eylem__d { width: 52px; height: 52px; border-radius: 50%; background: var(--yuzey-2); color: var(--yazi); display: grid; place-items: center;
  transition: transform 160ms var(--cikis), background 120ms; }
.eylem__d .ikon { width: 22px; height: 22px; }
.eylem--p .eylem__d { background: var(--parlak); color: var(--parlak-murekkep); }
.eylem--p .eylem__d .ikon { width: 20px; height: 20px; }
.eylem:active .eylem__d { transform: scale(0.94); }
.eylem:disabled { opacity: 0.5; cursor: default; }

/* ── düğme ── */
.dugme { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; white-space: nowrap; background: var(--yuzey-2); color: var(--yazi); transition: background 120ms, transform 160ms var(--cikis); }
.dugme--p { background: var(--parlak); color: var(--parlak-murekkep); }
.dugme--k { height: 32px; padding: 0 14px; font-size: 13px; }
.dugme--kotu { background: var(--kotu-zemin); color: var(--kotu); }
.dugme .ikon { width: 16px; height: 16px; }
.dugme:active, .menu__cta:active { transform: scale(0.97); }
.dugme:disabled { opacity: 0.5; cursor: default; transform: none; }

/* ── kart, bölüm ── */
.kart { background: var(--yuzey); border-radius: var(--r); padding: 22px 24px; position: relative; }
.kart__k { font-size: 12px; font-weight: 700; color: var(--ikincil); }
.bolum { display: flex; flex-direction: column; gap: 10px; }
.bolum__b { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 0 2px; }
.bolum__b h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.bolum__iz { font-size: 12.5px; color: var(--ikincil); }
.not { color: var(--soluk); font-size: 12.5px; padding: 4px 2px 0; line-height: 1.5; }
.not a { color: var(--ikincil); }

/* ── satır listesi ── */
.satirlar { display: flex; flex-direction: column; }
.kart > .satirlar { margin: -6px -8px; }
.satir { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-radius: 16px; width: 100%; text-align: left; position: relative; }
.satir + .satir::before { content: ""; position: absolute; left: 66px; right: 8px; top: 0; height: 1px; background: var(--cizgi); transition: opacity 120ms; }
.satir--tik { cursor: pointer; transition: background 120ms, transform 160ms var(--cikis); }
.satir--tik:active { transform: scale(0.99); }
.satir__govde { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.satir__t { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.satir__s { color: var(--ikincil); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.satir__s--sar { white-space: normal; }
.satir__sag { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.satir__a { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.satir__b { color: var(--soluk); font-size: 12px; font-variant-numeric: tabular-nums; }
.ok { color: var(--soluk); flex: none; display: grid; place-items: center; transition: transform 160ms var(--cikis), color 120ms; }
.ok .ikon { width: 18px; height: 18px; }
.grup { font-size: 12.5px; font-weight: 700; color: var(--soluk); padding: 14px 8px 4px; }
.grup:first-child { padding-top: 4px; }
.satirlar--kart { gap: 6px; }
.satirlar--kart > .satir { background: var(--yuzey); border-radius: var(--r-k); padding: 14px 16px; gap: 16px; }
.satirlar--kart > .satir::before { content: none; }
.renk-bek { color: var(--bekleyen); } .renk-kot { color: var(--kotu); } .renk-ikincil { color: var(--ikincil); }

/* ── kapak, ikon dairesi, hap ── */
.kapak { position: relative; overflow: hidden; width: 44px; height: 44px; border-radius: 10px; background: var(--yuzey-2); color: var(--soluk);
  display: grid; place-items: center; flex: none; }
.kapak img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kapak .ikon { width: 40%; height: 40%; }
.kapak--b { width: 72px; height: 72px; border-radius: 14px; }
.kapak--dev { width: 112px; height: 112px; border-radius: 20px; }
.kapak--xk { width: 22px; height: 22px; border-radius: 5px; }
.daire { width: 44px; height: 44px; border-radius: 50%; background: var(--yuzey-2); color: var(--ikincil); display: grid; place-items: center; flex: none; }
.daire--k { width: 32px; height: 32px; }
.daire--k .ikon { width: 16px; height: 16px; }
.daire--bek { background: var(--bekleyen-zemin); color: var(--bekleyen); }
.daire--tam { background: var(--tamam-zemin); color: var(--tamam); }
.daire--kot { background: var(--kotu-zemin); color: var(--kotu); }
.hap { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  white-space: nowrap; background: var(--yuzey-2); color: var(--ikincil); flex: none; }
.hap--bek { background: var(--bekleyen-zemin); color: var(--bekleyen); }
.hap--kot { background: var(--kotu-zemin); color: var(--kotu); }

/* ── onay kutusu (kitin w-check'i + w-cb içeriği: ad ve altında tek cümle) ── */
.onaylar { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.onaylar legend { padding: 0 0 8px; font-size: 13px; font-weight: 700; }
.onay { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; position: relative; }
.onay input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.onay__k { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--soluk); display: grid; place-items: center; flex: none; margin-top: 1px;
  color: var(--parlak-murekkep); transition: background 120ms, border-color 120ms; }
.onay__k .ikon { width: 14px; height: 14px; opacity: 0; }
.onay input:checked + .onay__k { background: var(--parlak); border-color: var(--parlak); }
.onay input:checked + .onay__k .ikon { opacity: 1; }
.onay input:focus-visible + .onay__k { outline: 2px solid var(--odak); outline-offset: 2px; }
.onay--kapali { opacity: 0.5; cursor: not-allowed; }
.onay__g { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.onay__t { font-weight: 700; font-size: 14.5px; }
.onay__a { color: var(--ikincil); font-size: 12.5px; }

/* ── uyarı kutusu, ölçer, boş durum ── */
.uyari { padding: 13px 16px; border-radius: var(--r-k); background: var(--yuzey); color: var(--yazi); font-size: 13px; line-height: 1.5; }
.uyari--bek { background: var(--bekleyen-zemin); color: var(--bekleyen); }
.uyari--kot { background: var(--kotu-zemin); color: var(--kotu); }
.uyari b { font-weight: 700; }
.olcer { height: 8px; border-radius: 999px; background: var(--yuzey-2); overflow: hidden; }
.olcer__d { height: 100%; width: 100%; border-radius: 999px; background: var(--parlak); transform-origin: left; transform: scaleX(0);
  transition: transform 400ms var(--cikis); }
.bos { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 16px; }
.bos h3 { font-size: 15px; font-weight: 800; }
.bos p { color: var(--ikincil); max-width: 46ch; }

/* ── onay penceresi ── */
.perde { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pencere { background: var(--yukseltilmis); border-radius: 24px; width: 100%; max-width: 460px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 32px 90px -12px var(--golge), 0 0 0 1px var(--cizgi); }
.pencere h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pencere .uyari { margin-top: 6px; }
.pencere p { color: var(--ikincil); font-size: 13.5px; }
.pencere__alt { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* ── üzerine gelme: yalnız fareli aygıtlarda ── */
@media (hover: hover) and (pointer: fine) {
  .menu__cta:hover, .dugme--p:hover { filter: brightness(1.05); }
  .menu__oge:hover { background: var(--yuzey); color: var(--yazi); }
  .menu__oge--acik:hover { background: var(--yuzey-2); }
  .geri:hover { color: var(--yazi); }
  .eylem:not(:disabled):hover .eylem__d { transform: translateY(-1px); background: var(--yuzey-3); }
  .eylem--p:not(:disabled):hover .eylem__d { background: var(--parlak); filter: brightness(1.05); }
  .eylem:not(:disabled):active .eylem__d { transform: scale(0.94); }
  .dugme:not(:disabled):hover { background: var(--yuzey-3); }
  .dugme--p:not(:disabled):hover { background: var(--parlak); }
  .satir--tik:hover { background: var(--yuzey-2); }
  .satir--tik:hover::before, .satir--tik:hover + .satir::before { opacity: 0; }
  .satirlar--kart > .satir--tik:hover { background: var(--yuzey-2); }
  .satir--tik:hover .ok { transform: translateX(2px); color: var(--ikincil); }
  .onay:not(.onay--kapali):hover .onay__k { border-color: var(--yazi); }
  .onay:not(.onay--kapali):hover input:checked + .onay__k { border-color: var(--parlak); }
}

/* ── dönen gösterge (kitin w-spin'i) ── */
.donen { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--yuzey-3); border-top-color: var(--yazi);
  animation: donme 620ms linear infinite; }
@keyframes donme { to { transform: rotate(360deg); } }

/* ── hareket ── */
@keyframes perde-gir { from { opacity: 0; } }
@keyframes pencere-gir { from { opacity: 0; transform: scale(0.97); } }
@keyframes pencere-alttan { from { transform: translateY(100%); } }
.perde { animation: perde-gir 200ms var(--cikis); }
.pencere { animation: pencere-gir 200ms var(--cikis); }
/* Telefonda pencere alttan açılan sayfa (kitteki w-modal'ın dar ekran hali) */
@media (max-width: 639px) {
  .perde { align-items: flex-end; padding: 0; }
  .pencere { max-width: none; max-height: 92vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom));
    animation: pencere-alttan 300ms var(--cekmece); }
  .pencere__alt .dugme { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .donen { animation-duration: 2s !important; }   /* kitteki gibi: durum göstergesi yavaşlar ama donmaz (donuk gösterge bozuk görünür) */
}

/* ── dar ekran: menü üstte tek satır ── */
@media (max-width: 760px) {
  :root { --menu-gen: 0px; --kenar: 16px; }
  body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "menu" "ana" "calar"; }
  /* Üst satır: ad + "Yeni tarama"; altında kitin alt çizgili sekmeleri (hap yok) */
  .menu { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 22px; padding: 10px 16px 0; border-bottom: 1px solid var(--cizgi); }
  .menu::after { content: ""; order: 2; flex-basis: 100%; }          /* sekmeler ikinci satıra */
  .menu__ad { padding: 0; font-size: 17px; flex: 1; }
  .menu__cta { margin: 0; height: 36px; padding: 0 16px; font-size: 13.5px; }
  .menu__oge { order: 3; width: auto; height: auto; padding: 12px 0 10px; margin-top: 4px; margin-bottom: -1px; border-radius: 0; background: none;
    border-bottom: 2px solid transparent; font-size: 13.5px; }
  .menu__oge .ikon { display: none; }
  .menu__oge--acik { background: none; border-bottom-color: var(--yazi); }
  #ana { padding: 18px 0 40px; }
  .bas .buyuk { font-size: 32px; }
  .eylemler { gap: 10px; }
}
