/* GPanel — graphite + amber, rafine koyu yönetim teması.
   Gamze • Duru • Deren (kaynak-içi ithaf). */

:root {
  /* yüzeyler (katmanlı derinlik) */
  --bg:        #0d0f13;
  --bg-2:      #13161c;
  --panel:     #171b22;
  --panel-2:   #1c212a;
  --panel-3:   #222834;
  --line:      #272d38;
  --line-soft: #1f242d;
  /* metin */
  --txt:       #e7e9ee;
  --txt-dim:   #a9b0bc;
  --muted:     #737a86;
  /* amber vurgu */
  --amber:       #f0b429;
  --amber-dim:   #cf971c;
  --amber-ghost: rgba(240,180,41,.12);
  --amber-soft:  rgba(240,180,41,.20);
  /* durum renkleri */
  --ok:        #4cc38a;
  --ok-bg:     rgba(76,195,138,.13);
  --danger:    #f0616d;
  --danger-bg: rgba(240,97,109,.13);
  --info:      #5b9ef0;
  --info-bg:   rgba(91,158,240,.14);
  --warn:      #e8a13a;
  --warn-bg:   rgba(232,161,58,.14);
  /* biçim */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow:    0 1px 2px rgba(0,0,0,.28), 0 14px 32px -16px rgba(0,0,0,.55);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --ring:      0 0 0 3px var(--amber-ghost);
  --font-sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sidebar-w: 248px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--amber); text-decoration: none; transition: color .12s; }
a:hover { color: var(--amber-dim); }
h2 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
h3 { font-size: 14px; font-weight: 600; margin: 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 4px 0; }

/* ── Utilities ──────────────────────────────────────────────── */
.mono   { font-family: var(--font-mono); font-size: 12.5px; }
.muted  { color: var(--muted); }
.strong { font-weight: 600; }
.sub    { font-size: 12px; margin-top: 2px; }
.ta-right { text-align: right; }

/* ── App shell ──────────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, #12151b, #0c0e12);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  color: #1a1205; font-weight: 800; font-family: var(--font-mono); font-size: 17px;
  box-shadow: 0 4px 14px rgba(240,180,41,.30);
}
.brand-mark.lg { width: 46px; height: 46px; font-size: 23px; border-radius: 12px; }
.brand-name { font-weight: 700; letter-spacing: .02em; font-size: 16px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--txt-dim); font-weight: 500; font-size: 13.5px;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--panel); color: var(--txt); }
.nav-item.active { background: var(--amber-ghost); color: var(--amber); }
.nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--amber);
}
.nav-item.active .nav-ic { color: var(--amber); }
.nav-ic { width: 18px; text-align: center; font-size: 14px; color: var(--muted); flex: 0 0 18px; }
.nav-sep {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); padding: 14px 12px 4px; font-weight: 600;
}
.nav .ic, .nav-item .ic {
  width: 18px; height: 18px; flex: 0 0 18px;
  display: block; fill: currentColor; color: var(--muted);
  transition: color .12s;
}
.nav-item:hover .ic { color: var(--txt-dim); }
.nav-item.active .ic { color: var(--amber); }

/* ── Main + topbar ──────────────────────────────────────────── */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 62px;
  border-bottom: 1px solid var(--line);
  background: rgba(13,15,19,.72);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.topbar-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.topbar-user { display: flex; align-items: center; gap: 16px; }
.u-meta { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.u-name { font-weight: 600; font-size: 13px; }
.u-role { font-size: 11px; color: var(--muted); }
.logout-form { margin: 0; }

/* İç alan artık main gövdeyi tamamen doldurur.
   Böylece sidebar ile sağ ekran kenarı arasındaki sol/sağ boşluklar eşit kalır. */
.content { padding: 28px; width: 100%; max-width: none; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  vertical-align: middle;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 15px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s, transform .04s;
  white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: translateY(.5px); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--amber); color: #1a1205; border-color: var(--amber); box-shadow: 0 2px 10px -3px rgba(240,180,41,.5); }
.btn-primary:hover { background: var(--amber-dim); border-color: var(--amber-dim); color: #1a1205; }
.btn-ghost { background: var(--panel-2); color: var(--txt-dim); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-3); color: var(--txt); border-color: #34404f; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(240,97,109,.4); }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); border-color: rgba(240,97,109,.6); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }

/* ── Flash ──────────────────────────────────────────────────── */
.flashes { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.flash {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px;
  border: 1px solid var(--line); border-left-width: 3px;
}
.flash-ok  { background: var(--ok-bg);     border-color: rgba(76,195,138,.4);  border-left-color: var(--ok);     color: #8ee0b5; }
.flash-err { background: var(--danger-bg); border-color: rgba(240,97,109,.4);  border-left-color: var(--danger); color: #f2949c; }

/* ── Page / section heads ───────────────────────────────────── */
.panel-block { margin-top: 26px; }
.panel-block:first-child { margin-top: 0; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.block-head h2, .block-head h3 { display: flex; align-items: center; gap: 11px; min-width: 0; }

/* başlık ikon çipi */
.head-ic {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--amber-ghost); color: var(--amber);
}
.head-ic svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.block-head h2[style] .head-ic, .block-head h3 .head-ic { width: 27px; height: 27px; border-radius: 8px; }
.block-head h2[style] .head-ic svg, .block-head h3 .head-ic svg { width: 15px; height: 15px; }

.lead { color: var(--txt-dim); margin: -6px 0 18px; max-width: 760px; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
}
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.card-body { padding: 20px; }

/* ── Stat cards ─────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  position: relative;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  display: block; box-shadow: var(--shadow-sm);
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
a.stat-card:hover { border-color: #34404f; transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-val { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--txt); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 12px; margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }
.stat-ic {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--amber-ghost); color: var(--amber);
}
.stat-ic svg { width: 19px; height: 19px; fill: currentColor; }

/* ── Tables ─────────────────────────────────────────────────── */
.table {
  width: 100%; border-collapse: collapse;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.table thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 600;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2);
  white-space: nowrap;
}
.table tbody td { padding: 13px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: var(--panel-2); }

/* tablo işlem hücresi — butonlar tek satırda, hizalı, taşınca sarar */
.table td.ta-right {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: flex-end; align-items: center;
}
.inline { display: inline-flex; align-items: center; margin: 0; }
.del-form { display: inline-flex; margin: 0; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  background: var(--panel-3); color: var(--txt-dim);
}
.badge-ok   { background: var(--ok-bg);     color: var(--ok); }
.badge-off  { background: rgba(118,125,137,.16); color: var(--muted); }
.badge-info { background: var(--info-bg);   color: var(--info); }
.badge-warn { background: var(--warn-bg);   color: var(--warn); }

/* ── Empty state ────────────────────────────────────────────── */
.empty {
  background: var(--panel); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 38px; text-align: center; color: var(--txt-dim);
}

/* ── Tabs (DNS kayıt türleri vb.) ───────────────────────────── */
.tab-bar {
  display: flex; flex-wrap: wrap; gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--txt-dim); background: transparent;
  border: none; border-bottom: 2px solid transparent;
  padding: 10px 15px; margin-bottom: -1px; cursor: pointer;
  transition: color .12s, border-color .12s;
}
.tab:hover { color: var(--txt); }
.tab.active { color: var(--amber); border-bottom-color: var(--amber); }
.tab-count {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  background: rgba(118,125,137,.18); color: var(--muted);
  padding: 1px 7px; border-radius: 20px; min-width: 16px; text-align: center;
  transition: background .12s, color .12s;
}
.tab.active .tab-count { background: var(--amber-ghost); color: var(--amber); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-card {
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  border-radius: var(--radius); padding: 24px;
  width: 100%;
  display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label, .lbl { font-size: 12.5px; font-weight: 600; color: var(--txt-dim); display: block; }
.field-hint { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* çok alanlı satırlar genişliği eşit paylaşıp tam doldurur */
.field-row, .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 20px;
}

.input, .inp {
  width: 100%; padding: 10px 13px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--txt);
  font-family: inherit; font-size: 13.5px; outline: none;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.input:hover, .inp:hover { border-color: #34404f; }
.input:focus, .inp:focus { border-color: var(--amber-dim); box-shadow: var(--ring); background: var(--panel); }
textarea.input, textarea.inp { line-height: 1.5; resize: vertical; }
select.input, select.inp { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23737a86'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}

.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--txt-dim); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--amber); flex: 0 0 16px; }
.hidden-cb { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

.form-actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }

/* ── Auth ───────────────────────────────────────────────────── */
.auth-body {
  display: grid; place-items: center; min-height: 100vh;
  background:
    radial-gradient(1000px 560px at 72% -12%, rgba(240,180,41,.10), transparent 60%),
    var(--bg);
}
.auth-wrap { width: 100%; max-width: 392px; padding: 24px; }
.auth-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 18px;
}
.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-title { font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.auth-sub { font-size: 12.5px; color: var(--muted); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-alt { text-align: center; font-size: 12.5px; margin-top: 4px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 16px; }

/* ── Coming soon ────────────────────────────────────────────── */
.coming {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.coming h2 { font-size: 22px; }
.coming p { max-width: 460px; margin: 0; color: var(--txt-dim); }
.coming-badge {
  background: var(--amber-ghost); color: var(--amber);
  padding: 4px 13px; border-radius: 20px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 920px) {
  :root { --sidebar-w: 64px; }
  .brand-name, .nav-item span:not(.nav-ic), .nav-sep { display: none; }
  .brand { justify-content: center; padding: 6px 0 14px; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .nav-item.active::before { display: none; }
  .content { padding: 18px; }
}
@media (max-width: 560px) {
  .topbar { padding: 0 16px; }
  .u-meta { display: none; }
}

/* ── WebFTP / FileZilla benzeri dosya yöneticisi ─────────────────── */
.fm-shell { --fm-side: 310px; }
.fm-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fm-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  margin-bottom: 14px; padding: 10px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.fm-breadcrumb a { color: var(--txt-dim); }
.fm-breadcrumb a:hover { color: var(--amber); }
.fm-sep { color: var(--muted); }
.fm-layout { display: grid; grid-template-columns: minmax(240px, var(--fm-side)) minmax(0, 1fr); gap: 16px; align-items: start; }
.fm-side { position: sticky; top: 78px; }
.fm-side-body { display: flex; flex-direction: column; gap: 16px; }
.fm-upload-form { display: flex; flex-direction: column; gap: 9px; margin: 0; }
.fm-file-input { display: none; }
.fm-dropzone {
  display: grid; place-items: center; text-align: center; gap: 7px;
  min-height: 132px; padding: 18px;
  border: 1px dashed #3a4656; border-radius: var(--radius);
  background: rgba(255,255,255,.02); color: var(--txt-dim);
  transition: border-color .12s, background .12s, color .12s, transform .12s;
}
.fm-dropzone span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.fm-drop-ic { font-size: 30px; line-height: 1; color: var(--amber); }
.fm-dropzone.drag-over, .fm-row.drag-over td {
  border-color: rgba(240,180,41,.7);
  background: var(--amber-ghost) !important;
  color: var(--txt);
}
.fm-progress { display: flex; flex-direction: column; gap: 7px; }
.fm-progress-line {
  height: 9px; overflow: hidden; border-radius: 99px;
  background: var(--panel-3); border: 1px solid var(--line);
}
.fm-progress-line span {
  display: block; height: 100%; width: 0%; border-radius: inherit;
  background: var(--amber); transition: width .12s ease;
}
.fm-progress-text { font-size: 12px; color: var(--muted); }
.fm-mini-form { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.fm-inline-form { display: flex; gap: 8px; align-items: center; }
.fm-inline-form .input { min-width: 0; }
.fm-main { min-width: 0; overflow: hidden; }
.fm-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.fm-toolbar-left, .fm-toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-search { width: min(280px, 36vw); }
.fm-table-wrap { overflow: auto; }
.fm-table { border: 0; border-radius: 0; box-shadow: none; }
.fm-table thead th { position: sticky; top: 0; z-index: 1; }
.fm-check { width: 38px; text-align: center !important; padding-left: 12px !important; padding-right: 8px !important; }
.fm-check input { accent-color: var(--amber); }
.fm-name-cell { min-width: 260px; }
.fm-name { display: inline-flex; align-items: center; gap: 8px; }
.fm-icon { font-size: 16px; line-height: 1; }
.fm-actions { min-width: 250px; }
.fm-row { cursor: default; }
.fm-row[data-dir="true"] { cursor: pointer; }
.fm-row[hidden] { display: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }
@media (max-width: 980px) {
  .fm-layout { grid-template-columns: 1fr; }
  .fm-side { position: static; }
  .fm-toolbar { align-items: stretch; flex-direction: column; }
  .fm-search { width: 100%; }
}
.fm-perm-cell { white-space: nowrap; min-width: 132px; }
.fm-perm-cell .btn { margin-left: 6px; }

/* ── Site health / diagnosis ─────────────────────────────────────── */
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.health-summary { border-left: 4px solid var(--ok); }
.health-summary.health-warn { border-left-color: var(--warn); }
.health-summary.health-danger { border-left-color: var(--danger); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.pill { display: inline-flex; padding: 2px 7px; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line); margin: 2px 3px 2px 0; }
.diagnose-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.diagnose-item { border-left: 3px solid var(--ok); }
.diagnose-item.diag-warn { border-left-color: var(--warn); }
.diagnose-item.diag-danger { border-left-color: var(--danger); }
.nav-count { display:inline-flex; min-width:18px; height:18px; padding:0 5px; border-radius:999px; align-items:center; justify-content:center; background:var(--danger-bg); color:var(--danger); font-size:11px; margin-left:4px; }
.card-list { display:flex; flex-direction:column; gap:12px; }
.notif-unread { border-color: rgba(240,180,41,.45); box-shadow: 0 0 0 1px rgba(240,180,41,.08); }
.grid-2 { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap:16px; }
.grid-3 { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:16px; }
.check-row { display:flex; align-items:flex-start; gap:9px; color:var(--txt-dim); font-size:13.5px; }
.check-row input { margin-top:3px; accent-color:var(--amber); }

/* Scrollbar gizleme: scroll davranışı kalır, çubuk görünmez. */
html, body, .sidebar, .main, .content {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.main::-webkit-scrollbar,
.content::-webkit-scrollbar { display: none; width: 0; height: 0; }

.table-compact thead th { padding: 10px 12px; }
.table-compact tbody td { padding: 10px 12px; }
.input-xs { min-width: 190px; padding: 6px 9px; font-size: 12px; }
.align-end { align-items: flex-end; }
.kv-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:10px; margin:12px 0 16px; }
.kv-grid > div { background: var(--bg-2); border:1px solid var(--line); border-radius: var(--radius-sm); padding:12px; }
.kv-grid span { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.kv-grid strong { display:block; margin-top:4px; font-family:var(--font-mono); }
button:disabled, .btn:disabled { opacity:.55; cursor:not-allowed; transform:none; }
.clean-list{margin:0;padding-left:18px;color:var(--muted);line-height:1.75}.clean-list li{margin:2px 0}.badge-warn{background:rgba(245,158,11,.18);color:#fbbf24}

/* ── Manuel başlatılan ağır testler ─────────────────────────────── */
.action-start-wrap { min-height: 46vh; display: grid; place-items: center; }
.action-start-card {
  width: min(620px, 100%);
  text-align: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.action-start-card h2 { margin: 12px 0 8px; }
.action-start-card p { max-width: 520px; margin: 0 auto 20px; line-height: 1.6; }
.async-loader {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  text-align: left;
}
.loader-ring {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--amber);
  animation: gpanel-spin .8s linear infinite;
}
@keyframes gpanel-spin { to { transform: rotate(360deg); } }
.field[hidden], [hidden] { display: none !important; }
.btn.disabled { opacity: .65; pointer-events: none; }

/* ── UX refresh: daha okunur panel sayfaları ───────────────────── */
.page-hero {
  display:flex; align-items:flex-start; justify-content:space-between; gap:24px;
  margin-bottom:22px; padding:24px 26px;
  border:1px solid var(--line); border-radius:var(--radius-lg);
  background:
    radial-gradient(680px 260px at 88% -20%, rgba(240,180,41,.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)),
    var(--panel);
  box-shadow:var(--shadow-sm);
}
.page-hero h1 { margin:2px 0 6px; font-size:26px; line-height:1.12; letter-spacing:-.03em; }
.page-hero p { margin:0; color:var(--txt-dim); max-width:720px; }
.eyebrow { color:var(--amber); font-weight:700; font-size:11px; letter-spacing:.12em; text-transform:uppercase; }
.hero-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.hero-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.hero-meta span {
  display:inline-flex; gap:5px; align-items:center; padding:5px 9px; border-radius:999px;
  background:var(--bg-2); border:1px solid var(--line); color:var(--txt-dim); font-size:12px;
}
.soft-head { background:linear-gradient(180deg, rgba(255,255,255,.025), transparent); }
.input-lg { padding:12px 14px; font-size:14px; }
.table-wrap { overflow:auto; }

/* DNS page */
.dns-workspace { margin-bottom:24px; }
.dns-builder { overflow:hidden; }
.dns-builder .card-body { padding:22px; }
.dns-builder-body { display:flex; flex-direction:column; gap:18px; }
.dns-form-grid {
  display:grid; grid-template-columns: 150px minmax(240px, 1fr) 130px 130px;
  gap:16px; align-items:start;
}
.dns-help-panel {
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px;
  padding:12px; border:1px solid var(--line); border-radius:var(--radius);
  background:rgba(255,255,255,.018);
}
.help-item { display:flex; flex-direction:column; gap:2px; padding:10px; border-radius:10px; background:var(--bg-2); border:1px solid var(--line-soft); }
.help-item b { color:var(--txt); font-size:12px; }
.help-item span { color:var(--muted); font-size:11.5px; line-height:1.35; }
.dns-tabs .tab-bar { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:6px; margin-bottom:12px; }
.dns-tabs .tab { border-radius:9px; border-bottom:0; margin:0; padding:8px 12px; }
.dns-tabs .tab.active { background:var(--amber-ghost); }
.dns-table-card { border-radius:var(--radius); overflow:hidden; }
.dns-table { border:0; box-shadow:none; border-radius:0; }
.dns-content-cell { word-break:break-all; color:var(--txt-dim); max-width:740px; }

/* Sites list */
.site-toolbar {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px 18px; margin-bottom:16px;
}
.site-search-wrap { width:min(360px, 45vw); }
.site-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(330px, 1fr)); gap:16px; }
.site-card {
  display:flex; flex-direction:column; gap:16px; padding:18px;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm); transition:border-color .12s, transform .12s, box-shadow .12s;
}
.site-card:hover { border-color:#34404f; transform:translateY(-1px); box-shadow:var(--shadow); }
.site-card[hidden] { display:none; }
.site-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.site-domain-wrap { display:flex; align-items:center; gap:12px; min-width:0; }
.site-favicon {
  width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center;
  border-radius:12px; background:var(--amber-ghost); color:var(--amber); font-weight:800; text-transform:uppercase;
}
.site-domain { display:block; color:var(--txt); font-weight:800; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:230px; }
.site-domain:hover { color:var(--amber); }
.site-meta { margin-top:2px; font-size:11.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:240px; }
.site-card-stats { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.site-card-stats div { padding:10px; border:1px solid var(--line-soft); background:var(--bg-2); border-radius:10px; }
.site-card-stats span { display:block; color:var(--muted); font-size:10.5px; text-transform:uppercase; letter-spacing:.07em; }
.site-card-stats strong { display:block; margin-top:2px; font-size:12px; color:var(--txt); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.site-actions-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.site-actions-grid .btn { width:100%; }
.site-card-foot { display:flex; justify-content:flex-end; padding-top:2px; border-top:1px solid var(--line-soft); }

/* Site detail */
.quick-action-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:14px; margin-bottom:20px; }
.quick-action-card {
  display:flex; flex-direction:column; gap:4px; min-height:92px; padding:16px;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  color:var(--txt); box-shadow:var(--shadow-sm); transition:transform .12s, border-color .12s, background .12s;
}
.quick-action-card:hover { transform:translateY(-1px); border-color:rgba(240,180,41,.45); background:linear-gradient(180deg, var(--panel-2), var(--panel)); color:var(--txt); }
.quick-action-card b { font-size:14px; }
.quick-action-card span { color:var(--muted); font-size:12px; line-height:1.45; }
.info-strip { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:1px; padding:0; overflow:hidden; margin-bottom:20px; }
.info-strip > div { padding:14px 16px; background:var(--panel); }
.info-strip span { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.07em; }
.info-strip b { display:block; margin-top:4px; color:var(--txt); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.settings-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; margin-top:16px; }
.settings-card { overflow:hidden; }
.compact-form { display:flex; flex-direction:column; gap:14px; }
.mini-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; }
.mini-list { display:flex; flex-direction:column; gap:8px; }
.mini-list-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 10px; border:1px solid var(--line-soft); border-radius:10px; background:var(--bg-2); }
.inline-create-form { display:grid; grid-template-columns:1fr auto; gap:10px; margin-top:12px; }
.code-area { min-height:300px; resize:vertical; line-height:1.48; }

@media (max-width: 980px) {
  .page-hero, .site-toolbar { flex-direction:column; align-items:stretch; }
  .hero-actions { justify-content:flex-start; }
  .site-search-wrap { width:100%; }
  .dns-form-grid { grid-template-columns:1fr 1fr; }
  .dns-help-panel { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .settings-grid { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .page-hero { padding:20px; }
  .page-hero h1 { font-size:22px; }
  .dns-form-grid, .dns-help-panel, .site-card-stats, .site-actions-grid { grid-template-columns:1fr; }
  .site-grid { grid-template-columns:1fr; }
}

/* ── Genel UI refresh: liste, kart ve sayfalama ─────────────────── */
.list-toolbar {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px 18px; margin:0 0 16px;
}
.list-search-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.list-search-actions .input { min-width:280px; }
.wide-actions .input { min-width:220px; }
.resource-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:16px; margin-bottom:18px; }
.resource-card {
  display:flex; flex-direction:column; gap:14px; padding:17px;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm); transition:transform .12s, border-color .12s, box-shadow .12s;
}
.resource-card:hover { transform:translateY(-1px); border-color:#34404f; box-shadow:var(--shadow); }
.resource-card-wide { min-height:150px; }
.resource-main { display:flex; align-items:center; gap:12px; min-width:0; }
.resource-icon {
  width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center;
  border-radius:13px; background:var(--amber-ghost); color:var(--amber);
  font-weight:900; font-size:12px; text-transform:uppercase;
}
.resource-title { font-weight:800; color:var(--txt); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:520px; }
.resource-sub { margin-top:3px; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:520px; }
.resource-meta-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:8px; }
.resource-meta-grid > div { padding:10px; border:1px solid var(--line-soft); background:var(--bg-2); border-radius:10px; min-width:0; }
.resource-meta-grid span { display:block; color:var(--muted); font-size:10.5px; text-transform:uppercase; letter-spacing:.07em; }
.resource-meta-grid b { display:block; margin-top:4px; font-size:12px; color:var(--txt); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.resource-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.wrap-actions { flex-wrap:wrap; justify-content:flex-start; }
.ellipsis { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.metric-large { font-size:34px; line-height:1; font-weight:900; color:var(--txt); margin-bottom:8px; font-family:var(--font-mono); }
.event-list { display:flex; flex-direction:column; gap:10px; margin-bottom:18px; }
.event-card {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:14px; align-items:start;
  padding:14px 16px; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.event-title { font-weight:800; color:var(--txt); }
.event-sub, .event-detail { margin-top:4px; font-size:12.5px; line-height:1.45; }
.event-time { white-space:nowrap; font-size:12px; }
.event-actions { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.pagination-card {
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:12px 14px; margin:16px 0 0; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
}
.pagination-summary { color:var(--muted); font-size:12px; }
.pagination-links { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.page-btn, .page-dots {
  display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px; padding:0 10px;
  border-radius:10px; border:1px solid var(--line); background:var(--bg-2); color:var(--txt-dim); font-size:12px;
}
.page-btn:hover { color:var(--txt); border-color:rgba(240,180,41,.45); }
.page-btn.active { background:var(--amber-ghost); color:var(--amber); border-color:rgba(240,180,41,.35); font-weight:800; }
.page-btn.disabled { opacity:.5; pointer-events:none; }
.page-dots { border-color:transparent; background:transparent; min-width:22px; }
@media (max-width: 760px) {
  .list-toolbar { flex-direction:column; align-items:stretch; }
  .list-search-actions, .resource-actions { justify-content:flex-start; }
  .list-search-actions .input { min-width:0; width:100%; }
  .resource-grid { grid-template-columns:1fr; }
  .event-card { grid-template-columns:1fr; }
  .event-actions { align-items:flex-start; }
}


/* ─────────────────────────────────────────────────────────────
   Complete UI refresh v2 — all pages use same visual language
   ───────────────────────────────────────────────────────────── */
.content { padding: 30px; }
.content > .block-head:first-child {
  margin: 0 0 22px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(760px 260px at 90% -20%, rgba(240,180,41,.13), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: var(--shadow-sm);
}
.content > .block-head:first-child h2 {
  font-size: 24px !important;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.content > .block-head:first-child .head-ic {
  width: 38px; height: 38px; border-radius: 12px;
}
.content > .block-head:first-child .head-ic svg { width: 20px; height: 20px; }
.content > .block-head:first-child + p.muted,
.content > .block-head:first-child + p.lead {
  margin-top: -10px !important;
  margin-bottom: 20px !important;
  padding: 0 4px;
  max-width: 880px;
}
.page-hero {
  position: relative;
  display:flex; align-items:flex-start; justify-content:space-between; gap:22px;
  padding: 26px;
  margin-bottom: 22px;
  border:1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(800px 280px at 92% -24%, rgba(240,180,41,.14), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.012));
  box-shadow: var(--shadow-sm);
  overflow:hidden;
}
.page-hero::after {
  content:""; position:absolute; inset:auto -120px -180px auto; width:360px; height:260px;
  background: radial-gradient(circle, rgba(240,180,41,.10), transparent 70%);
  pointer-events:none;
}
.eyebrow { color:var(--amber); font-weight:800; font-size:11px; text-transform:uppercase; letter-spacing:.13em; margin-bottom:8px; }
.page-hero h1 { margin:0 0 7px; font-size:28px; line-height:1.08; letter-spacing:-.04em; }
.page-hero p { margin:0; color:var(--txt-dim); max-width:780px; }
.hero-actions { display:flex; gap:10px; align-items:center; justify-content:flex-end; flex-wrap:wrap; position:relative; z-index:1; }
.hero-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:13px; }
.hero-meta span { display:inline-flex; gap:5px; align-items:center; padding:5px 9px; border:1px solid var(--line-soft); border-radius:20px; background:rgba(255,255,255,.025); color:var(--txt-dim); font-size:12px; }

.card, .form-card, .table, .empty { border-radius: var(--radius-lg); }
.card, .form-card, .stat-card, .table, .resource-card, .site-card, .quick-action-card, .event-card { box-shadow: var(--shadow-sm); }
.card:hover, .form-card:hover { border-color:#313947; }
.card-head.soft-head, .soft-head { background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.006)); }
.panel-block { margin-top: 24px; }
.panel-block > .block-head { margin-bottom: 13px; }
.panel-block > .block-head h2 { font-size:18px; }
.grid-2 { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; }
.grid-3 { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; }
.cards-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:16px; }
.card-list { display:flex; flex-direction:column; gap:12px; }
.table-wrap { overflow:auto; border-radius:var(--radius-lg); }
.table-wrap .table { min-width:760px; }
.table { overflow:hidden; }
.table thead th { background:linear-gradient(180deg, var(--bg-2), rgba(18,21,27,.92)); }
.table tbody td { transition:background .12s; }
.compact-table td, .compact-table th { padding:10px 13px; }

.dashboard-hero { margin-bottom: 18px; }
.dashboard-actions { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:12px; margin-bottom:22px; }
.dashboard-action {
  display:flex; flex-direction:column; gap:4px; padding:15px 16px;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--panel);
  color:var(--txt); box-shadow:var(--shadow-sm); transition:transform .12s,border-color .12s,background .12s;
}
.dashboard-action:hover { transform:translateY(-1px); border-color:rgba(240,180,41,.45); color:var(--txt); background:linear-gradient(180deg,var(--panel-2),var(--panel)); }
.dashboard-action b { font-size:14px; }
.dashboard-action span { font-size:12px; color:var(--muted); line-height:1.45; }

.stat-card { min-height:112px; }
.stat-card .stat-val, .stat-num { letter-spacing:-.03em; }
.form-card { gap:17px; }
.form-card.slim-card { max-width: 980px; }
.form-card .form-card { background:var(--bg-2); }

.list-toolbar.card { border-radius:var(--radius-lg); }
.resource-card { min-height:unset; }
.resource-icon { box-shadow:inset 0 0 0 1px rgba(240,180,41,.12); }
.event-card { border-radius:var(--radius-lg); }
.event-card.unread { border-color:rgba(240,180,41,.35); background:linear-gradient(180deg, rgba(240,180,41,.045), var(--panel)); }
.empty { min-height:108px; display:grid; place-items:center; }

/* health/security start cards */
.action-start-wrap { margin-top:0; }
.action-start-card {
  display:grid; place-items:center; text-align:center; gap:12px;
  min-height:300px; padding:34px;
  border:1px dashed rgba(240,180,41,.28); border-radius:var(--radius-lg);
  background:linear-gradient(180deg, rgba(240,180,41,.055), rgba(255,255,255,.012));
}
.action-start-card h2 { font-size:24px; margin:0; }
.action-start-card p { max-width:680px; margin:0; }
.async-loader { align-items:center; gap:12px; margin-top:4px; }
.loader-ring { width:34px; height:34px; border-radius:50%; border:3px solid var(--line); border-top-color:var(--amber); animation:gpanelSpin .8s linear infinite; }
@keyframes gpanelSpin { to { transform:rotate(360deg); } }

/* file manager alignment */
.fm-shell .page-hero { margin-bottom:16px; }
.fm-main, .fm-side { border-radius:var(--radius-lg); }

@media (max-width: 980px) {
  .content { padding:20px; }
  .page-hero, .content > .block-head:first-child { padding:20px; }
  .page-hero { flex-direction:column; }
  .hero-actions { justify-content:flex-start; }
  .grid-2, .grid-3 { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .page-hero h1, .content > .block-head:first-child h2 { font-size:22px !important; }
  .dashboard-actions, .cards-grid { grid-template-columns:1fr; }
}

.old-head-hidden{display:none!important}
