/* fullpush — okbsoft.com tasarım dili: siyah zemin, koyu kartlar, zümrüt vurgu, 0.3s geçişler */
:root {
  --bg: #000000;
  --bg2: #0a0a0a;
  --card: #0f0f0f;
  --card-hover: #1a1a1a;
  --card2: #161616;
  --line: #1a1a1a;
  --line2: #262626;
  --fg: #ffffff;
  --fg2: #e5e5e5;
  --muted: #a3a3a3;
  --muted2: #6b6b6b;
  --green: #10b981;
  --green-dark: #047857;
  --green-light: #34d399;
  --green-dim: rgba(16,185,129,.12);
  --green-glow: rgba(16,185,129,.25);
  --red: #f87171;
  --red-dim: rgba(248,113,113,.12);
  --amber: #fbbf24;
  --amber-dim: rgba(251,191,36,.12);
  --blue: #60a5fa;
  --blue-dim: rgba(96,165,250,.12);
  --sidebar-w: 240px;
  --t: .3s;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14.5px/1.55 -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--green-light); }
h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.02em; }
h2 { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
h3 { font-size: 12px; margin: 16px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
p { margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); }
.muted2 { color: var(--muted2); }
.small { font-size: 12.5px; }
.mono, code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
code { background: #171717; padding: 1px 6px; border-radius: 6px; color: var(--fg2); }
pre { background: #000; border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow: auto; font-size: 12.5px; margin: 0; line-height: 1.5; color: var(--fg2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.content > * { animation: fadeUp .4s ease both; }
.content > *:nth-child(2) { animation-delay: .05s; }
.content > *:nth-child(3) { animation-delay: .1s; }
.content > *:nth-child(4) { animation-delay: .15s; }

/* ---------- Kabuk ---------- */
.shell { display: flex; min-height: 100%; }
.sidebar { width: var(--sidebar-w); flex: 0 0 auto; background: var(--bg); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.content { padding: 32px 36px 90px; max-width: 1240px; width: 100%; margin: 0 auto; }
.content.narrow { max-width: 760px; }
.content.center { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; max-width: none; }

.brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 16px; color: var(--fg); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand .logo { width: 34px; height: 34px; filter: drop-shadow(0 0 8px var(--green-glow)); }
.brand em { font-style: normal; color: var(--green); }
.brand small { font-weight: 500; font-size: 11px; color: var(--muted); display: block; letter-spacing: 0; }

.switcher { margin: 0 12px 8px; position: relative; }
.switcher > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; background: var(--card); border: 1px solid var(--line); padding: 10px 12px; border-radius: 12px; font-weight: 600; transition: var(--t); }
.switcher > button:hover { border-color: var(--green); background: var(--card-hover); filter: none; }
.switcher > button small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.switcher > button .chev { color: var(--muted); font-size: 10px; }
.switcher .menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; z-index: 20; box-shadow: 0 16px 40px rgba(0,0,0,.7); max-height: 60vh; overflow: auto; animation: fadeUp .2s ease; }
.switcher .menu a, .switcher .menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--fg2); background: none; font-weight: 500; text-align: left; transition: var(--t); }
.switcher .menu a:hover, .switcher .menu button:hover { background: var(--card-hover); color: var(--fg); }
.switcher .menu a.active { background: var(--green-dim); color: var(--green); }
.switcher .menu small { color: var(--muted); font-size: 11px; }
.switcher .menu .sep { border-top: 1px solid var(--line); margin: 6px 0; }

.nav { padding: 0 12px; }
.nav .sec { font-size: 11px; font-weight: 700; color: var(--muted2); text-transform: uppercase; letter-spacing: .1em; padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: var(--t); }
.nav a:hover { background: var(--card-hover); color: var(--fg); }
.nav a.active { background: var(--green-dim); color: var(--green); }
.nav a .ic { width: 18px; text-align: center; font-size: 14px; opacity: .9; }
.nav a .badge { margin-left: auto; font-size: 11px; background: var(--card2); color: var(--muted); padding: 1px 7px; border-radius: 999px; }
.sidefoot { margin-top: auto; padding: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.sidefoot .who { flex: 1; min-width: 0; }
.sidefoot .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidefoot .who small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green-dim); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--green); flex: 0 0 auto; }

/* ---------- Sayfa başlığı ---------- */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.pagehead .sub { margin: 0; }

/* ---------- Kartlar, grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: border-color var(--t), background var(--t), box-shadow var(--t), transform var(--t); }
.card.pad0 { padding: 0; overflow: hidden; }
.card + .card { margin-top: 16px; }
.card h2 { display: flex; align-items: center; gap: 10px; }
.card h2 .n { width: 24px; height: 24px; border-radius: 50%; background: var(--green-dim); display: inline-grid; place-items: center; font-size: 12px; color: var(--green); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.cols .side { position: sticky; top: 20px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.stack { display: grid; gap: 14px; }
.stack.tight { gap: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split.three { grid-template-columns: 1fr 1fr 1fr; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; transition: var(--t); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.stat:hover { transform: translateY(-3px); border-color: var(--green); background: var(--card-hover); box-shadow: 0 4px 16px var(--green-glow); }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--green-light); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 12.5px; }
.stat .trend { font-size: 11.5px; color: var(--muted2); margin-top: 2px; }

.list { display: grid; gap: 12px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; color: inherit; transition: var(--t); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.item:hover { transform: translateY(-3px); border-color: var(--green); background: var(--card-hover); box-shadow: 0 4px 16px var(--green-glow); color: inherit; }
.item small { color: var(--muted); display: block; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 80px 1fr 44px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar i { height: 6px; border-radius: 3px; background: var(--card2); display: block; overflow: hidden; }
.bar i b { display: block; height: 100%; background: linear-gradient(90deg, var(--green-dark), var(--green)); transition: width .6s ease; }
.bar span:last-child { text-align: right; color: var(--muted); }

/* ---------- Form ---------- */
label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
label > span.lbl { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
label .hint-i { color: var(--muted2); font-weight: 400; font-size: 11.5px; }
input, textarea, select { width: 100%; background: #000; color: var(--fg); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font: inherit; transition: border-color var(--t), box-shadow var(--t); }
input::placeholder, textarea::placeholder { color: var(--muted2); }
input[type=color] { padding: 2px 4px; height: 40px; width: 56px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--green); }
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
input:disabled, select:disabled, textarea:disabled { opacity: .45; }
.check { display: flex; align-items: center; gap: 8px; color: var(--fg2); font-size: 13.5px; cursor: pointer; font-weight: 500; }
.check input { margin: 0; }
.radios { display: flex; gap: 14px; flex-wrap: wrap; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input, .inline select { width: auto; flex: 1; }
.with-unit { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }

button { font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; cursor: pointer; background: var(--card2); color: var(--fg2); white-space: nowrap; transition: var(--t); display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
button:hover { background: var(--card-hover); color: var(--fg); }
button.primary { background: var(--green); color: #fff; font-weight: 700; }
button.primary:hover { background: var(--green-light); color: #052e22; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16,185,129,.35); }
button.danger { background: var(--red-dim); color: var(--red); }
button.danger:hover { background: rgba(248,113,113,.22); }
button.ghost { background: transparent; border-color: var(--line2); color: var(--fg2); }
button.ghost:hover { border-color: var(--green); color: var(--green); background: transparent; }
button.outline { background: transparent; border: 2px solid var(--green); color: var(--green); }
button.outline:hover { background: var(--green); color: #fff; }
button.link { background: none; color: var(--green); padding: 0; font-weight: 500; border: 0; }
button.link:hover { color: var(--green-light); background: none; }
button.small { padding: 5px 11px; font-size: 12.5px; }
button.icon { padding: 5px 9px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; transform: none !important; box-shadow: none !important; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card2); color: var(--fg2); font-weight: 600; font-size: 13px; transition: var(--t); }
.chip:hover { border-color: var(--green); }
.chip.on { background: var(--green-dim); border-color: var(--green); color: var(--green-light); }
.chip.sm { padding: 4px 10px; font-size: 12px; font-weight: 500; }

.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--card2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--green-dim); color: var(--green-light); }
.pill.bad { background: var(--red-dim); color: var(--red); }
.pill.warn { background: var(--amber-dim); color: var(--amber); }
.pill.info { background: var(--blue-dim); color: var(--blue); }
.tag { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line2); color: var(--muted); margin: 1px 3px 1px 0; font-family: ui-monospace, Menlo, monospace; }
.tag b { color: var(--fg); font-weight: 600; }

.key { background: #000; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; word-break: break-all; color: var(--green-light); }
.hint { font-size: 12.5px; color: var(--muted); }
.hint ol, .hint ul { padding-left: 18px; margin: 6px 0 0; }

details.sec { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); transition: border-color var(--t); }
details.sec:hover { border-color: var(--line2); }
details[open].sec { border-color: var(--line2); }
details.sec > summary { cursor: pointer; padding: 13px 16px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; color: var(--fg2); }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::before { content: "›"; color: var(--green); font-size: 18px; line-height: 1; transition: transform var(--t); }
details[open].sec > summary::before { transform: rotate(90deg); }
details.sec > summary .pill { margin-left: auto; }
details.sec > .body { padding: 2px 16px 18px; display: grid; gap: 14px; animation: fadeIn .3s ease; }
details.sec .sub-h { font-size: 11px; color: var(--muted2); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-top: 6px; }

.kv-rows { display: grid; gap: 8px; }
.kv-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.kv-row.three { grid-template-columns: 1.2fr 150px 1fr auto; }
.kv-row button { padding: 8px 10px; }

/* ---------- Tablo ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 11.5px; white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--t); }
tbody tr.clickable { cursor: pointer; }
tbody tr:hover > td { background: rgba(255,255,255,.02); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar input, .toolbar select { width: auto; }
.toolbar input[type=search] { min-width: 260px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 8px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: var(--t); }
.tabs a:hover { color: var(--fg); }
.tabs a.active { color: var(--green); border-color: var(--green); }
.tabs a .badge { margin-left: 7px; font-size: 11px; font-weight: 700; background: var(--card2); color: var(--muted); padding: 1px 7px; border-radius: 999px; }
.tabs a.active .badge { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.detail { background: #000; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 4px 0; font-size: 12.5px; display: grid; gap: 6px; animation: fadeIn .3s ease; }
.detail dl { display: grid; grid-template-columns: 130px 1fr; gap: 5px 12px; margin: 0; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; word-break: break-word; }
.meta { color: var(--muted2); font-size: 11.5px; }

/* ---------- Telefon önizleme ---------- */
.phone { background: #0f0f0f; border-radius: 36px; padding: 12px; border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.phone .screen { border-radius: 26px; padding: 16px 12px 22px; min-height: 230px; position: relative; overflow: hidden; }
.phone.ios .screen { background: radial-gradient(120% 90% at 30% 0%, #2d5a4f 0%, #0f2a24 45%, #000 100%); }
.phone.android .screen { background: radial-gradient(120% 90% at 70% 0%, #1f3b5a 0%, #0f1f33 45%, #000 100%); }
.phone .statusbar { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.85); padding: 0 8px; }
.phone .clock { text-align: center; color: #fff; font-weight: 300; font-size: 44px; line-height: 1; margin: 14px 0 2px; letter-spacing: -.02em; }
.phone .date { text-align: center; color: rgba(255,255,255,.75); font-size: 13px; margin-bottom: 18px; }
.notif { background: rgba(250,250,252,.94); color: #111; border-radius: 18px; padding: 10px 12px; display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: start; animation: fadeUp .3s ease; }
.phone.android .notif { border-radius: 14px; background: #f3f3f7; }
.notif .icon { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, var(--green), var(--green-dark)); display: grid; place-items: center; color: #fff; font-weight: 800; position: relative; }
.notif .icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.notif .top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.notif .top b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif .top span { color: #777; font-size: 11px; flex: 0 0 auto; }
.notif .app { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1px; display: flex; gap: 6px; align-items: center; }
.notif .app i { width: 12px; height: 12px; border-radius: 3px; background: var(--green); display: inline-block; }
.notif .subtitle { font-size: 12.5px; font-weight: 600; color: #333; }
.notif .body { font-size: 13px; color: #333; white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.notif .img { grid-column: 1 / -1; border-radius: 10px; overflow: hidden; max-height: 150px; background: #ddd; }
.notif .img img { width: 100%; display: block; object-fit: cover; max-height: 150px; }
.notif .img.thumb { grid-column: auto; justify-self: end; width: 38px; height: 38px; border-radius: 8px; }
.notif .actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.notif .actions span { font-size: 12px; font-weight: 600; color: #047857; padding: 4px 8px; border-radius: 8px; background: rgba(16,185,129,.12); }
.phone.android .notif .actions span { background: none; text-transform: uppercase; font-size: 11.5px; padding: 4px 6px; }
.notif .badge-dot { position: absolute; top: -4px; right: -4px; background: #ff3b30; color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
.ptoggle { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
.pmeta { font-size: 11.5px; color: var(--muted2); text-align: center; margin-top: 10px; }

/* ---------- İkonlar, modal, grafikler ---------- */
.pi { width: 1em; height: 1em; vertical-align: -0.15em; display: inline-block; }
.pi.lg { width: 1.3em; height: 1.3em; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .2s ease; }
.modal { background: var(--card); border: 1px solid var(--line2); border-radius: 18px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; padding: 24px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: fadeUp .25s ease; }
.modal.wide { max-width: 760px; }
.modal-x { position: absolute; top: 12px; right: 12px; }
.modal h2 { font-size: 20px; margin: 0 0 16px; }
.modal h3 { margin: 18px 0 6px; }
.modal .kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; font-size: 13.5px; }
.modal .kv > div:nth-child(odd) { color: var(--muted); }
.modal .kv > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal .warn { background: var(--amber-dim); border: 1px solid rgba(251,191,36,.3); border-radius: 12px; padding: 12px 14px; font-size: 13px; margin-bottom: 14px; }
body.modal-open { overflow: hidden; }
.aud-counts { display: flex; gap: 10px; flex-wrap: wrap; }
.aud-counts .c { background: #000; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 14px; min-width: 110px; }
.aud-counts .c b { display: block; font-size: 22px; color: var(--green-light); letter-spacing: -.02em; }
.aud-counts .c span { color: var(--muted); font-size: 12px; display: flex; gap: 5px; align-items: center; }
.dist { display: grid; gap: 7px; }
.dist-row { display: grid; grid-template-columns: 90px 1fr 42px; align-items: center; gap: 10px; font-size: 12.5px; }
.dist-row.other { color: var(--muted2); }
.dist-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist-bar { height: 6px; border-radius: 3px; background: var(--card2); overflow: hidden; display: block; }
.dist-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-dark), var(--green)); transition: width .6s ease; }
.dist-row.other .dist-bar i { background: var(--line2); }
.dist-v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart { width: 100%; }
.chart svg { width: 100%; height: 100%; display: block; }
.chart rect { fill: currentColor; opacity: .85; transition: opacity var(--t); }
.chart rect:hover { opacity: 1; }
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted2); margin-top: 6px; }
.chart-empty { height: 110px; display: grid; place-items: center; color: var(--muted2); font-size: 12.5px; }
.metric { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; }
.metric .big { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--green-light); line-height: 1.1; }
.metric .lbl { color: var(--muted); font-size: 12.5px; }
.metric .sub2 { color: var(--muted2); font-size: 11.5px; margin-top: 4px; }
.dist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dist-grid .card { min-height: 190px; margin-top: 0 !important; }
.donut { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.donut-svg { width: 110px; height: 110px; transform: rotate(0deg); }
.donut-svg circle { transition: stroke-width var(--t); }
.donut-svg circle:hover { stroke-width: 6.5; }
.donut-total { fill: var(--fg); font-size: 7px; font-weight: 800; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 12.5px; max-height: 150px; overflow: auto; }
.donut-legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.donut-legend .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg2); }
.donut-legend .v { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .metric { grid-template-columns: 1fr; } .modal .kv { grid-template-columns: 1fr; } .modal .kv > div:nth-child(odd) { padding-bottom: 0; border: 0; } }

/* ---------- In-app önizleme ---------- */
.iap-screen { background: #f4f4f7 !important; color: #111; }
.iap-app { padding: 10px 6px 0; }
.iap-appbar { background: #fff; border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 13px; color: #111; }
.iap-lines { padding: 12px 4px; display: grid; gap: 8px; }
.iap-lines i { display: block; height: 10px; border-radius: 5px; background: #e2e2ea; }
.iap-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: flex; padding: 14px; }
.iap-overlay.center { align-items: center; justify-content: center; }
.iap-overlay.bottom { align-items: flex-end; }
.iap-overlay.top { align-items: flex-start; }
.iap-overlay.full { padding: 0; }
.iap-card { background: #fff; border-radius: 16px; overflow: hidden; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.iap-card.full { border-radius: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.iap-img img { width: 100%; display: block; max-height: 120px; object-fit: cover; }
.iap-body { padding: 14px; display: grid; gap: 8px; text-align: center; }
.iap-title { font-weight: 800; font-size: 16px; color: #111; }
.iap-text { font-size: 12.5px; color: #444; white-space: pre-wrap; }
.iap-btn { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; border: 0; border-radius: 10px; padding: 9px; font-weight: 700; font-size: 13px; }
.iap-imgerr { background: #fde8e8; color: #b42318; font-size: 11px; padding: 8px 10px; text-align: center; }
.notif .img .iap-imgerr { font-size: 9px; padding: 4px; }
.iap-dismiss { background: none; border: 0; color: #777; font-size: 12px; padding: 2px; }

/* ---------- Diğer ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--green); padding: 12px 18px; border-radius: 12px; max-width: 90vw; z-index: 99; box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 20px var(--green-glow); animation: fadeUp .25s ease; }
.toast.err { border-color: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.login { width: 100%; max-width: 400px; margin: 0; padding: 28px; }
.login .brand { padding: 0 0 20px; }
.login input { font-size: 16px; padding: 12px 14px; }
.login button.primary { padding: 12px 16px; font-size: 15px; }
.sendbar { position: sticky; bottom: 0; background: rgba(0,0,0,.85); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 8px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; z-index: 4; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--fg); font-size: 16px; margin-bottom: 4px; }
.danger-zone { border-color: rgba(248,113,113,.3); }
.role { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.role.admin { background: var(--amber-dim); color: var(--amber); }
.role.sender { background: var(--blue-dim); color: var(--blue); }
.role.super { background: var(--green-dim); color: var(--green-light); }
.role.viewer { background: var(--card2); color: var(--muted); }
.role.owner { background: var(--green-dim); color: var(--green-light); }
.role.manager { background: rgba(167,139,250,.16); color: #c4b5fd; }
.role.member { background: var(--card2); color: var(--muted); }
.assign { display: flex; flex-wrap: wrap; gap: 4px; }
.assign .tag b { color: var(--fg); }
.grp { margin: 18px 0 8px; display: flex; align-items: center; gap: 10px; }
.grp h2 { margin: 0; }
.btn-google { background: #fff; color: #111; border: 1px solid #ddd; width: 100%; padding: 11px 16px; font-weight: 600; }
.btn-google:hover { background: #f3f3f3; color: #111; }
.btn-google svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted2); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.login .links { display: flex; justify-content: space-between; font-size: 12.5px; }
.wsbar { margin: 0 12px 6px; }
.wsbar select { font-size: 12.5px; padding: 8px 10px; background: var(--bg2); }
.wsbar label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted2); padding: 0 2px; }
.group-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.group-title h2 { margin: 0; }
.count-pill { display: inline-flex; gap: 10px; align-items: center; background: #000; border: 1px solid var(--line2); border-radius: 999px; padding: 7px 16px; font-size: 13px; transition: var(--t); }
.count-pill.on { border-color: var(--green); box-shadow: 0 0 14px var(--green-glow); }
.count-pill b { font-size: 16px; color: var(--green-light); }
.count-pill .sep { color: var(--muted2); }
.sec-lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.menubtn { display: none; }
.sched { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .cols .side { position: static; }
  .split.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 30; transform: translateX(-100%); transition: transform .25s; height: 100dvh; }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.8); }
  .topbar { display: flex; }
  .menubtn { display: inline-flex; }
  .content { padding: 18px 16px 80px; }
  .content.center { padding: 16px; }
  .login { padding: 22px 18px; }
  h1 { font-size: 22px; }
  .split, .split.three { grid-template-columns: 1fr; }
  .kv-row.three { grid-template-columns: 1fr 1fr; }
}

[hidden] { display: none !important; }
td.row { display: table-cell; white-space: nowrap; text-align: right; }
td.row > * { margin-left: 4px; }

/* Emoji alanı */
.emoji-field { position: relative; display: block; }
.emoji-field input { padding-right: 42px; }
.emoji-field textarea { padding-right: 42px; }
.emoji-btn { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; font-size: 17px; line-height: 1; background: transparent; border: 0; border-radius: 8px; filter: grayscale(.35); opacity: .8; transition: var(--t); }
.emoji-btn:hover { background: var(--card-hover); filter: none; opacity: 1; }
.emoji-pop { position: fixed; z-index: 100; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 48px rgba(0,0,0,.65); border: 1px solid var(--line2); }
.emoji-pop emoji-picker { width: 100%; height: 420px; --background: var(--card); --border-color: var(--line); --input-border-color: var(--line2); --input-font-color: var(--fg); --input-placeholder-color: var(--muted); --outline-color: var(--green); --indicator-color: var(--green); --button-hover-background: var(--card-hover); --button-active-background: var(--card2); --category-font-color: var(--muted); --num-columns: 9; }

/* Uygulama simgesi */
.app-ic { flex-shrink: 0; object-fit: cover; display: inline-grid; place-items: center; border: 1px solid var(--line2); background: var(--card2); }
.app-ic.ph { color: var(--green-light); font-weight: 800; background: var(--green-dim); border-color: transparent; }
/* Proje seçici: simge + ad, rol taşmadan sağda küçük etiket */
.switcher .sw-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.switcher .sw-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.switcher .sw-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher .sw-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher > button > .sw-row { flex: 1; }
.switcher .menu a.sw-item { justify-content: flex-start; gap: 10px; }
.switcher .sw-role { flex-shrink: 0; align-self: flex-start; margin-top: 2px; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.switcher .menu a.sw-item.active .sw-role { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.switcher .menu a.sw-limit { flex-direction: column; align-items: flex-start; gap: 2px; color: var(--muted); }
.switcher .menu a.sw-limit small { color: var(--amber); }
.store-linked { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.warn-card { border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: var(--amber-dim); color: var(--fg2); font-size: 13px; }

.progress { height: 4px; width: 110px; background: var(--card2); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .6s ease; }

.kv-row .listbox { grid-column: 1 / -1; display: grid; gap: 6px; }
.kv-row .listbox textarea { min-height: 90px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.file-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px dashed var(--line2); border-radius: 8px; color: var(--fg2); }
.file-btn:hover { border-color: var(--green); color: var(--fg); }

/* Plan ve ödeme */
.grid.plans4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.plan-card { position: relative; }
.plan-card.current { border-color: var(--green); }
.plan-card.popular { box-shadow: 0 0 0 1px var(--green-dim), 0 2px 8px rgba(0,0,0,.3); }
.plan-card .price b { font-size: 26px; }
.btn-primary-link { display: inline-block; background: var(--green); color: #fff; font-weight: 700; padding: 10px 14px; border-radius: 10px; text-decoration: none; text-align: center; }
.btn-primary-link:hover { background: var(--green-light); color: #052e22; }
