/* Nginix Panel — sunucu odası paleti: mürekkep mavisi kasa, kağıt beyazı çalışma alanı,
   sinyal kehribarı eylemler, durum ışıkları (yeşil/kehribar/kırmızı). */
:root {
  --ink: #13293d;
  --ink-2: #1c3a55;
  --ink-line: #2a4a66;
  --paper: #f3f6f8;
  --surface: #ffffff;
  --sunken: #eaeff3;
  --line: #d6dfe6;
  --text: #13293d;
  --muted: #5b7083;
  --amber: #f2a03d;
  --amber-ink: #3a2405;
  --amber-soft: #fdf1df;
  --green: #2b8a3e;
  --green-soft: #e3f4e6;
  --red: #c92a2a;
  --red-soft: #fbe5e5;
  --blue: #1d6fb8;
  --console: #0e1d2a;
  --console-text: #c9d7e2;
  --r-sm: 5px;
  --r: 8px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1b26; --surface: #152534; --sunken: #102030; --line: #24384a;
    --text: #e2eaf0; --muted: #8ba0b2; --amber-soft: #3a2b14; --green-soft: #12301b;
    --red-soft: #3a1717; --blue: #6cb2f0; --console: #08121b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1b26; --surface: #152534; --sunken: #102030; --line: #24384a;
  --text: #e2eaf0; --muted: #8ba0b2; --amber-soft: #3a2b14; --green-soft: #12301b;
  --red-soft: #3a1717; --blue: #6cb2f0; --console: #08121b; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 15px/1.55 var(--sans); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--sunken); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.ic { flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------- Kabuk ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  background: var(--ink); color: #c8d6e2; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; border-right: 1px solid #0a1824;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 18px; color: #fff; font-weight: 600; font-size: 16.5px; }
.brand:hover { text-decoration: none; }
.side nav { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; flex: 1; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm); color: #b9c9d6; font-weight: 500; }
.side nav a:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.side nav a.on { background: var(--ink-2); color: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.side nav a.on .ic { color: var(--amber); }
.side-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--ink-line); }
.who { display: flex; align-items: center; gap: 9px; color: #e2eaf0; font-size: 14px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ink-line); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--amber); }
.logout { color: #8ba0b2; padding: 6px; border-radius: var(--r-sm); }
.logout:hover { color: #fff; background: var(--ink-2); }
.scrim { display: none; }

.main { min-width: 0; padding: 0 32px 48px; }
.top { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "nav crumbs crumbs" "nav title actions"; align-items: end; gap: 2px 14px; padding: 26px 0 20px; }
.nav-btn { grid-area: nav; display: none; background: none; border: 0; color: var(--text); padding: 6px; margin-left: -6px; cursor: pointer; align-self: center; }
.crumbs { grid-area: crumbs; font-size: 13px; min-height: 4px; }
.crumbs a { color: var(--muted); }
.top h1 { grid-area: title; font-size: 25px; font-weight: 600; letter-spacing: -.01em; word-break: break-word; }
.top-actions { grid-area: actions; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.content { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Bildirimler ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--r); margin-bottom: 16px; border: 1px solid; font-size: 14px; }
.flash .ic { margin-top: 2px; }
.flash.ok { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.flash.ok .ic { color: var(--green); }
.flash.err { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.flash.err .ic { color: var(--red); }
.flash.warn, .flash.info { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.flash pre { margin: 8px 0 0; white-space: pre-wrap; font-size: 12.5px; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 500 14px/1 var(--sans);
  padding: 10px 15px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
  color: var(--text); cursor: pointer; white-space: nowrap; min-height: 40px;
}
.btn:hover { border-color: var(--muted); text-decoration: none; }
.btn.primary { background: var(--amber); border-color: #d98a2b; color: var(--amber-ink); }
.btn.primary:hover { background: #f5ad55; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--sunken); }
.btn.warn { color: #9a5b00; border-color: color-mix(in srgb, var(--amber) 60%, var(--line)); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.sm { padding: 7px 11px; font-size: 13.5px; min-height: 34px; }
.btn.xs { padding: 4px 6px; min-height: 26px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.is-busy { pointer-events: none; opacity: .7; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn-row form { margin: 0; }
.link { font-size: 13.5px; }

/* ---------- Panel / tablo ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel h2 { font-size: 16px; font-weight: 600; }
.panel p { margin: 0 0 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 11px 16px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl.rows tbody tr:hover { background: color-mix(in srgb, var(--sunken) 55%, transparent); }
.tbl.compact td { padding: 9px 0; }
.tbl tr.dim { opacity: .62; }
.dom { display: flex; gap: 11px; align-items: center; color: var(--text); }
.dom strong { font-weight: 600; }
.dom small { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- Durum ışıkları ---------- */
.led { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; white-space: nowrap; }
.led i, .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #94a3b0; }
.led-on i, .dot.on { background: #37b24d; box-shadow: 0 0 0 3px color-mix(in srgb, #37b24d 22%, transparent); }
.led-busy i { background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 25%, transparent); animation: blink 1s steps(2) infinite; }
.led-err i, .dot.err { background: #e03131; box-shadow: 0 0 0 3px color-mix(in srgb, #e03131 22%, transparent); }
.led-off i, .dot.off { background: #94a3b0; }
@keyframes blink { 50% { opacity: .35; } }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 2px 8px; border-radius: 999px; background: var(--sunken); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tag.bad { background: var(--red-soft); color: var(--red); border-color: transparent; }

/* ---------- Genel bakış: makine ön paneli ---------- */
.machine {
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr; background: var(--ink); color: #dbe5ee;
  border-radius: var(--r); overflow: hidden; position: relative; border: 1px solid #0a1824;
}
.machine::before, .machine::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #0a1824; box-shadow: inset 0 1px 1px #000, 0 1px 0 #2a4a66; transform: translateY(-50%); }
.machine::before { left: 8px; } .machine::after { right: 8px; }
.machine-id { padding: 20px 22px 20px 28px; border-right: 1px solid var(--ink-line); }
.host { display: flex; gap: 10px; align-items: center; font-size: 17px; color: #fff; margin-bottom: 12px; }
.host .ic { color: var(--amber); }
.machine dl { margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.machine dl div { display: flex; justify-content: space-between; gap: 10px; }
.machine dt { color: #8ba0b2; }
.machine dd { margin: 0; text-align: right; }
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); }
.gauge { padding: 20px 22px; border-right: 1px solid var(--ink-line); }
.gauge:last-child { border-right: 0; padding-right: 30px; }
.g-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #8ba0b2; }
.g-head b { margin-left: auto; font: 500 26px/1 var(--mono); color: #fff; }
.bar { height: 6px; background: #0a1824; border-radius: 3px; margin: 14px 0 9px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #37b24d; border-radius: 3px; }
.gauge.warm .bar i { background: var(--amber); }
.gauge.hot .bar i { background: #e03131; }
.gauge small { color: #8ba0b2; font-size: 12.5px; }

.tally { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 12px; }
.tally div { padding: 10px 14px; border-right: 1px solid var(--line); }
.tally div:last-child { border-right: 0; }
.tally b { display: block; font: 500 22px/1.2 var(--mono); }
.tally span { color: var(--muted); font-size: 13px; }
.tally .bad b { color: var(--red); }
.sitelist, .feed { list-style: none; margin: 0; padding: 0; }
.sitelist li a { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; }
.sitelist li:last-child a, .feed li:last-child, .feed li:last-child a { border-bottom: 0; }
.sitelist .dn { font-weight: 500; }
.sitelist .ssl { color: var(--green); }
.sitelist .muted { margin-left: auto; font-size: 12.5px; }
.feed li, .feed li a { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text); }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.feed li a { flex: 1; min-width: 0; }
.feed li > a { padding: 0; }
.feed span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed time { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.act { font-weight: 500; white-space: nowrap; }
.lvl-error .act { color: var(--red); }
.lvl-warning .act { color: #b26a00; }

/* ---------- Boş durum ---------- */
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.empty .ic { color: var(--muted); }
.empty h2 { color: var(--text); font-size: 18px; margin: 14px 0 6px; }
.empty p { max-width: 52ch; margin: 0 auto 18px; }
.empty.small { padding: 22px 14px; border: 0; background: none; }
.empty.small form { margin-top: 10px; }

/* ---------- Formlar ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
label small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.opt { font-weight: 400; color: var(--muted); font-size: 12.5px; }
input, select, textarea {
  font: 15px/1.4 var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 11px; width: 100%; min-height: 40px;
}
input.mono, textarea.mono { font-family: var(--mono); font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 22%, transparent); }
input:disabled { background: var(--sunken); color: var(--muted); }
textarea.code { background: var(--console); color: var(--console-text); border-color: var(--console); }
input.short { max-width: 160px; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
label.check input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--amber); flex: none; }
label.check span { display: flex; flex-direction: column; gap: 2px; }
.prefix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--sunken); }
.prefix > span { padding: 9px 4px 9px 11px; color: var(--muted); white-space: nowrap; font-size: 13px; display: flex; align-items: center; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.prefix input { border: 0; border-radius: 0; min-width: 0; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.form-foot { display: flex; justify-content: flex-end; gap: 10px; grid-column: 1 / -1; padding-top: 4px; }
.types { display: grid; gap: 8px; margin-bottom: 16px; }
.type-opt { flex-direction: row; align-items: flex-start; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); margin: 0; cursor: pointer; font-weight: 400; }
.type-opt input { width: 17px; height: 17px; min-height: 0; margin: 2px 0 0; accent-color: var(--amber); flex: none; }
.type-opt span { display: flex; flex-direction: column; }
.type-opt strong { font-weight: 500; }
.type-opt small { color: var(--muted); }
.type-opt:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
[data-show].is-hidden { display: none; }

.search { display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 10px; color: var(--muted); }
.search input { border: 0; padding: 8px 0; min-height: 38px; background: transparent; box-shadow: none !important; }

/* ---------- Site sayfası ---------- */
.site-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.sh-state, .sh-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sh-actions form { margin: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 500; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--amber); }
.tabs a.danger { margin-left: auto; }
.tabs a.danger.on { border-bottom-color: var(--red); color: var(--red); }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-all; }
.note { background: var(--sunken); padding: 10px 12px; border-radius: var(--r-sm); margin-top: 12px !important; font-size: 14px; }
.cmd { background: var(--console); color: var(--console-text); font: 13px/1.5 var(--mono); padding: 10px 12px; border-radius: var(--r-sm); white-space: pre-wrap; word-break: break-all; margin: 0 0 14px; }
.copy { cursor: copy; position: relative; }
.copy.copied::after { content: "Kopyalandı"; position: absolute; right: 8px; top: 8px; font: 500 11.5px var(--sans); background: var(--amber); color: var(--amber-ink); padding: 2px 7px; border-radius: 4px; }
.console {
  background: var(--console); color: var(--console-text); font: 12.5px/1.6 var(--mono); padding: 14px 16px; border-radius: var(--r-sm);
  max-height: 520px; overflow: auto; margin: 0; white-space: pre-wrap; word-break: break-word; tab-size: 4;
}
.console.tall { min-height: 360px; max-height: 64vh; }
.console.good { border-left: 3px solid #37b24d; }
.console.bad { border-left: 3px solid #e03131; }
.console .ln-err { color: #ff8787; }
.console .ln-ok { color: #8ce99a; }
.console .ln-step { color: var(--amber); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg button { background: var(--surface); border: 0; border-right: 1px solid var(--line); padding: 7px 12px; font: 500 13.5px var(--sans); color: var(--muted); cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--ink); color: #fff; }
.danger-zone { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); max-width: 640px; }
.danger-zone h2 { color: var(--red); }
.ini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; }
.ini-grid label > span { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.ini-grid code { font-size: 11.5px; color: var(--muted); background: none; padding: 0; }
h3.sub { font-size: 14px; font-weight: 600; margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
h3.sub:first-of-type { border-top: 0; padding-top: 0; }

/* ---------- PHP ---------- */
.ver-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ver-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; color: var(--text); display: flex; flex-direction: column; gap: 6px; position: relative; }
.ver-card:hover { border-color: var(--amber); text-decoration: none; }
.ver-num { font-size: 15px; color: var(--muted); }
.ver-num b { font: 600 32px/1 var(--mono); color: var(--text); margin-left: 2px; }
.ver-full { color: var(--muted); font-size: 12.5px; }
.ver-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 13px; }
.ver-go { color: var(--blue); font-size: 13.5px; margin-top: 8px; }
.tool-list { list-style: none; margin: 0; padding: 0; }
.tool-list li { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tool-list li:last-child { border-bottom: 0; }
.tool-list small { display: block; color: var(--muted); font-size: 13px; }
.tool-list form { margin: 0; }
.callout { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); border-radius: var(--r); padding: 14px 18px; flex-wrap: wrap; }
.callout div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; flex: 1; }
.callout form { margin: 0; }
.ext-bar {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--paper); padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.ext-bar .search { flex: 1; min-width: 180px; }
.ext-group { margin-top: 16px; }
.ext-group h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.ext-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.ext-grid.tight { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ext {
  flex-direction: row; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; font-weight: 400;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
}
.ext input { width: 16px; height: 16px; min-height: 0; margin: 3px 0 0; accent-color: var(--amber); flex: none; }
.ext-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ext-name { font-weight: 500; font-size: 13.5px; }
.ext small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ext-state { font-size: 12px; color: var(--muted); white-space: nowrap; display: flex; gap: 3px; align-items: center; }
.ext.inst { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.ext.inst .ext-state { color: var(--green); }
.ext.na { opacity: .5; cursor: not-allowed; }
.ext:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
.ext.hidden { display: none; }
.rec { color: var(--amber); font-style: normal; margin-left: 5px; font-size: 12px; }
.mod-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.mod { display: inline-flex; align-items: center; gap: 4px; background: var(--sunken); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 11px; margin: 0; font-size: 13px; }
.inline-form { display: flex; gap: 8px; max-width: 420px; }
.inline-form input { flex: 1; }

/* ---------- İşler ---------- */
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.job-foot p { margin: 0; font-weight: 500; }
[data-job-wait] { margin: 10px 0 0 !important; }
.svc-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin: 0; }
.pager-wrap ul { display: flex; gap: 4px; list-style: none; padding: 0; justify-content: center; }
.pager-wrap li a { display: block; padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.pager-wrap li.active a { background: var(--ink); color: #fff; }

/* ---------- Giriş ---------- */
.login-body { background: var(--ink); min-height: 100vh; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(320px, 400px) 1fr; align-items: center; gap: 40px; padding: 24px; }
.login-rack { grid-column: 1; justify-self: end; display: grid; gap: 6px; width: 220px; opacity: .9; }
.unit { height: 26px; background: #0d2133; border: 1px solid #23435e; border-radius: 3px; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.unit i { width: 6px; height: 6px; border-radius: 50%; background: #37b24d; box-shadow: 0 0 6px #37b24d; }
.unit i + i { background: var(--amber); box-shadow: 0 0 6px var(--amber); animation: blink 1.6s steps(2) infinite; }
.unit:nth-child(2n) i + i { animation-delay: .4s; }
.unit:nth-child(3n) i + i { animation-delay: .9s; }
.unit span { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #23435e 0 3px, transparent 3px 6px); margin-left: 8px; }
.login-card { grid-column: 2; background: var(--surface); border-radius: 10px; padding: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.login-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.login-brand strong { display: block; font-size: 19px; }
.login-brand small { color: var(--muted); }
.hint { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }


/* =================== Genel bakış (v2) =================== */
.greet { margin: 0 0 6px; color: #8ba0b2; font-size: 13.5px; }
.health { margin: -4px 0 14px; }
.health .led { color: #c8f0cf; }
.health.bad .led { color: #ffc9c9; }
.machine .copy.copied::after { top: -4px; }
.spark { display: block; width: 100%; height: 34px; margin: 10px 0 5px; overflow: visible; }
.spark polyline { fill: none; stroke: #37b24d; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark path { fill: color-mix(in srgb, #37b24d 18%, transparent); stroke: none; }
.gauge.warm .spark polyline { stroke: var(--amber); } .gauge.warm .spark path { fill: color-mix(in srgb, var(--amber) 18%, transparent); }
.gauge.hot .spark polyline { stroke: #e03131; } .gauge.hot .spark path { fill: color-mix(in srgb, #e03131 18%, transparent); }
.bar i { transition: width .6s ease; }

.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); }
.quick a:hover { text-decoration: none; border-color: var(--amber); }
.quick a:hover .q-ic { background: var(--amber); color: var(--amber-ink); }
.q-ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center; background: var(--amber-soft); color: #b56a10; transition: background .15s, color .15s; }
.quick strong { font-weight: 600; font-size: 14.5px; }
.quick small { color: var(--muted); font-size: 12.5px; }
.grid-dash { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.tally { grid-template-columns: repeat(4, 1fr); }
.stack { list-style: none; margin: 0; padding: 0; }
.stack li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.stack li:last-child { border-bottom: 0; }
.stack .mono { font-size: 12.5px; }
.sitelist .dn { display: inline-flex; align-items: center; gap: 4px; }

/* =================== Alt alan adı / FTP =================== */
.tbl tr.child td:first-child { padding-left: 34px; }
.sub-ic { color: var(--muted); margin-right: -4px; }
.grid-2.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.suffix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.suffix input { border: 0; border-radius: 0; min-width: 0; flex: 1; }
.suffix > span { background: var(--sunken); padding: 0 11px; display: flex; align-items: center; color: var(--muted); font-size: 13px; white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.suffix:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 22%, transparent); }
.suffix input:focus { box-shadow: none; }
form.inline { display: inline; margin: 0; }
.danger-text { color: var(--red) !important; }
details.pop { display: inline-block; position: relative; }
details.pop summary { list-style: none; }
details.pop summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: 0 14px 34px rgba(10, 25, 40, .18); text-align: left; white-space: normal; }
.pop-body label { margin-bottom: 10px; }
.pop-body > .btn.ghost { margin: -4px 0 10px; padding-left: 0; }
.conn { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--ink); color: #e2eaf0; border-radius: var(--r); overflow: hidden; }
.conn > div { padding: 14px 18px; border-right: 1px solid var(--ink-line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.conn > div:last-child { border-right: 0; }
.conn .muted { color: #8ba0b2; font-size: 12.5px; }
.conn strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.conn .led { color: #e2eaf0; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pick { display: flex; gap: 12px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); }
.pick:hover { border-color: var(--amber); text-decoration: none; }
.pick .ic { color: #d4891f; }
.pick span { display: flex; flex-direction: column; min-width: 0; }
.pick small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

/* =================== Dosya yöneticisi =================== */
.usage { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13.5px; }
.fm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fm-path { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 11px 16px; background: var(--sunken); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.fm-path a { color: var(--text); padding: 2px 4px; border-radius: 4px; }
.fm-path a:hover { background: var(--surface); text-decoration: none; }
.fm-path a:last-child { font-weight: 600; }
.fm-path .root { display: inline-flex; gap: 6px; align-items: center; }
.fm-path .sep { color: var(--muted); }
.fm-bar { position: sticky; top: 0; z-index: 6; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.fm-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fm-up { cursor: pointer; margin: 0; flex-direction: row; }
.fm-sel .btn { opacity: .45; }
.fm-sel.active .btn:not(:disabled) { opacity: 1; }
.fm-sel .btn:disabled { opacity: .35; }
.fm-count { font-size: 13px; color: var(--muted); margin-right: 4px; font-weight: 500; }
.fm-sel.active .fm-count { color: var(--text); }
.btn.paste { border-color: var(--amber); background: var(--amber-soft); }
.fm-drop { position: relative; min-height: 220px; }
.fm-drop .flash { margin: 12px; }
.drop-hint { display: none; position: absolute; inset: 8px; border: 2px dashed var(--amber); border-radius: var(--r); background: color-mix(in srgb, var(--amber-soft) 85%, transparent); color: #9a5b00; font-weight: 600; flex-direction: column; gap: 8px; align-items: center; justify-content: center; z-index: 4; }
.fm-drop.over .drop-hint { display: flex; }
.fm-tbl th { position: static; }
.fm-tbl th a { color: var(--muted); }
.fm-tbl th a.on { color: var(--text); }
.fm-tbl td { padding: 8px 14px; }
.fm-tbl .cb { width: 38px; padding-right: 0; }
.fm-tbl .cb input { width: 17px; height: 17px; min-height: 0; accent-color: var(--amber); margin: 0; display: block; }
.fm-tbl tbody tr:hover { background: color-mix(in srgb, var(--sunken) 60%, transparent); }
.fm-tbl tbody tr.sel { background: var(--amber-soft); }
.fname { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 14px; word-break: break-all; }
.fname .ic { color: var(--muted); }
.fname.dir .ic { color: #d4891f; }
.fname.dir span { font-weight: 500; }
.fmeta { display: block; padding-left: 29px; font-size: 12px; }
.up-row .fname { color: var(--muted); }
.perm { background: var(--sunken); padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.row-act { width: 1%; }
.row-act .btn { color: var(--muted); }
.row-act .btn:hover { color: var(--blue); }
.fm-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--sunken); }
.fm-foot form { margin: 0; }
.up-panel { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: min(360px, calc(100vw - 36px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 44px rgba(10, 25, 40, .25); padding: 14px 16px; }
.up-panel header { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.up-panel .bar { background: var(--sunken); margin: 10px 0; }
.up-panel.done .bar i { background: #37b24d; }
.up-panel.fail .bar i { background: #e03131; }
.up-panel ul { list-style: none; margin: 0; padding: 0; max-height: 140px; overflow: auto; font-size: 12.5px; color: var(--muted); }
.up-panel li.err { color: var(--red); }
.dlg { border: 1px solid var(--line); border-radius: 10px; padding: 22px; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(5, 15, 25, .35); }
.dlg::backdrop { background: rgba(8, 20, 32, .45); }
.dlg h2 { font-size: 17px; margin-bottom: 16px; }
.dlg .form-foot { flex-direction: row; }
.dlg .form-foot .btn { width: auto; }
.perm-grid { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 14px; }
.perm-grid th, .perm-grid td { padding: 8px; text-align: center; border-bottom: 1px solid var(--line); font-weight: 500; }
.perm-grid tbody th { text-align: left; }
.perm-grid input { width: 18px; height: 18px; min-height: 0; accent-color: var(--amber); }

/* =================== Düzenleyici =================== */
.editor { display: flex; flex-direction: column; gap: 8px; }
.ed-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 8px 12px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-sm); }
.ed-bar .check { margin: 0; align-items: center; }
.ed-bar .check input { margin: 0; width: 16px; height: 16px; }
.ed-wrap { display: flex; background: var(--console); border-radius: var(--r-sm); overflow: hidden; height: calc(100vh - 250px); min-height: 360px; }
.ed-gutter { margin: 0; padding: 14px 10px 14px 14px; color: #5b7286; font: 13px/1.6 var(--mono); text-align: right; user-select: none; overflow: hidden; min-width: 48px; border-right: 1px solid #1b2f40; background: #0b1823; }
.ed-wrap textarea { flex: 1; border: 0; border-radius: 0; background: transparent; color: var(--console-text); font: 13px/1.6 var(--mono); padding: 14px; resize: none; min-height: 0; tab-size: 4; white-space: pre; overflow: auto; }
.ed-wrap textarea[wrap=soft] { white-space: pre-wrap; }
.ed-wrap textarea:focus { box-shadow: none; }
.save-state.dirty { color: #b26a00; font-weight: 500; }
kbd { font: 11.5px var(--mono); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; }

@media (max-width: 1100px) {
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-dash, .grid-2.wide-left { grid-template-columns: 1fr; }
  .conn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conn > div:nth-child(2) { border-right: 0; }
  .conn > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink-line); }
}
@media (max-width: 640px) {
  .quick { grid-template-columns: 1fr 1fr; gap: 8px; }
  .quick a { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 8px; padding: 12px; }
  .q-ic { grid-row: auto; width: 36px; height: 36px; }
  .tally { grid-template-columns: repeat(2, 1fr); }
  .tally div:nth-child(2) { border-right: 0; }
  .tally div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fm-bar .btn span { display: none; }
  .fm-bar .fm-up span, .fm-bar .paste span { display: inline; }
  .fm-bar { padding: 8px; }
  .fm-tbl td { padding: 8px 10px; }
  .tbl tr.child td:first-child { padding-left: 18px; }
  .ed-wrap { height: calc(100vh - 290px); }
  .ed-gutter { min-width: 36px; padding-left: 6px; }
  .pop-body { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; }
  .conn { grid-template-columns: 1fr 1fr; }
  .stack li { grid-template-columns: 1fr auto; }
  .stack li .mono { display: none; }
}


/* =================== Nav başlıkları, kayıtlar, güvenlik duvarı, veritabanı =================== */
.nav-h { display: block; padding: 14px 12px 4px; font-size: 12px; color: #6f879b; font-weight: 500; }
.side nav { overflow-y: auto; }
.panel > header.pad { padding: 14px 16px 0; margin-bottom: 10px; }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.stack-col { display: flex; flex-direction: column; gap: 20px; }
details.raw { border-top: 1px solid var(--line); }
details.raw summary { cursor: pointer; padding: 10px 16px; font-size: 13px; color: var(--muted); }
details.raw .console { border-radius: 0; }
.fw-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--r); border: 1px solid; }
.fw-head.on { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.fw-head.off { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.fw-state { display: flex; gap: 14px; align-items: center; }
.fw-head.on .fw-state .ic { color: var(--green); }
.fw-head.off .fw-state .ic { color: var(--red); }
.fw-state strong { display: block; font-size: 17px; }
.fw-state span { color: var(--muted); font-size: 14px; }
.fw-head form { margin: 0; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.presets .btn { border: 1px solid var(--line); }
.jails { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.jail { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.jail-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; }
.jail p { margin: 0; }
.ban-list { list-style: none; margin: 0; padding: 0; }
.ban-list li { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-size: 13.5px; }
.ban-form { max-width: 560px; }
.ban-form select { width: auto; }
.logs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.log-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: sticky; top: 16px; }
.log-list a { display: flex; flex-direction: column; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.log-list a:last-child { border-bottom: 0; }
.log-list a:hover { background: var(--sunken); text-decoration: none; }
.log-list a.on { background: var(--amber-soft); box-shadow: inset 3px 0 0 var(--amber); }
.log-list strong { font-weight: 500; font-size: 14px; }
.log-list small { color: var(--muted); font-size: 12px; }
.log-list span { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.log-view > header { align-items: flex-start; }
.log-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.log-tools select { width: auto; min-height: 38px; }
.log-tools .check { margin: 0; align-items: center; }
.log-tools .check input { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px; }
.filters .search { flex: 1; min-width: 200px; }
.filters select, .filters input[type=date] { width: auto; min-height: 38px; }
.lv { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 4px; background: var(--sunken); color: var(--muted); margin-right: 4px; }
.lv-error { background: var(--red-soft); color: var(--red); }
.lv-warning { background: var(--amber-soft); color: #9a5b00; }
.lv-audit { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.lvl-audit .act { color: var(--muted); font-weight: 400; }
.detail { color: var(--muted); word-break: break-word; }
.conn form { margin: 0; }
@media (max-width: 900px) {
  .logs-layout { grid-template-columns: 1fr; }
  .log-list { position: static; flex-direction: row; overflow-x: auto; }
  .log-list a { min-width: 160px; border-bottom: 0; border-right: 1px solid var(--line); }
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
  .machine { grid-template-columns: 1fr; }
  .machine::before, .machine::after { display: none; }
  .machine-id { border-right: 0; border-bottom: 1px solid var(--ink-line); }
  .hide-m { display: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(5, 15, 25, .5); z-index: 30; }
  .nav-btn { display: block; }
  .main { padding: 0 16px 40px; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-rack { display: none; }
  .login-card { grid-column: 1; justify-self: center; width: 100%; max-width: 400px; }
}
@media (max-width: 640px) {
  .top { grid-template-areas: "nav crumbs" "nav title" "actions actions"; grid-template-columns: auto 1fr; padding: 16px 0 14px; }
  .top h1 { font-size: 21px; }
  .top-actions { justify-content: flex-start; margin-top: 10px; }
  .top-actions .search { flex: 1; }
  .gauges { grid-template-columns: 1fr; }
  .gauge { border-right: 0; border-bottom: 1px solid var(--ink-line); padding: 14px 22px 14px 28px; }
  .gauge:last-child { border-bottom: 0; }
  .hide-s { display: none; }
  .tbl td, .tbl th { padding: 10px 12px; }
  .row-2 { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .panel { padding: 16px; }
  .tabs a.danger { margin-left: 0; }
  .form-foot { flex-direction: column-reverse; }
  .form-foot .btn { width: 100%; }
}
@media (min-width: 641px) { .show-s { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* .htaccess dönüştürücü */
.notes { margin: 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 6px; }
details.raw-file { border-bottom: 1px solid var(--line); padding: 6px 0; }
details.raw-file summary { cursor: pointer; font-size: 13px; }
details.raw-file .console { margin-top: 8px; max-height: 260px; }
.small-callout { padding: 10px 14px; margin-top: 12px; }

/* Yedekler */
.bk-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.bk-head.on { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.bk-head .ic { color: var(--muted); }
.bk-head.on .ic { color: var(--green); }
.bk-head .fw-state span { display: block; }
.bk-stats { display: flex; gap: 22px; }
.bk-stats div { display: flex; flex-direction: column; }
.bk-stats b { font-size: 18px; font-weight: 500; }
.bk-stats span { color: var(--muted); font-size: 12.5px; }
.bk-group h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 12px 16px 6px; border-top: 1px solid var(--line); margin: 0; }
.bk-group h3 small { font-weight: 400; margin-left: auto; }
.bk-group .tbl td { padding: 8px 16px; }
.tag.warnt { background: var(--amber-soft); color: #9a5b00; border-color: transparent; }
.panel > header.pad .inline-form { max-width: none; }
.panel > header.pad select { width: auto; max-width: 260px; min-height: 34px; }
.db-pick { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: -6px 0 12px 28px; }
.db-pick .check { margin: 0; }
ol.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; }

/* İki adımlı doğrulama */
.tfa-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--amber); color: var(--amber-ink); flex: none; }
.code-input { font-size: 24px !important; letter-spacing: .25em; text-align: center; padding: 12px; }
.tfa header { margin-bottom: 10px; }
.tfa-setup { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.qr-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; width: 220px; height: 220px; }
.qr, .qr svg { width: 100%; height: 100%; display: block; }
.secret { display: block; margin-top: 8px; font-size: 15px; padding: 8px 10px; letter-spacing: .06em; width: fit-content; word-break: break-all; }
.tfa-setup .inline-form { margin: 16px 0 8px; max-width: 420px; }
.tfa-setup .inline-form input { min-width: 0; }
.codes-box { border: 1px dashed var(--amber); background: var(--amber-soft); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; }
.codes-box p { margin: 4px 0 10px; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 18px; margin: 0; padding-left: 22px; font-size: 15px; }
.sub-box { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.sub-box h3 { font-size: 14.5px; margin-bottom: 8px; }
.sub-box.danger-zone { max-width: none; }
@media (max-width: 640px) {
  .tfa-setup { grid-template-columns: 1fr; }
  .qr-wrap { margin: 0 auto; }
  .tfa-setup .inline-form { flex-direction: column; }
}

/* reCAPTCHA */
.rc-box { margin: 2px 0 14px; min-height: 78px; display: flex; justify-content: center; }
.login-card .rc-box { overflow: hidden; }
@media (max-width: 360px) { .rc-box .g-recaptcha { transform: scale(.9); transform-origin: center; } }
.rc-note { margin: -4px 0 12px !important; }
.howto { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 16px; }
.howto summary { cursor: pointer; font-weight: 500; }
.howto .steps { margin-top: 12px; }
.rc .sub-box .rc-box { justify-content: flex-start; }
.rc-emergency { margin: 14px 0 0 !important; }
.grecaptcha-badge { visibility: visible; }

/* Komut satırı */
.console-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tool-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.prompt { display: flex; gap: 8px; align-items: stretch; background: var(--console); border-radius: var(--r-sm); padding: 6px 6px 6px 12px; }
.prompt .ps1 { color: #8ce99a; align-self: center; font-size: 15px; }
.prompt textarea { flex: 1; background: transparent; border: 0; color: var(--console-text); resize: none; min-height: 38px; padding: 9px 4px; font-size: 14px; line-height: 1.4; box-shadow: none !important; }
.prompt .btn { min-height: 38px; }
.hint-keys { margin: 6px 0 12px !important; }
.term { margin-top: 0; min-height: 300px; }
.term .ln-cmd { color: #8ce99a; }
.quick-cmds { display: flex; flex-direction: column; gap: 14px; }
.qc-group h3 { font-size: 13px; font-weight: 600; margin: 0 0 6px; color: var(--muted); }
.qc-group.hl h3 { color: var(--text); }
.qc-group.hl h3::after { content: " · bu site için"; font-weight: 400; color: #b26a00; }
.qc { display: block; width: 100%; text-align: left; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 10px; margin-bottom: 5px; font-size: 12.5px; color: var(--text); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc:hover { border-color: var(--amber); background: var(--amber-soft); }
.quick-cmds.hist { gap: 0; }

/* Anahtar düğme */
.switch { position: relative; width: 38px; height: 22px; border-radius: 999px; border: 0; background: #b8c4ce; cursor: pointer; vertical-align: middle; padding: 0; }
.switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on { background: #37b24d; }
.switch.on i { left: 19px; }
.switch:disabled { opacity: .6; cursor: not-allowed; }
.job-wait { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.job-wait p { margin: 0 !important; }
.job-wait form { margin: 0; }
@media (max-width: 1100px) { .console-wrap { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .row-3 { grid-template-columns: 1fr; } .prompt { flex-wrap: wrap; } .prompt textarea { flex-basis: calc(100% - 30px); } .prompt .btn { flex: 1; } }

/* Güvenlik denetimi */
.sec-head { display: flex; gap: 24px; align-items: center; padding: 20px 24px; border-radius: var(--r); background: var(--ink); color: #e2eaf0; }
.sec-head h2 { font-size: 20px; margin-bottom: 4px; color: #fff; }
.sec-head p { margin: 2px 0; }
.sec-head .muted { color: #8ba0b2; }
.score { position: relative; width: 112px; height: 112px; flex: none; }
.score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 10; }
.score .trk { stroke: #0a1824; }
.score .val { stroke: #37b24d; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.lvl-orta .score .val { stroke: var(--amber); }
.lvl-zayif .score .val { stroke: #e03131; }
.score > div { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 36px; gap: 2px; }
.score b { font: 600 32px/1 var(--mono); color: #fff; }
.score span { color: #8ba0b2; font-size: 13px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks strong { display: block; font-weight: 500; font-size: 14.5px; }
.checks small { color: var(--muted); font-size: 13px; }
.checks .ck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.checks li.ok .ck { background: var(--green-soft); color: var(--green); }
.checks li.bad .ck { background: var(--red-soft); color: var(--red); }
.checks li.bad strong { color: var(--text); }
.checks .act form { margin: 0; }
.key-add .steps { gap: 6px; margin-bottom: 12px; }
.key-add .cmd { margin: 6px 0 4px; font-size: 12px; }
.row-key { display: grid; grid-template-columns: 110px 1fr; gap: 8px; margin-bottom: 10px; }
.sub-box + .sub-box { margin-top: 14px; }
#ssh .sub-box { margin-top: 14px; }
.ports td { padding: 6px 0; font-size: 13.5px; }
@media (max-width: 640px) {
  .sec-head { flex-direction: column; text-align: center; }
  .checks li { grid-template-columns: auto 1fr; }
  .checks .w { display: none; }
  .checks .act { grid-column: 2; }
  .row-key { grid-template-columns: 1fr; }
}

/* Açılır menüler tablo kutusunun dışına taşabilsin (kesilmesin) */
.panel.flush:has(details.pop) { overflow: visible; }
.panel.flush:has(details.pop) .tbl thead th:first-child { border-top-left-radius: var(--r); }
.panel.flush:has(details.pop) .tbl thead th:last-child { border-top-right-radius: var(--r); }
details.pop[open] { z-index: 30; }
details.pop[open] > summary { position: relative; z-index: 31; }
.pop-body { z-index: 40; max-height: min(70vh, 520px); overflow-y: auto; }
.pop-body.up { top: auto; bottom: calc(100% + 6px); }
.pop-body hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* Arşiv satırındaki Aç düğmesi */
.row-act .unzip-btn { color: var(--accent, #c27803); font-weight: 600; gap: 4px; }
.row-act .unzip-btn span { font-size: 12px; }

/* ---------------------------------------------------------------------------
   Pencereler: dışına tıklama yalnızca arka plana denk gelsin (iç boşluk forma taşındı)
--------------------------------------------------------------------------- */
.dlg { padding: 0; }
.dlg > form { padding: 22px; }
.dlg[open], .nx-dlg[open] { animation: nx-in .16s ease-out; }
.dlg::backdrop, .nx-dlg::backdrop { background: rgba(8, 20, 32, .5); backdrop-filter: blur(3px); }
@keyframes nx-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Onay penceresi */
.nx-dlg { border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 28px 70px rgba(5, 15, 25, .38); }
.nx-dlg form { padding: 24px 24px 20px; }
.nx-top { display: flex; gap: 16px; align-items: flex-start; }
.nx-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.nx-dlg[data-type=danger] .nx-ic { background: var(--red-soft); color: var(--red); }
.nx-dlg[data-type=warn] .nx-ic { background: var(--amber-soft); color: #b86e0b; }
.nx-txt { min-width: 0; flex: 1; padding-top: 2px; }
.nx-txt h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; line-height: 1.35; overflow-wrap: anywhere; }
.nx-txt p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14.5px; }
.nx-list { list-style: none; margin: 12px 0 0; padding: 8px 12px; background: var(--sunken); border-radius: 8px; max-height: 160px; overflow: auto; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.nx-list li { padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-list li.more { color: var(--muted); font-family: inherit; }
.nx-check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0 60px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.nx-check input { margin-top: 2px; accent-color: var(--red); }
.nx-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.nx-foot .btn { min-width: 96px; justify-content: center; }
.nx-ok.warn { background: var(--amber); border-color: #d98a2b; color: var(--amber-ink); }
@media (max-width: 520px) {
  .nx-top { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .nx-check { margin-left: 0; }
  .nx-foot { flex-direction: column-reverse; }
  .nx-foot .btn { width: 100%; }
}

/* Çöp kutusu */
.trash-link { position: relative; }
.trash-link .cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 600; }
.trash-head { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.trash-head .trash-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--muted); }
.trash-head strong { display: block; font-size: 15.5px; }
.trash-head small { color: var(--muted); line-height: 1.5; }
.nx-dlg label.nx-check { flex-direction: row; align-items: flex-start; font-weight: 400; margin-bottom: 0; }
.nx-dlg label.nx-check[hidden] { display: none; }
.nx-dlg label.nx-check input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 1px 0 0; flex: none; }
.logout-form { margin: 0; display: flex; }
button.logout { background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.insecure-note { background: var(--amber-soft); border-radius: 8px; padding: 8px 10px; text-align: left; }
