/* TikQo Ajans Paneli — site token'ları (site-canli/src/assets/css/site.css) üzerine panel bileşenleri.
   Turuncu --accent yalnızca birincil eylemde (btn.primary) ve odak halkasında kullanılır. */

:root {
  --bg: #0B0B0C;
  --card: #141416;
  --card-2: #1A1A1D;
  --raise: #212125;
  --line: #232327;
  --line-2: #303036;
  --text: #FFFFFF;
  --text-2: #B5B5BD;
  --text-3: #8C8C95;
  --accent: #FF5A1F;
  --accent-2: #E04A12;
  --soft: #ECECEF;
  --pink: #FE2C55;
  --ok: #14CA74;
  --warn: #FDB52A;
  --err: #FF5C6C;
  --info: #5B8CFF;
  --wa: #15803D;
  --wa-hover: #116B33;
  --on-accent: #0B0B0C;
  --r: 14px;
  --font: "Mona Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-w: 232px;
  --top-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 16px; }
p { margin: 0; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 13.5px; }
.nowrap { white-space: nowrap; }
.c-ok { color: var(--ok); }
.c-warn { color: var(--warn); }
.c-err { color: var(--err); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Açılış ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--text-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--card-2);
  font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn:hover { background: var(--raise); border-color: #3c3c44; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 26px -12px #ff5a1fcc; }
.btn.primary:hover { background: #ff6f3c; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.wa:hover { background: var(--wa-hover); }
.btn.danger { background: #d93a4a; border-color: #d93a4a; color: #fff; }
.btn.danger:hover { background: #c22f3e; }
.btn.danger-ghost { color: var(--err); }
.btn.danger-ghost:hover { background: #ff5c6c14; border-color: #ff5c6c66; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--card-2); color: var(--text); }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
a.btn[aria-disabled="true"] { pointer-events: none; }
.btn[aria-busy="true"] { cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--card-2); color: var(--text); }
.link-btn { border: 0; background: none; padding: 0; color: var(--text-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link-btn:hover { color: var(--text); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.link:hover { color: var(--text); }
.link .ic { width: 14px; height: 14px; }

/* ---------- Giriş ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px;
  background: radial-gradient(600px 320px at 50% 0%, rgba(255, 90, 31, .10), transparent 70%); }
.auth-card { width: 100%; max-width: 420px; padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card > div > p.muted { margin-bottom: 20px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.auth-brand img { border-radius: 10px; }
.auth-brand b { display: block; font-size: 19px; font-weight: 800; }
.auth-brand small { color: var(--text-3); font-size: 13px; }
#f-login { display: flex; flex-direction: column; gap: 14px; }
#f-login .link-btn { align-self: center; }
.auth-foot { margin-top: 20px; font-size: 13.5px; }
.auth-foot a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); }
.auth-foot a:hover { color: var(--text); }
.blocked { text-align: center; }
.blocked > .ic { width: 40px; height: 40px; color: var(--warn); margin: 0 auto 12px; }
.blocked p { margin: 8px 0 20px; }
.stack { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.stack .link-btn { align-self: center; margin-top: 4px; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; min-width: 0; }
.field > span:first-child { color: var(--text-2); font-weight: 600; }
.field em { font-style: normal; color: var(--text-3); font-weight: 500; }
.field input, .field textarea, .search input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line-2); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .search input:focus { outline: none; border-color: #5a5a63; box-shadow: 0 0 0 3px #ffffff14; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.field input:disabled, .field textarea:disabled { opacity: .55; cursor: not-allowed; }
.f-hint { color: var(--text-3); font-size: 12.5px; }
.f-err { color: var(--err); font-size: 12.5px; min-height: 0; }
.f-err:empty { display: none; }
.field.ro output { padding: 10px 12px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); font-size: 15px; color: var(--soft); overflow-wrap: anywhere; }
.pass-wrap { position: relative; display: flex; gap: 8px; align-items: center; }
.pass-wrap input { flex: 1; }
.pass-wrap .pass-toggle { position: absolute; right: 4px; top: 3px; }
.pass-wrap input[type="password"], .pass-wrap input:has(+ .pass-toggle) { padding-right: 44px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.form-msg .ic { margin-top: 1px; }
.form-msg.err { background: #ff5c6c14; border: 1px solid #ff5c6c4d; color: #ffc2c8; }
.form-msg.ok { background: #14ca7414; border: 1px solid #14ca744d; color: #b7f3d6; }
.form-msg.info { background: #5b8cff14; border: 1px solid #5b8cff4d; color: #c9d7ff; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Kabuk ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); grid-template-rows: var(--top-h) 1fr; }
.topbar {
  grid-column: 1 / -1; position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
  background: rgba(11, 11, 12, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; width: calc(var(--nav-w) - 36px); flex: none; }
.brand img { border-radius: 8px; }
.brand b { display: block; font-weight: 800; font-size: 17px; line-height: 1.1; }
.brand small { display: block; color: var(--text-3); font-size: 12px; line-height: 1.2; }
.top-agency { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.top-agency b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--card-2); }
.sub-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.sub-pill > span { padding-right: 6px; }
.sub-pill .ic { width: 16px; height: 16px; }
.sub-pill.warn { color: var(--warn); border-color: #fdb52a66; background: #fdb52a12; }
.sub-pill.err { color: var(--err); border-color: #ff5c6c66; background: #ff5c6c12; }
.pill-action { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--wa); color: #fff; font-size: 12.5px; }
.pill-action .ic { width: 14px; height: 14px; }
.pill-action:hover { background: var(--wa-hover); }

.sidenav { position: sticky; top: var(--top-h); align-self: start; height: calc(100vh - var(--top-h)); padding: 16px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
.sidenav a:hover { background: var(--card); color: var(--text); }
.sidenav a[aria-current="page"] { background: var(--card-2); color: var(--text); box-shadow: inset 2px 0 0 var(--text); }

.main { padding: 28px 32px 80px; min-width: 0; outline: none; }
#view { max-width: 1280px; display: flex; flex-direction: column; gap: 20px; }
#banners { max-width: 1280px; display: flex; flex-direction: column; gap: 10px; }
#banners:not(:empty) { margin-bottom: 20px; }

.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 25; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px #000; transition: transform .2s var(--ease), background .2s; }
.wa-fab:hover { background: var(--wa-hover); transform: scale(1.06); }
.wa-fab .ic { width: 26px; height: 26px; }

/* ---------- Sayfa parçaları ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; }
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px; min-width: 0; }
.card.narrow { max-width: 640px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.card-head h2 .ic { color: var(--text-3); }
.card-head.sub { margin-top: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2.top { align-items: start; }
.banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.banner > .ic { flex: none; width: 20px; height: 20px; }
.banner > div { flex: 1; min-width: 0; }
.banner b { display: block; margin-bottom: 2px; }
.banner.err { background: #ff5c6c12; border: 1px solid #ff5c6c4d; color: #ffd0d5; }
.banner.err > .ic { color: var(--err); }
.banner.warn { background: #fdb52a10; border: 1px solid #fdb52a40; color: #ffe2a8; }
.banner.warn > .ic { color: var(--warn); }
.banner.info { background: #5b8cff10; border: 1px solid #5b8cff40; color: #c9d7ff; margin-bottom: 14px; }
.banner.info > .ic { color: var(--info); }
.card .banner.warn { margin-bottom: 14px; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 700; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.badge .ic { width: 13px; height: 13px; }
.badge.ok { color: var(--ok); border-color: #14ca744d; background: #14ca7412; }
.badge.warn { color: var(--warn); border-color: #fdb52a4d; background: #fdb52a12; }
.badge.err { color: var(--err); border-color: #ff5c6c4d; background: #ff5c6c12; }
.badge.info { color: #a9c0ff; border-color: #5b8cff4d; background: #5b8cff12; }
.badge.live { color: #fff; background: var(--pink); border-color: var(--pink); letter-spacing: .04em; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

.avatar { --s: 44px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #2a2a30, #1a1a1d); border: 1px solid var(--line-2); font-weight: 700; font-size: calc(var(--s) * .36); color: var(--text-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* boş / hata / iskelet */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 32px 16px; color: var(--text-2); }
.empty > .ic { width: 28px; height: 28px; color: var(--text-3); }
.empty p { max-width: 460px; font-size: 14px; }
.empty b { color: var(--text); display: block; margin-bottom: 4px; }
.empty.err > .ic { color: var(--err); }
.sk-block { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.sk { height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--card-2) 0%, var(--raise) 50%, var(--card-2) 100%); background-size: 200% 100%; animation: sk 1.4s infinite; }
.sk:nth-child(2) { width: 82%; }
.sk:nth-child(3) { width: 64%; }
.sk:nth-child(4) { width: 74%; }
@keyframes sk { to { background-position: -200% 0; } }

/* segment düğmeleri */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--raise); color: var(--text); }

/* sekmeler */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs [role="tab"] { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.tabs [role="tab"] .ic { width: 16px; height: 16px; }

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi, .scard { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi-l { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; font-weight: 600; }
.kpi-l .ic { width: 16px; height: 16px; }
.kpi b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi b small { font-size: 16px; color: var(--text-3); font-weight: 600; }
.kpi b.kpi-text { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi > small { font-size: 12.5px; }
.bar { height: 6px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--soft); }
.bar.warn i { background: var(--warn); }
.bar.err i { background: var(--err); }

.updates { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; }
.updates li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.updates li:first-child { border-top: 0; padding-top: 0; }
.updates li b .badge { margin-right: 8px; vertical-align: 1px; height: 20px; }
.updates li span { grid-column: 1; font-size: 13.5px; }
.updates li time { grid-column: 2; grid-row: 1; font-size: 12.5px; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.chips:empty { display: none; }
.chip-t { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card-2); font-size: 12.5px; font-weight: 600; cursor: pointer; max-width: 100%; }
.chip-t i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.chip-t small { color: var(--text-3); font-weight: 600; }
.chip-t[aria-pressed="false"] { opacity: .45; }
span.chip-t { cursor: default; }

.chart-box { min-height: 260px; }
.chart { position: relative; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .cursor { stroke: var(--line-2); stroke-dasharray: 3 3; }
.chart .hit { cursor: crosshair; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 160px; max-width: 260px; padding: 10px 12px; border-radius: 10px; background: #1f1f23f2; border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px #000; font-size: 12.5px; }
.chart-tip b { display: block; margin-bottom: 6px; }
.chart-tip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.chart-tip li { display: flex; align-items: center; gap: 7px; }
.chart-tip li i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chart-tip li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }

.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut { position: relative; width: 168px; height: 168px; flex: none; }
.donut svg { width: 100%; height: 100%; }
.donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut-c b { font-size: 17px; font-weight: 800; }
.donut-c small { color: var(--text-3); font-size: 12px; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 40px; gap: 10px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-val { color: var(--text-2); font-variant-numeric: tabular-nums; }
.lg-pct { color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }

.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 #fe2c5599; animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px #fe2c5500; } 100% { box-shadow: 0 0 0 0 #fe2c5500; } }
.live-list { display: flex; flex-direction: column; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: 10px; min-width: 0; }
a.mrow:hover { background: var(--card-2); }
.mrow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mrow-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.mrow-t small { font-size: 12.5px; }
.live-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: 12.5px; color: var(--text-2); }
.gthumb { width: 64px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; background: var(--card-2); }
.gthumb.ph { display: grid; place-items: center; color: var(--text-3); }

/* ---------- Yayıncılar ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 460px; }
.search .ic { position: absolute; left: 12px; top: 12px; color: var(--text-3); }
.search input { padding-left: 40px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mcard { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); transition: border-color .2s, transform .2s var(--ease), background .2s; min-width: 0; }
.mcard:hover { border-color: #46464f; transform: translateY(-2px); background: #17171a; }
.mcard.is-paused { opacity: .75; }
.mcard-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mcard-id { min-width: 0; display: flex; flex-direction: column; }
.mcard-id b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard-id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; }
.mcard-foot small:last-child { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); white-space: nowrap; }
.mcard-foot .ic { width: 14px; height: 14px; }
.mcard-tags { display: flex; gap: 10px; font-size: 12px; margin-top: -4px; }

/* ---------- Yayıncı detayı ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; font-size: 14px; align-self: flex-start; }
.back:hover { color: var(--text); }
#md { display: flex; flex-direction: column; gap: 20px; }
.mhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mhead-id { flex: 1; min-width: 220px; }
.mhead-id h1 { font-size: 24px; overflow-wrap: anywhere; }
.mhead-id p.muted { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; font-size: 14px; }
.mhead-id p.muted span { display: inline-flex; align-items: center; gap: 6px; }
.mhead-id .ic { width: 15px; height: 15px; color: var(--text-3); }
.note { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: var(--card-2); border-left: 2px solid var(--line-2); font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; }
.mhead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.scards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scard b { font-size: 16px; }
.scard small { font-size: 12.5px; }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; color: var(--text-3); font-weight: 600; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-bar { display: flex; flex-direction: column; gap: 4px; min-width: 110px; }
.cell-bar i { display: block; height: 4px; border-radius: 99px; background: var(--info); }

.heat { display: grid; grid-template-columns: repeat(auto-fill, 14px); gap: 4px; margin-top: 12px; }
.heat i { width: 14px; height: 14px; border-radius: 3px; background: var(--card-2); border: 1px solid var(--line); }
.heat i.on { background: var(--pink); border-color: var(--pink); }

.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.events li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.events li:first-child { border-top: 0; }
.events li > span:nth-child(2) { flex: 1; min-width: 0; }
.events time { font-size: 12.5px; white-space: nowrap; }
.ev-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; transform: translateY(-1px); }
.ev-dot.ag { background: var(--info); }

/* ---------- Oyunlar ---------- */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gcard { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line-2); }
.gcover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--card-2); }
.gcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcover .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }
.gcover .ph .ic { width: 36px; height: 36px; }
.gtags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.tag { padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: #000000a6; backdrop-filter: blur(6px); }
.tag.new { background: #14ca74; color: #04150c; }
.tag.hot { background: var(--pink); color: #fff; }
.gbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gbody h3 { font-size: 17px; }
.gbody p { font-size: 13.5px; flex: 1; }
.gstats { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--text-2); }
.gstats span { display: inline-flex; align-items: center; gap: 6px; }
.gstats .ic { width: 15px; height: 15px; color: var(--text-3); }
.gfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; }

/* ---------- Duyurular ---------- */
.ann-list { display: flex; flex-direction: column; gap: 14px; }
.ann { display: flex; gap: 16px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); }
.ann-img { width: 160px; height: 90px; border-radius: 10px; object-fit: cover; flex: none; }
.ann-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ann-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; }
.ann h3 { font-size: 16px; }
.ann p { font-size: 14px; overflow-wrap: anywhere; }
.ann .link { overflow-wrap: anywhere; }
.ann-actions { display: flex; flex-direction: column; gap: 8px; flex: none; }

/* ---------- Profil ---------- */
.logo-row { display: flex; align-items: flex-end; gap: 14px; }
.logo-row .grow { flex: 1; }
.logo-prev { width: 64px; height: 64px; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text-3); }
.logo-prev img { width: 100%; height: 100%; object-fit: cover; }
.ro-list { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Pencere ---------- */
.modal-back { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .66); backdrop-filter: blur(4px); animation: fade .15s ease; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: pop .2s var(--ease); }
.modal.wide { max-width: 640px; }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 22px; background: var(--card); border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 17px; }
.modal-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.share-box { margin: 0; padding: 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); font: 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--soft); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #1f1f23; border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px #000; font-size: 14px; font-weight: 600; animation: pop .2s var(--ease); transition: opacity .35s, transform .35s; }
.toast.ok .ic { color: var(--ok); }
.toast.err .ic { color: var(--err); }
.toast.info .ic { color: var(--info); }
.toast.out { opacity: 0; transform: translateY(6px); }

/* ---------- Duyarlı yerleşim ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-2, .scards { grid-template-columns: minmax(0, 1fr); }
  .donut-wrap { flex-direction: column; align-items: stretch; }
  .donut { margin: 0 auto; }
}
@media (max-width: 760px) {
  :root { --top-h: auto; }
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; }
  .brand { width: auto; }
  .brand span { display: none; }
  .top-agency { order: 1; }
  #logout { order: 2; }
  #logout span { display: none; }
  .top-sub { order: 3; width: 100%; }
  .sub-pill { width: 100%; justify-content: flex-start; }
  .sub-pill > span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
  .sidenav {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 40; height: auto;
    flex-direction: row; justify-content: space-around; gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--line); background: rgba(11, 11, 12, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .sidenav a { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11px; text-align: center; border-radius: 8px; }
  .sidenav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .sidenav a[aria-current="page"] { box-shadow: none; }
  .main { padding: 18px 16px 110px; }
  .wa-fab { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; width: 46px; height: 46px; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  h1 { font-size: 22px; }
  .page-head .btn { width: 100%; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; }
  .kpi b { font-size: 24px; }
  .search { max-width: none; min-width: 0; flex-basis: 100%; }
  .toolbar .seg { overflow-x: auto; max-width: 100%; }
  .mgrid { grid-template-columns: minmax(0, 1fr); }
  .mhead-actions { width: 100%; }
  .mhead-actions .btn { flex: 1 1 calc(50% - 8px); }
  .ann { flex-direction: column; }
  .ann-img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .ann-actions { flex-direction: row; }
  .modal-back { align-items: flex-end; padding: 0; }
  .modal, .modal.wide { max-width: none; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .modal-body { padding: 16px; }
  .modal-actions .btn { flex: 1; }
  .updates li { grid-template-columns: minmax(0, 1fr); }
  .updates li b, .updates li span, .updates li time { grid-column: 1; grid-row: auto; }
  .banner { flex-wrap: wrap; }
  .card-head .seg { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 420px) {
  .kpis { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 20px; }
  .kpi b.kpi-text { font-size: 16px; }
  .kpi-l { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
