/* Barçağ Eklenti Merkezi */
:root {
	--navy: #13234b; --navy-2: #1c3166; --accent: #2a4bb0; --accent-soft: #eef2fb;
	--text: #0f172a; --muted: #64748b; --line: #e5e7eb; --soft: #f8fafc; --bg: #f3f5f9;
	--ok: #047857; --ok-bg: #ecfdf5; --warn: #b45309; --warn-bg: #fffbeb; --err: #b91c1c; --err-bg: #fef2f2;
	--r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }

/* Yan menü */
.side { position: fixed; inset: 0 auto 0 0; width: 208px; background: var(--navy); color: #c7d2ea; padding: 14px 10px; display: flex; flex-direction: column; overflow-y: auto; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 14px; padding: 4px 8px 16px; line-height: 1.2; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8ea0c8; }
.mark { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--navy); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.grp { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7d8fb8; padding: 12px 10px 4px; }
.side a:not(.brand) { display: flex; align-items: center; gap: 9px; color: #c7d2ea; font-size: 14px; padding: 6px 10px; border-radius: 7px; margin: 1px 0; }
.side a:not(.brand):hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.side a.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.side svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.pill { margin-left: auto; background: #f59e0b; color: #1f1300; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; font-size: 12px; color: #7d8fb8; }
.side-foot a { display: inline !important; padding: 0 !important; color: #c7d2ea !important; }

/* İçerik */
main { margin-left: 208px; padding: 0 28px 40px; max-width: 1340px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.top h1 { font-size: 20px; margin: 0; font-weight: 700; }
.who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2 { font-size: 15px; margin: 0; font-weight: 600; }
.sub { font-size: 13px; font-weight: 600; margin: 20px 0 10px; }
.link { font-size: 13px; font-weight: 500; }
.back { display: inline-block; font-size: 13px; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 > .card { margin-bottom: 16px; }
.grid2.wide-left { grid-template-columns: 1.6fr 1fr; align-items: start; }

/* İstatistik kutuları */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stats.six { grid-template-columns: repeat(7, 1fr); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--text); display: flex; flex-direction: column; min-width: 0; }
a.stat:hover { text-decoration: none; border-color: #cbd5e1; }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.stat small { font-size: 12px; color: var(--muted); }
.stat.hl { border-color: #fcd34d; background: var(--warn-bg); }

/* Rozet, sürüm */
.badge { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.muted { background: #f1f5f9; color: var(--muted); }
.ver { display: inline-block; font-size: 12px; background: #f1f5f9; border-radius: 6px; padding: 2px 8px; margin: 1px 2px 1px 0; color: #334155; white-space: nowrap; }
.ver.old { background: var(--warn-bg); color: var(--warn); }

/* Uyarılar */
.alert { border: 1px solid; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.alert.ok { background: var(--ok-bg); border-color: #a7f3d0; color: #065f46; }
.alert.warn { background: var(--warn-bg); border-color: #fde68a; color: #78350f; }
.alert.err { background: var(--err-bg); border-color: #fecaca; color: #991b1b; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--soft); text-decoration: none; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ok:hover { filter: brightness(1.08); }
.btn.ghost { background: #fff; }
.btn.danger-ghost { color: var(--err); border-color: #fecaca; background: #fff; }
.btn.danger-ghost:hover { background: var(--err-bg); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn.block { width: 100%; height: 42px; }
form.inline { display: inline-flex; gap: 6px; margin: 0; }

/* Tablolar */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafbfd; }
.tbl td.act { text-align: right; white-space: nowrap; }
.tbl td.act > * { vertical-align: middle; }
.tbl.num td:not(:first-child), .tbl.num th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.site strong { display: block; font-weight: 600; }
.site a { font-size: 12px; color: var(--muted); }
.site .badge { margin-top: 3px; }
.quota { display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap; width: 90px; font-size: 13px; }
.quota span { color: var(--muted); font-size: 12px; }
.quota i { flex-basis: 100%; height: 4px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.quota em { display: block; height: 100%; background: var(--accent); }
.quota em.full { background: var(--err); }
.share { display: inline-block; width: 60px; height: 6px; background: #eef2f7; border-radius: 4px; overflow: hidden; vertical-align: middle; }
.share i { display: block; height: 100%; background: var(--accent); }

/* Sekmeler, arama, araç çubuğu */
.tabs { display: inline-flex; gap: 2px; background: #f1f5f9; border-radius: 9px; padding: 3px; flex-wrap: wrap; }
.tabs a { padding: 5px 12px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 500; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.tabs i { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 2px; }
.search input { width: 220px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .range { margin-left: auto; font-size: 13px; }
.toolbar select { width: auto; min-width: 200px; }

/* Formlar */
input, select, textarea { width: 100%; font: inherit; color: var(--text); border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 11px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input, select { height: 38px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--navy); margin: 0; }
.form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.form label input, .form label select, .form label textarea { margin-top: 6px; font-weight: 400; }
.form small, .form label small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 5px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.fields .full, .fields .check { grid-column: 1 / -1; }
.form .check, span.check { display: flex !important; align-items: center; gap: 8px; font-weight: 500; }
span.check { margin-top: 8px; font-size: 13px; }
span.check label { margin: 0; font-weight: 500; }
.form-bar { display: flex; gap: 8px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.drop { border: 1.5px dashed #cbd5e1; border-radius: 10px; padding: 18px; text-align: center; background: var(--soft); cursor: pointer; }
.drop input { height: auto; border: 0; background: transparent; padding: 0; margin: 0 0 6px !important; }
.drop span { display: block; font-weight: 600; }
.code { display: block; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; word-break: break-all; }

/* Bilgi, akış, adımlar */
.info { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 13px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }
.danger-zone { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.danger-zone small { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }
.feed { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.feed li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--muted); white-space: nowrap; font-size: 12px; }
.steps { margin: 0; padding-left: 18px; font-size: 13px; color: #334155; }
.steps li { margin-bottom: 6px; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty b { color: var(--text); display: block; margin-bottom: 4px; }
.site-head { display: flex; align-items: center; justify-content: space-between; }
.site-head .site strong { font-size: 17px; }
.version { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.v-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.v-h .sp { flex: 1; }
.v-f { margin-top: 8px; }

/* Grafikler */
.chart { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; height: 190px; align-items: end; padding-bottom: 20px; position: relative; border-bottom: 1px solid var(--line); }
.chart .col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 0; }
.chart .bar { background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; transition: opacity .15s; }
.chart .bar span { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; padding-bottom: 2px; white-space: nowrap; }
.chart .col:hover .bar span { display: block; }
.chart .col:hover .bar { opacity: .8; }
.chart em { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--muted); padding-top: 4px; white-space: nowrap; }
.chart.dual .pair { display: flex; align-items: flex-end; gap: 1px; height: 100%; }
.chart.dual .bar { flex: 1; }
.chart.dual .bar.b2 { background: #93c5fd; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .l1::before { background: var(--accent); }
.legend .l2::before { background: #93c5fd; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hrow { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 56px; align-items: center; gap: 10px; font-size: 13px; }
.hrow .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .track { height: 8px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.hrow .track i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.hrow b { text-align: right; font-variant-numeric: tabular-nums; }

/* Giriş */
body.auth { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy), #0b1530); padding: 20px; }
.auth-card { background: #fff; width: 100%; max-width: 380px; border-radius: 16px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.auth-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.auth-card label input { margin-top: 6px; font-weight: 400; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-brand .mark { background: var(--navy); color: #fff; width: 40px; height: 40px; font-size: 18px; border-radius: 10px; }
.auth-brand small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.auth-brand strong { font-size: 17px; }
.auth-card .foot { text-align: center; font-size: 12px; color: var(--muted); margin: 16px 0 0; }

@media (max-width: 1100px) {
	.stats, .stats.six { grid-template-columns: repeat(2, 1fr); }
	.grid2, .grid2.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.side { position: static; width: auto; flex-direction: row; flex-wrap: wrap; gap: 2px; padding: 10px; }
	.side .grp, .side-foot { display: none; }
	.brand { width: 100%; padding-bottom: 8px; }
	main { margin-left: 0; padding: 0 14px 30px; }
	.fields { grid-template-columns: 1fr; }
	.search input { width: 100%; }
}

/* Eklenti ikonları */
.pl-name{display:flex;align-items:center;gap:12px}
.pl-ikon{width:36px;height:36px;border-radius:9px;flex:none;box-shadow:0 1px 2px rgba(15,23,42,.12)}
.pl-ikon.lg{width:48px;height:48px;border-radius:12px}
.form .check input[type=radio], .form .check input[type=checkbox] { width: auto; height: auto; margin: 0; flex: none; }
.form .check.vis-opt { align-items: flex-start; flex-wrap: wrap; gap: 4px 8px; }
.form .check.vis-opt input { margin-top: 2px; }
