/* SOLIDEXSOFT Panel: arayüz stilleri.
   Renkler :root üzerinde tanımlıdır. Tema seçimi <html data-theme="light|dark"> ile yapılır;
   seçim yoksa işletim sisteminin tercihi (prefers-color-scheme) kullanılır. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Renkler: açık tema ---------- */
:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #eef1f6;
  --text: #121826;
  --text-2: #374151;
  --muted: #6b7385;
  --border: #e3e7ee;
  --border-strong: #d3d9e3;
  --primary: #2563eb;
  --primary-hover: #1d4fd8;
  --primary-soft: #e8effd;
  --on-primary: #ffffff;
  --focus: rgba(37, 99, 235, .22);
  --scroll: rgba(15, 23, 42, .22);
  --scroll-hover: rgba(15, 23, 42, .36);

  --header-bg: rgba(255, 255, 255, .86);

  --ok: #15803d;      --ok-bg: #e7f6ec;
  --warn: #a16207;    --warn-bg: #fdf4dc;
  --err: #c2312f;     --err-bg: #fdecec;
  --info: #2563eb;    --info-bg: #e8effd;

  --c-blue: #2563eb;   --c-blue-bg: #e8effd;
  --c-green: #16a34a;  --c-green-bg: #e5f6eb;
  --c-orange: #ea7a0c; --c-orange-bg: #fdf0e1;
  --c-purple: #7c3aed; --c-purple-bg: #f1eafd;
  --c-teal: #0d9488;   --c-teal-bg: #e0f4f2;
  --c-red: #dc2626;    --c-red-bg: #fdeaea;
  --c-slate: #475569;  --c-slate-bg: #edf0f4;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
}

/* Menü renkleri temaya göre değişir; aşağıdakiler açık tema içindir. */
:root {
  --sb-bg: #ffffff;
  --sb-bg-2: #fbfcfe;
  --sb-border: #e3e7ee;
  --sb-text: #4a5466;
  --sb-icon: #8a94a6;
  --sb-icon-hover: #4a5466;
  --sb-head: #9aa3b2;
  --sb-hover: #f2f5f9;
  --sb-active-bg: #eaf1fe;
  --sb-active: #1d4fd8;
  --sb-accent: #2563eb;
  --sb-pill: #eef1f6;
  --sb-strong: #111827;
  --sb-scroll: rgba(15, 23, 42, .14);
  --sb-scroll-hover: rgba(15, 23, 42, .26);
  --sb-card: #f7f8fb;
  --sb-card-hover: #eff2f7;
  --sidebar-w: 288px;
  --header-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

/* ---------- Renkler: koyu tema (seçilmişse veya sistem koyuysa) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1019;
  --surface: #121926;
  --surface-2: #161e2d;
  --surface-3: #1c2536;
  --text: #e7ebf2;
  --text-2: #c3cad6;
  --muted: #8a95a8;
  --border: #222c3d;
  --border-strong: #2d3a4f;
  --primary: #4d8cff;
  --primary-hover: #6b9fff;
  --primary-soft: #182641;
  --on-primary: #ffffff;
  --focus: rgba(77, 140, 255, .3);
  --scroll: rgba(255, 255, 255, .14);
  --scroll-hover: rgba(255, 255, 255, .26);
  --header-bg: rgba(18, 25, 38, .86);
  --ok: #4ade80;   --ok-bg: #12291c;
  --warn: #fbbf24; --warn-bg: #2d2410;
  --err: #f87171;  --err-bg: #331a1c;
  --info: #6b9fff; --info-bg: #182641;
  --c-blue: #6b9fff;   --c-blue-bg: #182641;
  --c-green: #4ade80;  --c-green-bg: #12291c;
  --c-orange: #fb9d47; --c-orange-bg: #2d1f10;
  --c-purple: #a78bfa; --c-purple-bg: #231b3b;
  --c-teal: #2dd4bf;   --c-teal-bg: #0f2a28;
  --c-red: #f87171;    --c-red-bg: #331a1c;
  --c-slate: #94a3b8;  --c-slate-bg: #1c2536;
  --shadow-sm: none;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .5);
  --sb-bg: #0d1422;
  --sb-bg-2: #0a0f19;
  --sb-border: rgba(255, 255, 255, .06);
  --sb-text: #aab4c5;
  --sb-icon: #7b879c;
  --sb-icon-hover: #c9d3e3;
  --sb-head: #5d6a80;
  --sb-hover: rgba(255, 255, 255, .05);
  --sb-active-bg: rgba(77, 140, 255, .15);
  --sb-active: #ffffff;
  --sb-accent: #5b9bff;
  --sb-pill: rgba(255, 255, 255, .07);
  --sb-strong: #ffffff;
  --sb-scroll: rgba(255, 255, 255, .1);
  --sb-scroll-hover: rgba(255, 255, 255, .2);
  --sb-card: rgba(255, 255, 255, .035);
  --sb-card-hover: rgba(255, 255, 255, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1019;
    --surface: #121926;
    --surface-2: #161e2d;
    --surface-3: #1c2536;
    --text: #e7ebf2;
    --text-2: #c3cad6;
    --muted: #8a95a8;
    --border: #222c3d;
    --border-strong: #2d3a4f;
    --primary: #4d8cff;
    --primary-hover: #6b9fff;
    --primary-soft: #182641;
    --on-primary: #ffffff;
    --focus: rgba(77, 140, 255, .3);
    --scroll: rgba(255, 255, 255, .14);
    --scroll-hover: rgba(255, 255, 255, .26);
    --header-bg: rgba(18, 25, 38, .86);
    --ok: #4ade80;   --ok-bg: #12291c;
    --warn: #fbbf24; --warn-bg: #2d2410;
    --err: #f87171;  --err-bg: #331a1c;
    --info: #6b9fff; --info-bg: #182641;
    --c-blue: #6b9fff;   --c-blue-bg: #182641;
    --c-green: #4ade80;  --c-green-bg: #12291c;
    --c-orange: #fb9d47; --c-orange-bg: #2d1f10;
    --c-purple: #a78bfa; --c-purple-bg: #231b3b;
    --c-teal: #2dd4bf;   --c-teal-bg: #0f2a28;
    --c-red: #f87171;    --c-red-bg: #331a1c;
    --c-slate: #94a3b8;  --c-slate-bg: #1c2536;
    --shadow-sm: none;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .5);
    --sb-bg: #0d1422;
    --sb-bg-2: #0a0f19;
    --sb-border: rgba(255, 255, 255, .06);
    --sb-text: #aab4c5;
    --sb-icon: #7b879c;
    --sb-icon-hover: #c9d3e3;
    --sb-head: #5d6a80;
    --sb-hover: rgba(255, 255, 255, .05);
    --sb-active-bg: rgba(77, 140, 255, .15);
    --sb-active: #ffffff;
    --sb-accent: #5b9bff;
    --sb-pill: rgba(255, 255, 255, .07);
    --sb-strong: #ffffff;
    --sb-scroll: rgba(255, 255, 255, .1);
    --sb-scroll-hover: rgba(255, 255, 255, .2);
    --sb-card: rgba(255, 255, 255, .035);
    --sb-card-hover: rgba(255, 255, 255, .06);
  }
}

/* ---------- Temel ---------- */

* { box-sizing: border-box; }
[hidden], .menu-toggle { display: none !important; }
html, body { margin: 0; }
html { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); background-clip: padding-box; border: 3px solid transparent; }
::selection { background: var(--primary-soft); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
h2 { font-size: .98rem; font-weight: 650; margin: 0; letter-spacing: -.01em; }
h3 { font-size: .92rem; font-weight: 650; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
code, .mono { font-family: var(--mono); font-size: .88em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.icon { width: 18px; height: 18px; flex: none; vertical-align: -4px; }

/* ---------- Uygulama iskeleti ---------- */

.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--sb-bg) 0%, var(--sb-bg-2) 100%);
  border-right: 1px solid var(--sb-border);
  color: var(--sb-text);
  display: flex;
  flex-direction: column;
  z-index: 30;
  transition: width .18s ease, transform .2s ease;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  padding: 0 20px;
  color: var(--sb-strong);
  border-bottom: 1px solid var(--sb-border);
  flex: none;
  overflow: hidden;
  white-space: nowrap;
}
.sidebar-brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: .95rem; font-weight: 750; letter-spacing: .03em; }
.brand-text small { font-size: .68rem; color: var(--sb-head); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(140deg, #5b9bff 0%, #2563eb 55%, #1e40af 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  flex: none;
}

.sidebar nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 12px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--sb-scroll) transparent;
}
.sidebar nav::-webkit-scrollbar { width: 6px; }
.sidebar nav::-webkit-scrollbar-thumb { background: var(--sb-scroll); border: 0; }
.sidebar nav::-webkit-scrollbar-thumb:hover { background: var(--sb-scroll-hover); border: 0; }

.nav-section {
  padding: 18px 12px 6px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sb-head);
  white-space: nowrap;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 12px;
  margin: 1px 0;
  border-radius: var(--radius-sm);
  color: var(--sb-text);
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-link .icon { color: var(--sb-icon); transition: color .12s; }
.nav-link:hover { background: var(--sb-hover); color: var(--sb-strong); text-decoration: none; }
.nav-link:hover .icon { color: var(--sb-icon-hover); }
.nav-link.active { background: var(--sb-active-bg); color: var(--sb-active); font-weight: 600; }
.nav-link.active .icon { color: var(--sb-accent); }
.nav-link.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sb-accent);
}
.nav-link .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-link .count {
  min-width: 22px;
  text-align: center;
  font-size: .7rem;
  font-weight: 600;
  background: var(--sb-pill);
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--sb-text);
}
.nav-link.active .count { background: var(--sb-accent); color: #fff; }
.nav-link .soon {
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sb-head);
  background: var(--sb-pill);
  padding: 2px 6px;
  border-radius: 5px;
}
.nav-link.is-soon { color: var(--sb-icon); }
.nav-link .ext { width: 14px; height: 14px; color: var(--sb-head); }

.sidebar-foot { flex: none; padding: 12px; border-top: 1px solid var(--sb-border); }
.sidebar-status {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--sb-card);
  border: 1px solid var(--sb-border);
  color: var(--sb-text);
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-status:hover { background: var(--sb-card-hover); text-decoration: none; }
.sidebar-status .txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sidebar-status strong { color: var(--sb-strong); font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.sidebar-status small { font-size: .72rem; color: var(--sb-head); }
.sidebar-status small.bad { color: var(--err); }

/* Dar menü (sadece simgeler); sadece geniş ekranlarda geçerli */
@media (min-width: 961px) {
  :root[data-sidebar="dar"] { --sidebar-w: 76px; }
  :root[data-sidebar="dar"] .brand-text,
  :root[data-sidebar="dar"] .nav-link .label,
  :root[data-sidebar="dar"] .nav-link .count,
  :root[data-sidebar="dar"] .nav-link .soon,
  :root[data-sidebar="dar"] .nav-link .ext,
  :root[data-sidebar="dar"] .sidebar-status .txt { display: none; }
  :root[data-sidebar="dar"] .sidebar-brand { padding: 0; justify-content: center; }
  :root[data-sidebar="dar"] .nav-section { font-size: 0; padding: 10px 0 4px; }
  :root[data-sidebar="dar"] .nav-section::after { content: ""; display: block; height: 1px; margin: 0 14px; background: var(--sb-border); }
  :root[data-sidebar="dar"] .nav-link { justify-content: center; padding: 0; }
  :root[data-sidebar="dar"] .sidebar-status { justify-content: center; padding: 12px 0; }
}

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; transition: margin-left .18s ease; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--header-h);
  padding: 0 28px;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  cursor: pointer;
  flex: none;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.menu-mobile { display: none; }
.icon-btn > span { display: contents; }
.when-narrow, :root[data-sidebar="dar"] .when-wide { display: none !important; }
:root[data-sidebar="dar"] .when-narrow { display: contents !important; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); min-width: 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); text-decoration: none; }
.crumbs .icon { width: 14px; height: 14px; opacity: .6; }
.crumbs span { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.vsep { width: 1px; height: 24px; background: var(--border); }

.theme-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.theme-switch button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.theme-switch button .icon { width: 16px; height: 16px; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 500;
}
a.chip:hover { border-color: var(--border-strong); text-decoration: none; }
.chip .dot { margin: 0; }

.user-menu { position: relative; }
.user-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { background: var(--surface-3); }
.user-menu summary > .icon { width: 15px; height: 15px; color: var(--muted); }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(140deg, #5b9bff, #2563eb);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}
.uname { display: flex; flex-direction: column; line-height: 1.2; }
.uname strong { font-size: .85rem; font-weight: 600; }
.uname small { font-size: .72rem; color: var(--muted); }
.user-menu .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
}
.menu-head { padding: 10px 12px 8px; }
.menu-head strong { display: block; font-size: .9rem; }
.menu-head small { color: var(--muted); font-size: .78rem; }
.user-menu .menu a, .user-menu .menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: .875rem;
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.user-menu .menu .icon { width: 16px; height: 16px; color: var(--muted); }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.user-menu .menu button.danger, .user-menu .menu button.danger .icon { color: var(--err); }
.user-menu .menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }

.content { flex: 1; padding: 28px; width: 100%; max-width: 1680px; }

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
}
.app-footer nav { display: flex; gap: 18px; }
.app-footer a { color: var(--muted); }
.app-footer a:hover { color: var(--text); text-decoration: none; }
.app-footer strong { color: var(--text-2); font-weight: 600; }

.scrim { display: none; }

@media (max-width: 1100px) {
  .uname, .chip.host .host-name { display: none; }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .menu-desktop { display: none; }
  .menu-mobile { display: inline-grid; }
  .menu-toggle:checked ~ .app .sidebar { transform: none; }
  .menu-toggle:checked ~ .app .scrim { display: block; position: fixed; inset: 0; background: rgba(5, 10, 20, .5); z-index: 25; }
  .chip.host, .vsep { display: none; }
  .crumbs a, .crumbs .icon { display: none; }
  .crumbs span { font-size: .95rem; }
  .topbar { gap: 8px; }
  .content { padding: 18px 16px; }
  .topbar, .app-footer { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Sayfa başlığı ---------- */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-head .title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Kartlar ---------- */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 56px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.card-head h2 { display: flex; align-items: center; gap: 10px; }
.card-head h2 .icon { color: var(--muted); width: 17px; height: 17px; }
.card-body { padding: 20px; }
.card-body > :last-child { margin-bottom: 0; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-bottom: 20px; }
.grid-2 > .card { margin-bottom: 0; }
@media (max-width: 1250px) { .grid-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- İstatistik kutuları ---------- */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1150px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: border-color .12s, transform .12s;
}
a.stat:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-1px); }
.stat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none; }
.stat-icon .icon { width: 22px; height: 22px; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.stat-label { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }

/* ---------- Simge ızgarası (kategori kartları) ---------- */

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; padding: 16px; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 8px 14px;
  border-radius: var(--radius);
  color: var(--text-2);
  text-align: center;
  font-size: .85rem;
  font-weight: 550;
  border: 1px solid transparent;
  transition: background .12s, border-color .12s;
}
.tile:hover { background: var(--surface-2); border-color: var(--border); text-decoration: none; color: var(--text); }
.tile-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; transition: transform .15s; }
.tile:hover .tile-icon { transform: scale(1.05); }
.tile-icon .icon { width: 24px; height: 24px; }
.tile.is-soon { color: var(--muted); }
.tile.is-soon .tile-icon { filter: grayscale(.75); opacity: .6; }
.tile .soon-tag { position: absolute; top: 8px; right: 8px; font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-3); padding: 2px 6px; border-radius: 5px; }

.c-blue   { background: var(--c-blue-bg);   color: var(--c-blue); }
.c-green  { background: var(--c-green-bg);  color: var(--c-green); }
.c-orange { background: var(--c-orange-bg); color: var(--c-orange); }
.c-purple { background: var(--c-purple-bg); color: var(--c-purple); }
.c-teal   { background: var(--c-teal-bg);   color: var(--c-teal); }
.c-red    { background: var(--c-red-bg);    color: var(--c-red); }
.c-slate  { background: var(--c-slate-bg);  color: var(--c-slate); }

/* ---------- Kaynak çubukları ---------- */

.meter { margin-bottom: 16px; }
.meter:last-child { margin-bottom: 0; }
.meter-head { display: flex; justify-content: space-between; gap: 8px; font-size: .84rem; margin-bottom: 7px; }
.meter-head span:first-child { font-weight: 600; }
.meter-head span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), #5b9bff); }
.bar > i.uyari { background: var(--warn); }
.bar > i.kritik { background: var(--err); }
.w-0 { width: 0; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; }
.w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; }
.w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; }
.w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }

/* ---------- Listeler ---------- */

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .sub { display: block; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .tile-icon { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.list .tile-icon .icon { width: 18px; height: 18px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); margin-right: 4px; }
.dot.ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.dot.err { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.dot.off { background: var(--border-strong); }

/* ---------- Tablolar ---------- */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
td { color: var(--text-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .1s; }
tbody tr:hover td { background: var(--surface-2); }
td.cell-actions { text-align: right; white-space: nowrap; width: 1%; }
td.cell-actions .actions { justify-content: flex-end; flex-wrap: nowrap; gap: 4px; }
.domain-cell { display: flex; align-items: center; gap: 12px; }
.domain-cell .fav { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none; }
.domain-cell .fav .icon { width: 17px; height: 17px; }
.domain-cell a { font-weight: 600; color: var(--text); }
.domain-cell small { display: block; color: var(--muted); font-size: .76rem; }

/* ---------- Rozetler ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--muted);
  white-space: nowrap;
}
.badge .icon { width: 13px; height: 13px; }
.badge.ok, .badge.aktif, .badge.normal { background: var(--ok-bg); color: var(--ok); }
.badge.warn, .badge.uyari { background: var(--warn-bg); color: var(--warn); }
.badge.err, .badge.kritik { background: var(--err-bg); color: var(--err); }
.badge.info { background: var(--info-bg); color: var(--info); }

/* ---------- Düğmeler ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn .icon { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(37, 99, 235, .3); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn-danger:hover { background: var(--err); filter: brightness(.94); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--primary); box-shadow: none; }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-ghost.danger { color: var(--err); }
.btn-ghost.danger:hover { background: var(--err-bg); }
.btn-sm { height: 32px; padding: 0 11px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; margin: 0; }

/* ---------- Formlar ---------- */

.field { display: block; margin-bottom: 16px; }
.field > span:first-child { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--text-2); }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: 6px; }
input, select {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--focus); }
input.code-input { height: 52px; font-size: 1.5rem; letter-spacing: .45em; text-align: center; font-family: var(--mono); }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { margin-bottom: 0; }
.form-row .grow { flex: 1 1 260px; }
.form-row > .btn { height: 40px; }
.prefixed { display: flex; }
.prefixed .prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--mono);
  font-size: .86rem;
  color: var(--muted);
}
.prefixed input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- Bildirimler ---------- */

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid transparent; font-size: .9rem; }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 20%, transparent); }
.alert-error { background: var(--err-bg); color: var(--err); border-color: color-mix(in srgb, var(--err) 20%, transparent); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 18%, transparent); }
.alert a { color: inherit; text-decoration: underline; }

.secret-box { border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-bg); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.secret-box h3 { color: var(--ok); display: flex; align-items: center; gap: 8px; }
.secret-box p { color: var(--ok); }
.secret-box .kv dt { color: var(--text-2); }
.secret-box .kv dd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.secret-box code { background: var(--surface); color: var(--text); padding: 4px 9px; border-radius: 6px; user-select: all; font-size: .92rem; border: 1px solid var(--border); }
.copy { height: 28px !important; padding: 0 9px !important; font-size: .76rem !important; }

.empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--muted); opacity: .45; margin-bottom: 10px; }
.empty strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 4px; }

.steps { margin: 0; padding-left: 1.2rem; }
.steps li { margin-bottom: 8px; }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid var(--border); }

.coming { text-align: center; padding: 56px 24px; }
.coming .tile-icon { margin: 0 auto 18px; width: 76px; height: 76px; border-radius: 22px; }
.coming .tile-icon .icon { width: 36px; height: 36px; }
.coming h1 { margin-bottom: 12px; }
.coming p { max-width: 580px; margin: 0 auto 12px; color: var(--muted); }

/* ---------- Giriş ekranları ---------- */

.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(1000px 520px at 50% -12%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 65%),
    var(--bg);
}
.auth-brand { display: flex; align-items: center; gap: 12px; color: var(--text); margin-bottom: 24px; }
.auth-brand .brand-text small { color: var(--muted); }
.auth-box { width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 32px; }
.auth-box.wide { max-width: 530px; }
.auth-box h1 { font-size: 1.3rem; margin-bottom: 6px; }
.auth-box .lead { color: var(--muted); margin-bottom: 22px; }
.auth-foot { margin-top: 20px; color: var(--muted); font-size: .78rem; display: flex; align-items: center; gap: 14px; }
.auth .theme-switch { background: var(--surface); }
.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr img { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--border); }
details.help summary { cursor: pointer; color: var(--primary); font-size: .88rem; }
details.help[open] summary { margin-bottom: 8px; }

/* ---------- Form ekleri ---------- */
input[type="checkbox"], input[type="radio"] {
  display: inline-block; width: 16px; height: 16px; padding: 0; margin: 0;
  accent-color: var(--primary); box-shadow: none; flex: none; cursor: pointer; vertical-align: middle;
}
input[type="file"] { height: auto; padding: 8px; font-size: .85rem; }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: 10px; padding: 5px 10px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); color: var(--text);
}
.check { display: flex; align-items: center; gap: 9px; font-size: .85rem; margin-bottom: 14px; cursor: pointer; color: var(--text-2); }
.field > span:first-child .hint { display: inline; margin: 0 0 0 6px; }
kbd {
  font-family: var(--mono); font-size: .74rem; padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--surface); color: var(--text-2);
}
.grow { flex: 1; min-width: 0; }
.text-err { color: var(--err); }

.choices { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .12s, background .12s;
}
.choice:hover { border-color: var(--border-strong); background: var(--surface-2); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice input { margin-top: 3px; }
.choice strong { display: block; font-size: .92rem; }
.choice small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }

/* ---------- Açılır kutular (details) ---------- */
.pop { position: relative; display: inline-block; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop[open] > summary { background: var(--surface-3); }
.pop[open] > summary.btn-primary { background: var(--primary-hover); }
.pop-body {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 280px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px; white-space: normal;
}
.pop-wide .pop-body { width: 360px; }
.pop-body .field { margin-bottom: 12px; }
.pop-body .hint { margin: 10px 0 0; }
.pop-section + .pop-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.btn-block .icon, .pop-body .btn .icon { width: 15px; height: 15px; }

/* ---------- Dosya yöneticisi ---------- */
.fm-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
  border-radius: var(--radius) var(--radius) 0 0;
}
.fm-path {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-width: 0; font-family: var(--mono); font-size: .86rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 10px; flex: 1 1 320px;
}
.fm-path a { color: var(--text-2); padding: 2px 4px; border-radius: 5px; }
.fm-path a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.fm-path a:last-child { color: var(--text); font-weight: 650; }
.fm-path .sep { color: var(--muted); opacity: .6; }
.fm-home { display: inline-flex; align-items: center; gap: 6px; }
.fm-home .icon { width: 15px; height: 15px; color: var(--muted); }
.fm-table th, .fm-table td { padding-top: 8px; padding-bottom: 8px; }
.fm-table th.cb, .fm-table td.cb { width: 1%; padding-right: 4px; }
.fm-table td.right, .fm-table th.right { text-align: right; }
.fm-table code { color: var(--muted); }
.fm-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fm-name .fav { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; flex: none; }
.fm-name .fav .icon { width: 16px; height: 16px; }
.fm-name a, .fm-name .nm { font-weight: 550; color: var(--text); word-break: break-all; }
.fm-name .badge { flex: none; }
.fm-table tbody tr:has(input[name="sec"]:checked) td { background: var(--primary-soft); }
.fm-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-zip { width: 180px; height: 32px; font-size: .82rem; }
.fm-note { display: flex; gap: 8px; align-items: flex-start; }
.fm-note .icon { width: 15px; height: 15px; margin-top: 2px; }
.upload-progress { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.upload-progress progress { width: 100%; height: 8px; accent-color: var(--primary); }
.upload-error { color: var(--err); margin-bottom: 10px; }
.card-foot.actions .grow { flex: 1; }

.editor .card-head { gap: 12px; flex-wrap: wrap; }
.code-editor {
  display: block; width: 100%; min-height: 62vh; resize: vertical; margin: 0; border: 0; outline: none;
  padding: 16px 20px; font-family: var(--mono); font-size: .84rem; line-height: 1.6; tab-size: 4;
  color: var(--text); background: var(--surface-2); white-space: pre; overflow: auto;
}
.code-editor:focus { background: var(--surface); box-shadow: inset 0 0 0 2px var(--focus); }

@media (max-width: 700px) {
  .pop-body, .pop-wide .pop-body { position: fixed; left: 16px; right: 16px; top: auto; width: auto; }
  .fm-table th:nth-child(4), .fm-table td:nth-child(4), .fm-table th:nth-child(5), .fm-table td:nth-child(5) { display: none; }
  .fm-zip { width: 100%; }
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.seg { display: inline-flex; background: var(--surface-3); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.seg a { padding: 6px 12px; border-radius: 6px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.seg a:hover { color: var(--text); text-decoration: none; }
.seg a.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.day-bar { display: flex; align-items: center; gap: 10px; }
.day-bar .bar { flex: 1; min-width: 80px; }
.day-bar span { min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.break { word-break: break-all; }
.suffixed input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.suffixed .prefix { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; border-right: 1px solid var(--border-strong); }
.card-sep { border-top: 1px solid var(--border); }
.badge.askida { background: var(--warn-bg); color: var(--warn); }
.card-note { padding: 12px 20px 0; margin: 0; }

/* SSL: sertifikanın kapsadığı adlar */
.names { display: flex; flex-wrap: wrap; gap: 4px; }

/* Posta kutuları: tablo içinde kullanım çubuğu */
.usage-cell { min-width: 180px; }
.usage-cell .meter-head { margin-bottom: 5px; }
.prefixed select.prefix { border: 0; cursor: pointer; font: inherit; flex: 0 1 auto; width: auto; max-width: 60%; }
.prefixed input { flex: 1 1 auto; min-width: 0; }

/* Çok satırlı form alanı (yönlendirme hedefleri, otomatik yanıt metni) */
.field textarea {
  display: block; width: 100%; min-height: 96px; padding: 10px 12px; resize: vertical;
  font: inherit; line-height: 1.5; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--focus); }
.field textarea::placeholder { color: var(--muted); opacity: .8; }
.targets { display: flex; flex-wrap: wrap; gap: 4px; }

/* E-posta DNS kayıtları */
.dns-table td { vertical-align: top; }
.dns-value { display: grid; gap: 4px; min-width: 300px; max-width: 760px; }
.dns-copy { display: flex; gap: 8px; align-items: flex-start; }
.dns-copy code { word-break: break-all; flex: 1; }
.dns-current { color: var(--warn); }
