/* F2 Analytics — panel stilleri */

/* ---------------------------------------------------------------- Yazı */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: block;
  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: "Geist";
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: block;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: block;
  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: "Geist Mono";
  src: url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: block;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Ölçü eşli yedek: font gelene kadar satır kırılımları kaymasın */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 93%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ---------------------------------------------------------------- Renkler */
:root {
  color-scheme: dark;
  --page: #07090d;
  --panel: #0f1218;
  --panel-2: #151a22;
  --panel-3: #1c222c;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --ink: #f3f5f8;
  --ink-2: #a5adb8;
  --ink-3: #6f7886;
  --grid: #1a1f27;
  --axis: #2a313c;
  /* F2 kurumsal renkleri: çelik mavisi #66a1b8, lacivert #18355e */
  --brand-steel: #66a1b8;
  --brand-navy: #18355e;
  --accent: #66a1b8;
  --accent-ink: #7fbcd3;
  --on-accent: #07121f;
  --accent-wash: rgba(127, 188, 211, 0.12);
  --accent-glow: rgba(102, 161, 184, 0.45);
  --logo-ink: #f3f5f8;
  --prev: #5c6470;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --up: #3ad17b;
  --down: #ff7066;
  --heat-0: #151a22;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 50px -30px rgba(0, 0, 0, 0.8);
  --glow: rgba(102, 161, 184, 0.09);
  --page-glow: rgba(24, 53, 94, 0.55);
  --grain-opacity: 0.045;

  --font: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 20px;
  --r-sm: 12px;
  --side: 284px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #eff2f6;
  --panel: #ffffff;
  --panel-2: #f4f6f9;
  --panel-3: #e8ecf2;
  --line: rgba(13, 27, 48, 0.08);
  --line-2: rgba(13, 27, 48, 0.14);
  --ink: #0c1626;
  --ink-2: #4c5a6e;
  --ink-3: #7d899a;
  --grid: #edf0f4;
  --axis: #d3d9e2;
  --accent: #18355e;
  --accent-ink: #18355e;
  --on-accent: #ffffff;
  --accent-wash: rgba(24, 53, 94, 0.08);
  --accent-glow: rgba(24, 53, 94, 0.35);
  --logo-ink: #18355e;
  --prev: #b0b9c6;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --up: #157a3a;
  --down: #c42f2f;
  --heat-0: #f1f4f8;
  --shadow: 0 1px 2px rgba(13, 27, 48, 0.04), 0 18px 40px -28px rgba(13, 27, 48, 0.25);
  --glow: rgba(102, 161, 184, 0.1);
  --page-glow: rgba(102, 161, 184, 0.22);
  --grain-opacity: 0.025;
}

/* ---------------------------------------------------------------- Temel */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border-radius: 10px;
  color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
  flex: none;
}
.icon-btn:hover { background: var(--panel-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.is-spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marka işareti */
.brand-logo { height: 24px; width: auto; flex: none; }
.brand-logo .logo-chev { fill: var(--brand-steel); }
.brand-logo .logo-f2 { fill: var(--logo-ink); }
.brand-word { font-weight: 500; letter-spacing: -0.02em; font-size: 16px; color: var(--ink-2); padding-left: 10px; border-left: 1px solid var(--line-2); line-height: 22px; }
.login-brand .brand-logo { height: 30px; }

/* ---------------------------------------------------------------- Giriş */
.login-page { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; overflow: hidden; }
.login-backdrop { position: fixed; inset: 0; z-index: 0; }
.login-canvas { width: 100%; height: 100%; display: block; }
.login-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 45%, transparent 0%, var(--page) 78%);
}
.login { position: relative; z-index: 1; width: min(420px, 100%); }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 44px; }
.login-title { font-size: clamp(34px, 6vw, 46px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 0 0 14px; }
.login-title span { color: var(--ink-3); }
.login-lede { color: var(--ink-2); margin: 0 0 32px; font-size: 15px; max-width: 34ch; }
.login-form {
  display: grid; gap: 14px;
  padding: 22px;
  background: color-mix(in oklab, var(--panel) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
.field span { font-size: 12.5px; color: var(--ink-2); }
.field input {
  height: 46px; padding: 0 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-wash); }
.login-error { margin: 0; color: var(--down); font-size: 13px; }
.btn-primary {
  height: 48px; margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--on-accent);
  border-radius: 12px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary:hover { box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.login-foot { color: var(--ink-3); font-size: 12px; margin: 18px 0 0; }

/* ---------------------------------------------------------------- Yerleşim */
.app { min-height: 100svh; }
.app-page::before {
  content: ""; position: fixed; pointer-events: none; z-index: 0;
  width: 900px; height: 900px; right: -300px; top: -460px;
  background: radial-gradient(closest-side, var(--page-glow), transparent);
}
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--side);
  display: flex; flex-direction: column;
  background: color-mix(in oklab, var(--page) 70%, var(--panel));
  border-right: 1px solid var(--line);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.sidebar-close { display: none; }

.search {
  margin: 4px 14px 10px; height: 38px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
  color: var(--ink-3);
  transition: border-color .2s var(--ease);
}
.search:focus-within { border-color: var(--line-2); }
.search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; height: 100%; font-size: 13.5px; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font-family: var(--mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }

.nav { position: relative; flex: 1; overflow-y: auto; padding: 4px 10px 16px; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
.nav-indicator {
  position: absolute; left: 10px; right: 10px; top: 0; height: 0;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 11px; pointer-events: none; opacity: 0;
  transition: transform .45s var(--ease-out), height .45s var(--ease-out), opacity .2s;
}
.nav-indicator::before {
  content: ""; position: absolute; left: -1px; top: 50%; width: 3px; height: 16px; margin-top: -8px;
  border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-item {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 10px 0 12px;
  border-radius: 11px;
  color: var(--ink-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-item:hover { color: var(--ink); background: color-mix(in oklab, var(--panel-2) 55%, transparent); }
.nav-item[aria-current="page"] { color: var(--ink); background: none; }
.nav-item .nav-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; }
.nav-item .nav-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-spark { width: 46px; height: 18px; flex: none; opacity: .9; }
.nav-val { font-size: 11.5px; color: var(--ink-3); width: 38px; text-align: right; flex: none; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: .5; flex: none; }
.nav-group { margin-top: 18px; }
.nav-group-head {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; height: 30px;
  color: var(--ink-3); font-size: 12px; font-weight: 500;
}
.nav-group-head:hover { color: var(--ink-2); }
.nav-group-head .count { font-family: var(--mono); letter-spacing: 0; text-transform: none; }
.nav-group-head .chev { margin-left: auto; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease); }
.nav-group[data-collapsed="true"] .chev { transform: rotate(-90deg); }
.nav-group-list { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--ease); }
.nav-group-list > div { overflow: hidden; }
.nav-group[data-collapsed="true"] .nav-group-list { grid-template-rows: 0fr; }
.nav-empty { color: var(--ink-3); font-size: 13px; padding: 14px 12px; }

.sidebar-foot { display: flex; align-items: center; gap: 4px; padding: 12px 12px 14px 14px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); font-size: 12px; font-weight: 600; flex: none; }
.user-name { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }

.scrim { display: none; }

.main-wrap { position: relative; z-index: 1; margin-left: var(--side); min-height: 100svh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 clamp(16px, 2.6vw, 40px);
  background: color-mix(in oklab, var(--page) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--line); }
.nav-toggle { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }
.crumbs .here { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.segmented { position: relative; display: flex; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; margin-right: 6px; }
.segmented button {
  position: relative; z-index: 1;
  height: 30px; padding: 0 12px; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-3);
  transition: color .2s var(--ease);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-checked="true"] { color: var(--on-accent); }
.segmented .seg-pill {
  position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 8px;
  background: var(--accent);
  transition: transform .4s var(--ease-out), width .4s var(--ease-out);
}

.main { flex: 1; padding: 12px clamp(16px, 2.6vw, 40px) 40px; outline: none; }
.app-foot { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding: 18px clamp(16px, 2.6vw, 40px) 26px; color: var(--ink-3); font-size: 12px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- Sayfa başlığı */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 32px; padding: 26px 0 30px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-3); font-family: var(--mono); font-size: 12px; letter-spacing: .02em; margin-bottom: 14px; }
.eyebrow a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line-2); transition: color .2s, border-color .2s; }
.eyebrow a:hover { color: var(--ink); border-color: var(--ink-2); }
.eyebrow a svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
.page-title {
  margin: 0;
  font-size: clamp(44px, 7vw, 112px);
  line-height: .9;
  letter-spacing: -0.055em;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.page-title .split-char { display: inline-block; }
.page-sub { margin: 16px 0 0; color: var(--ink-2); font-size: 14px; }
.page-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-2); white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-live { color: var(--accent-ink); border-color: color-mix(in oklab, var(--accent-ink) 35%, transparent); }
.chip-demo { color: var(--ink-2); border-style: dashed; }
.chip-error { color: var(--down); border-color: color-mix(in oklab, var(--down) 40%, transparent); }
.updated { font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------------- Izgara ve kartlar */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.grid + .grid { margin-top: 16px; }
.c-12 { grid-column: span 12; } .c-9 { grid-column: span 9; } .c-8 { grid-column: span 8; } .c-7 { grid-column: span 7; }
.c-6 { grid-column: span 6; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; }

.card {
  position: relative;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), var(--glow), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover::before { opacity: 1; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; min-height: 28px; }
.card-title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.card-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); }
.card-foot { margin-top: 14px; font-size: 12px; color: var(--ink-3); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.key-line { width: 14px; height: 2px; border-radius: 2px; background: var(--accent-ink); }
.key-line.prev { background: var(--prev); }
.key-dot { width: 9px; height: 9px; border-radius: 3px; }

.tabs-mini { display: flex; gap: 2px; padding: 3px; background: var(--panel-2); border-radius: 10px; }
.tabs-mini button { white-space: nowrap; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 12px; color: var(--ink-3); transition: color .2s, background-color .2s; }
.tabs-mini button:hover { color: var(--ink); }
.tabs-mini button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.2); }

/* Değişim rozeti */
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.delta.good { color: var(--up); }
.delta.bad { color: var(--down); }
.delta.flat { color: var(--ink-3); }

/* ---------------------------------------------------------------- Ana grafik kartı */
.hero-card { padding: 0; overflow: hidden; }
.metric-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.metric-tab {
  position: relative; text-align: left;
  padding: 20px 22px 18px;
  border-right: 1px solid var(--line);
  transition: background-color .25s var(--ease);
  min-width: 0;
}
.metric-tab:last-child { border-right: 0; }
.metric-tab:hover { background: color-mix(in oklab, var(--panel-2) 60%, transparent); }
.metric-tab::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.metric-tab[aria-selected="true"]::after { transform: scaleX(1); }
.metric-tab .lbl { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-tab[aria-selected="true"] .lbl { color: var(--ink); }
.metric-tab .val { display: block; font-size: clamp(26px, 2.7vw, 40px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.metric-tab .delta { margin-top: 8px; }
.hero-body { padding: 18px 22px 16px; }
.hero-body .card-head { margin-bottom: 8px; }
.chart { position: relative; width: 100%; }
.chart svg { overflow: visible; }
.chart-main { height: 300px; }

/* SVG grafik parçaları */
.g-grid line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.g-grid line.base { stroke: var(--axis); }
.g-axis text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.g-line { fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.g-line.prev { stroke: var(--prev); stroke-width: 1.5; }
.g-area-stop-a { stop-color: var(--accent-ink); stop-opacity: .16; }
.g-area-stop-b { stop-color: var(--accent-ink); stop-opacity: 0; }
.g-dot { fill: var(--accent-ink); stroke: var(--panel); stroke-width: 2; }
.g-dot.prev { fill: var(--prev); }
.g-cross { stroke: var(--ink-3); stroke-width: 1; opacity: .6; shape-rendering: crispEdges; }
.g-hit { fill: transparent; cursor: crosshair; }
.g-spark { fill: none; stroke: var(--accent-ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.g-spark.muted { stroke: var(--ink-3); }
.g-spark-area { fill: var(--accent-wash); }
.g-hover { opacity: 0; transition: opacity .15s; pointer-events: none; }
.chart:hover .g-hover, .chart.is-active .g-hover { opacity: 1; }
.g-draw { transition: stroke-dashoffset 1.3s var(--ease-out); }
.g-fade { transition: opacity 1s .25s var(--ease); }

/* İpucu kutusu */
.tooltip {
  position: fixed; left: 0; top: 0; z-index: 90;
  min-width: 150px; max-width: 280px;
  padding: 10px 12px;
  background: color-mix(in oklab, var(--panel-3) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .5);
  font-size: 12.5px; pointer-events: none;
  opacity: 0; transform: translate3d(0, 4px, 0);
  transition: opacity .15s var(--ease);
}
.tooltip.is-on { opacity: 1; }
.tooltip .tt-title { color: var(--ink-2); margin-bottom: 6px; font-size: 12px; }
.tooltip .tt-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tooltip .tt-row + .tt-row { margin-top: 4px; }
.tooltip .tt-row span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.tooltip .tt-row strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.tooltip .tt-foot { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- Anlık kartı */
.live-card { display: flex; flex-direction: column; }
.live-head { display: flex; align-items: center; gap: 12px; padding-left: 2px; font-size: 12.5px; color: var(--ink-2); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.live-num { font-size: clamp(56px, 6vw, 88px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; margin: 18px 0 4px; }
.live-cap { font-size: 12.5px; color: var(--ink-3); }
.minute-bars { height: 64px; margin: 20px 0 6px; }
.minute-bars path { fill: var(--accent-ink); opacity: .5; transition: opacity .2s; pointer-events: none; }
.minute-bars path.now { opacity: 1; }
.minute-bars path.empty { fill: var(--panel-3); opacity: 1; }
.minute-bars .hit:hover + path:not(.empty) { opacity: 1; }
.minute-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }
.live-pages { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 9px; flex: 1; }
.live-pages li { display: flex; align-items: center; gap: 10px; font-size: 13px; min-width: 0; }
.live-pages li span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.live-pages li strong { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Göstergeler */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; justify-content: space-between; min-height: 156px; }
.kpi .lbl { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi .val { font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin: 14px 0 10px; }
.kpi .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.kpi .spark { width: 120px; height: 34px; flex: none; }
.kpi .vs { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.info { width: 16px; height: 16px; color: var(--ink-3); cursor: help; flex: none; }
.info svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Öne çıkanlar */
.insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: ins; }
.insights li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.insights li:first-child { border-top: 0; padding-top: 2px; }
.insights li::before { counter-increment: ins; content: counter(ins, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 2px; }
.insights strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- Çubuk listeleri */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: baseline; }
.bar-row .name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; }
.bar-row .name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .figs { display: flex; align-items: baseline; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.bar-row .figs .share { color: var(--ink-3); font-size: 12px; width: 44px; text-align: right; }
.bar-row .figs .delta { width: 62px; justify-content: flex-end; }
.bar-track { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent-ink); transition: width 1.1s var(--ease-out); }
.bar-fill.s1 { background: var(--s1); } .bar-fill.s2 { background: var(--s2); }
.code { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; line-height: 17px; flex: none; }

/* Tablo */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: right; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 0 0 10px 14px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table th:first-child, .table td:first-child { text-align: left; padding-left: 0; }
.table td { text-align: right; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .2s; }
.table tbody tr:hover { background: color-mix(in oklab, var(--panel-2) 60%, transparent); }
.page-cell { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 10px; align-items: center; white-space: normal; min-width: 220px; }
.page-cell .rank { grid-row: span 2; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.page-cell .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-cell .p { font-family: var(--mono); font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-bar { display: inline-block; width: 64px; height: 4px; border-radius: 4px; background: var(--panel-2); vertical-align: middle; margin-right: 10px; overflow: hidden; }
.inline-bar i { display: block; height: 100%; background: var(--accent-ink); border-radius: 4px; }

/* Halka grafik */
.donut-wrap { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; }
.donut { width: 160px; height: 160px; position: relative; }
.donut path { transition: opacity .2s; cursor: default; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-center strong { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.donut-center span { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.donut-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.donut-legend .pct { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.donut-legend .sub { grid-column: 2 / -1; font-size: 12px; color: var(--ink-3); margin-top: -8px; }

/* Isı haritası */
.heat { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px 8px; }
.heat-days { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; font-size: 11px; color: var(--ink-3); }
.heat-days span { display: flex; align-items: center; }
.heat-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); grid-template-rows: repeat(7, 22px); gap: 3px; }
.heat-cell { border-radius: 4px; background: var(--heat-0); transition: transform .2s var(--ease), box-shadow .2s; }
.heat-cell:hover { transform: scale(1.25); box-shadow: 0 0 0 2px var(--panel); position: relative; z-index: 1; }
.heat-hours { grid-column: 2; display: grid; grid-template-columns: repeat(8, 1fr); font-size: 11px; color: var(--ink-3); }
.heat-scale { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.heat-scale i { display: block; width: 14px; height: 10px; border-radius: 3px; }

/* ---------------------------------------------------------------- Genel bakış */
.ov-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; }
.ov-hero-main { padding: 22px; border-right: 1px solid var(--line); min-width: 0; }
.ov-hero-side { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.hero-figure { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 14px; }
.hero-figure .big { font-size: clamp(52px, 6vw, 92px); font-weight: 600; letter-spacing: -0.06em; line-height: .95; }
.split-bar { display: flex; gap: 2px; height: 10px; margin: 12px 0 14px; }
.split-bar i { display: block; height: 100%; border-radius: 3px; transition: flex-grow 1s var(--ease-out); }
.stat-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.stat-line span { color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.stat-line strong { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }

.group-title { display: flex; align-items: baseline; gap: 12px; margin: 40px 0 16px; }
.group-title h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.04em; font-weight: 600; }
.group-title span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.site-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.site-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; transition: transform .35s var(--ease-out), border-color .25s; }
.site-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.site-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.site-card h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
.site-card .dom { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 3px; overflow-wrap: anywhere; }
.site-card .arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-3); flex: none; transition: background-color .3s, color .3s, transform .4s var(--ease-out), border-color .3s; }
.site-card .arrow svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-card:hover .arrow { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: rotate(-45deg); }
.site-card .figure { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.site-card .figure strong { font-size: 32px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.site-card .figure small { font-size: 12px; color: var(--ink-3); }
.site-card .spark { height: 46px; width: 100%; }
.site-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); }
.site-card-foot .live { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.site-card-foot .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.mini-chip { font-size: 11px; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: 999px; padding: 1px 8px; }

.leader .bar-row .name .key-dot { flex: none; }
.leader .rank { font-family: var(--mono); font-size: 11px; color: var(--ink-3); width: 20px; flex: none; }

/* Bölüm başlıkları */
.section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 44px 0 16px; }
.section-title h2 { margin: 0; font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -0.04em; font-weight: 600; }
.section-title span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.section-title + div > .grid:first-child, .section-title + .grid { margin-top: 0; }

/* Google arama */
.kw-cell { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 200px; max-width: 420px; white-space: normal; }
.kw-cell .rank { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.kw-cell .kw { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-table td .pos { display: inline-block; min-width: 34px; font-weight: 600; }
.kw-table td .delta { margin-left: 6px; min-width: 44px; justify-content: flex-start; }
.site-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.link-btn { margin-top: 14px; font-size: 13px; color: var(--accent-ink); font-weight: 500; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.brand-split { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.brand-split-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.brand-split-head .card-sub { margin: 0; }
.seo-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.seo-kpi { background: var(--panel); padding: 14px; display: grid; gap: 4px; }
.seo-kpi .lbl { font-size: 12px; color: var(--ink-2); }
.seo-kpi strong { font-size: 24px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.notice-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; }
.notice-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); }
.notice-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.notice-card h3 { margin: 2px 0 6px; font-size: 16px; letter-spacing: -0.02em; }
.notice-card p { margin: 0; color: var(--ink-2); max-width: 72ch; }
.notice-card .notice-reason { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); }

/* Büyüme listesi (ıraksak çubuk) */
.movers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.movers li { display: grid; grid-template-columns: minmax(80px, 110px) minmax(0, 1fr) 70px; align-items: center; gap: 12px; height: 30px; font-size: 13px; }
.movers li a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movers li a:hover { color: var(--accent-ink); }
.movers .delta { justify-content: flex-end; }
.mv-track { position: relative; height: 10px; }
.mv-track::before { content: ""; position: absolute; left: 50%; top: -6px; bottom: -6px; width: 1px; background: var(--axis); }
.mv-bar { position: absolute; top: 0; height: 100%; width: 0; transition: width 1.1s var(--ease-out); }
.mv-bar.up { left: calc(50% + 2px); border-radius: 0 4px 4px 0; background: var(--up); }
.mv-bar.down { right: calc(50% + 2px); border-radius: 4px 0 0 4px; background: var(--down); }
.mv-bar.is-in { width: var(--w); }

/* ---------------------------------------------------------------- Durumlar */
.skeleton { position: relative; overflow: hidden; background: var(--panel-2); border-radius: 8px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--ink) 5%, transparent), transparent);
  transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; margin: 8px 0; }
.sk-big { height: 40px; width: 60%; }
.sk-chart { height: 260px; }
.empty-state { display: grid; place-items: center; text-align: center; gap: 6px; padding: 30px 10px; color: var(--ink-3); font-size: 13px; min-height: 120px; }
.error-card { border-color: color-mix(in oklab, var(--down) 35%, var(--line)); }
.error-card h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.error-card p { margin: 0; color: var(--ink-2); max-width: 70ch; }

/* ---------------------------------------------------------------- Hareket */
.reveal { opacity: 0; transform: translate3d(0, 14px, 0); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.view { transition: opacity .18s var(--ease); }
.view.is-leaving { opacity: 0; }
.title-reveal .split-char { opacity: 0; transform: translate3d(0, .35em, 0); }
.title-reveal.is-in .split-char { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i) * 22ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .reveal, .title-reveal .split-char { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Duyarlı */
@media (max-width: 1360px) {
  .metric-tab { padding: 18px 16px 16px; }
  .ov-hero { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 1180px) {
  .c-9, .c-8, .c-7, .c-6, .c-5, .c-4, .c-3 { grid-column: span 12; }
  .grid > .c-6.pair, .grid > .c-5.pair, .grid > .c-7.pair { grid-column: span 6; }
  .live-card { min-height: 0; }
}
@media (max-width: 1024px) {
  :root { --side: 0px; }
  .sidebar {
    width: min(320px, 86vw);
    transform: translateX(-102%);
    transition: transform .45s var(--ease-out);
    box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .6);
  }
  .app.nav-open .sidebar { transform: none; }
  .sidebar-close, .nav-toggle { display: inline-grid; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .app.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .grid > .c-6.pair, .grid > .c-5.pair, .grid > .c-7.pair { grid-column: span 12; }
}
@media (max-width: 860px) {
  .metric-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-tab:nth-child(2) { border-right: 0; }
  .metric-tab:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ov-hero { grid-template-columns: minmax(0, 1fr); }
  .ov-hero-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .page-head { grid-template-columns: minmax(0, 1fr); }
  .page-head-side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  body { font-size: 13.5px; }
  .topbar { height: 58px; gap: 6px; }
  .crumbs { display: none; }
  .segmented { margin-right: 0; }
  .segmented button { padding: 0 9px; }
  .card { padding: 18px; border-radius: 16px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
  .hero-body { padding: 14px 14px 12px; }
  .metric-tab { padding: 16px 14px 14px; }
  .chart-main { height: 240px; }
  .kpis { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .kpi { min-height: 0; }
  .kpi .spark { width: 96px; }
  .donut-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .donut-legend { width: 100%; }
  .heat-grid { grid-template-rows: repeat(7, 16px); gap: 2px; }
  .heat-cell { border-radius: 3px; }
  .heat-hours { grid-template-columns: repeat(4, 1fr); }
  .heat-hours span:nth-child(even) { display: none; }
  .bar-row .figs .delta { display: none; }
  .ov-hero-main, .ov-hero-side { padding: 18px; }
  .group-title { margin-top: 32px; }
  .page-cell { min-width: 180px; }
}
@media (max-width: 380px) {
  .segmented button { padding: 0 7px; font-size: 12px; }
  .topbar-actions .icon-btn[data-action="print"] { display: none; }
}

/* ---------------------------------------------------------------- Baskı */
@media print {
  :root, :root[data-theme="dark"] {
    color-scheme: light;
    --page: #fff; --panel: #fff; --panel-2: #f3f3ef; --panel-3: #e8e8e2;
    --line: #e2e2dc; --line-2: #d0d0c8; --ink: #000; --ink-2: #3f413b; --ink-3: #6d6f68;
    --grid: #edf0f4; --axis: #d3d9e2; --accent-ink: #18355e; --logo-ink: #18355e; --prev: #a9aba2; --heat-0: #f3f3ef;
    --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --up: #157a3a; --down: #c42f2f; --shadow: none;
  }
  body::after, .app-page::before, .sidebar, .scrim, .topbar, .skip, .tooltip, .live-card { display: none !important; }
  .main-wrap { margin: 0; }
  .main { padding: 0; }
  .card { break-inside: avoid; box-shadow: none; }
  .reveal, .title-reveal .split-char { opacity: 1 !important; transform: none !important; }
  .c-9, .c-8 { grid-column: span 12; }
  @page { margin: 14mm; }
}

@media (forced-colors: active) {
  .bar-fill, .inline-bar i, .heat-cell, .minute-bars rect { forced-color-adjust: none; }
}
.table th.l, .table td.l { text-align: left; }

/* Mobilde tablolar ekrana sığar: ikincil sütunlar gizlenir, metin kırılır (yana kaydırma yok) */
@media (max-width: 640px) {
  .table .opt, .table .inline-bar { display: none; }
  .table th, .table td { white-space: normal; }
  .page-cell, .kw-cell { min-width: 0; }
  .page-cell .t, .kw-cell .kw { white-space: normal; overflow-wrap: anywhere; }
  .kw-table td .delta { display: flex; margin: 2px 0 0; justify-content: flex-end; }
  .table-wrap { overflow-x: visible; }
}

/* SEO analizi */
.kw-plain { font-weight: 500; overflow-wrap: anywhere; }
.muted { color: var(--ink-3); }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; }
.q-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.q-list li:first-child { border-top: 0; padding-top: 0; }
.q-mark { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; font-size: 12px; }
.q-text { font-weight: 500; overflow-wrap: anywhere; }
.q-figs { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.dev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dev-list li { display: grid; grid-template-columns: 10px auto minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 13px; }
.dev-figs { text-align: right; color: var(--ink-3); font-size: 12px; }
.dev-figs strong { color: var(--ink); font-size: 14px; }
.cannibal { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cannibal > li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.cn-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13.5px; }
.cn-imp { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.cannibal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cannibal ul li { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-3); }
.cannibal ul li .p { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.hstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.hstat { display: grid; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); }
.hstat .lbl { font-size: 12px; color: var(--ink-2); }
.hstat strong { font-size: 24px; font-weight: 600; letter-spacing: -0.04em; }
.hnote { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.hnote svg, .idx svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hstat-ok .hnote { color: var(--up); }
.hstat-bad .hnote { color: var(--down); }
.idx { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.idx-ok { color: var(--up); }
.idx-bad { color: var(--down); }
.warn-note { display: block; margin-top: 3px; font-size: 11.5px; color: var(--down); }
.potential { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--accent-wash); display: grid; gap: 2px; font-size: 12px; color: var(--ink-2); }
.potential strong { font-size: 28px; font-weight: 600; letter-spacing: -0.04em; color: var(--accent-ink); line-height: 1.1; }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent-ink); animation: spin .8s linear infinite; margin-right: 8px; vertical-align: -3px; }
@media (max-width: 1180px) { .hstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .q-list li { grid-template-columns: 24px minmax(0, 1fr); }
  .q-figs { grid-column: 2; white-space: normal; }
  .dev-list li { grid-template-columns: 10px minmax(0, 1fr); }
  .dev-figs { grid-column: 2; text-align: left; }
  .tabs-mini { flex-wrap: wrap; }
  .cannibal ul li { flex-direction: column; gap: 0; }
}
