/* VoidPanel — UI kit tokenlari (mor→mavi gradyan, mint basari, 2px kutu kenarliklari) */
:root {
  --bg: #0f0e14;
  --side: #121118;
  --card: #16151d;
  --card-2: #1c1b24;
  --line: #23222c;
  --line-soft: #1e1d26;
  --box: #1c1b24;
  --box-line: #2d2c37;
  --box-hover: #3a3946;
  --input-line: var(--box-line);
  --hover-bg: #262531;
  --text: #f4f4f6;
  --muted: #9a99a6;
  --dim: #787783;
  --faint: #5d5c68;
  --accent: #8b5cf6;
  --accent-2: #38bdf8;
  --accent-soft: #a5a3ff;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --ok: #4ade9a;
  --ok-bg: #163428;
  --ok-line: #3fcf8e;
  --warn: #fbbf24;
  --warn-bg: #2d2410;
  --err: #f87171;
  --err-bg: #2a1719;
  --info: #38bdf8;
  --info-bg: #132433;
  --term: #0b0a10;
  --radius: 14px;
  --radius-lg: 20px;
  --glow: 0 0 0 4px rgba(124,108,246,.15), 0 0 18px rgba(56,189,248,.25);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --f-head: 'Space Grotesk', system-ui, sans-serif;
  --f-body: Inter, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
html { color-scheme: dark; scrollbar-color: var(--box-hover) transparent; }
* { scrollbar-width: thin; scrollbar-color: var(--box-hover) transparent; }
body { font-family: var(--f-body); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-soft); }
a:hover { color: #cfcdff; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--glow); }
code { font-family: var(--f-mono); font-size: 0.92em; background: var(--box); padding: 1px 6px; border-radius: 6px; }
::selection { background: rgba(139,92,246,.35); }

.mono { font-family: var(--f-mono); }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-4 { display: flex; flex-direction: column; gap: 4px; }
p { margin: 0; }

/* ---- marka ---- */
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--accent-soft); }
.brand svg, .brand .brand-ico { filter: drop-shadow(0 0 10px rgba(139,92,246,.45)); }
.brand span { font-family: var(--f-head); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.brand-lg { gap: 12px; }
.brand-lg span { font-size: 26px; }
.brand-ico { flex: none; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 6px 18px -6px rgba(139,92,246,.75); }
.brand-lg .brand-ico { border-radius: 13px; }
.ns { display: none; }

/* arka planda yavas kayan mor-mavi isik */
body { background: transparent; }
body::before { content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background: radial-gradient(40vmax 30vmax at 15% 8%, rgba(139,92,246,.17), transparent 60%),
              radial-gradient(34vmax 28vmax at 92% 30%, rgba(56,189,248,.11), transparent 60%),
              radial-gradient(30vmax 24vmax at 50% 100%, rgba(74,222,154,.05), transparent 60%);
  animation: aurora 26s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate3d(4vmax, 3vmax, 0) rotate(7deg); } }

/* ---- giris ---- */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px 16px;
  background: radial-gradient(600px 360px at 50% 0%, rgba(139,92,246,.12), transparent 70%), var(--bg); }
.login-card { width: 100%; max-width: 420px; padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 22px; }
.steps { display: flex; gap: 8px; }
.steps span { flex: 1 1 0; height: 6px; border-radius: 99px; background: var(--box-line); position: relative; overflow: hidden; }
.steps span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.steps span.on::after { transform: scaleX(1); }
.h-login { margin: 0; font-family: var(--f-head); font-size: 24px; font-weight: 600; }
.login-note { max-width: 420px; text-align: center; font-size: 12px; color: var(--dim); line-height: 1.7; }
.form-err { color: var(--err); font-size: 13px; font-weight: 600; animation: fadeDown .25s ease; }
.form-err:empty { display: none; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-4px); } }

/* OTP: 6 kutu, dolunca pop, dogrulaninca mint dalga */
.otp { display: flex; gap: 10px; }
.otp input { flex: 1 1 0; min-width: 0; height: 58px; padding: 0; text-align: center; font: 700 22px var(--f-body); color: var(--text);
  background: var(--box); border: 2px solid var(--box-line); border-radius: var(--radius); outline: none; caret-color: transparent;
  transition: border-color .2s, background .35s, color .35s, box-shadow .25s; }
.otp input:hover { border-color: var(--box-hover); }
.otp input:focus { border-color: transparent; box-shadow: var(--glow);
  background: linear-gradient(var(--box), var(--box)) padding-box, var(--grad) border-box; }
.otp input.filled { animation: pop .22s ease; }
.otp.verified input { animation: mint .5s var(--spring) forwards; animation-delay: calc(var(--i) * 70ms); }
.otp.error { animation: shake .4s; }
.otp.error input { border-color: var(--err); background: var(--err-bg); }
.otp.busy input { opacity: .6; }
@keyframes pop { 50% { transform: scale(1.08); } }
@keyframes mint { 40% { transform: translateY(-6px) scale(1.05); }
  100% { transform: none; background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); box-shadow: 0 0 14px rgba(74,222,154,.18); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---- form ---- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span:first-child, .field > .lbl-t { font-size: 13px; font-weight: 500; color: var(--muted); }
.input, .field input:not([type=checkbox]), .field select, .field textarea, .ifield {
  min-height: 46px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--box-line);
  background: var(--box); color: var(--text); width: 100%; outline: none; font-weight: 500;
  transition: border-color .2s, background .3s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder, .ifield input::placeholder { color: var(--faint); font-weight: 500; }
.field input:not([type=checkbox]):hover, .field select:hover, .field textarea:hover, .ifield:hover { border-color: var(--box-hover); }
.field input:not([type=checkbox]):focus, .field textarea:focus, .ifield:focus-within, .suffix-input:focus-within {
  border-color: transparent; box-shadow: var(--glow);
  background: linear-gradient(var(--box), var(--box)) padding-box, var(--grad) border-box;
}
.field textarea { padding: 10px 14px; min-height: 92px; resize: vertical; font-family: var(--f-mono); font-size: 13px; line-height: 1.55; }
.field input[type=search] { -webkit-appearance: none; appearance: none; }
/* select: kendi ok isareti */
.field select, .logs-box select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8996' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px, var(--box); }
.field select:focus, .logs-box select:focus { border-color: transparent; box-shadow: var(--glow);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5a3ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px,
    linear-gradient(var(--box), var(--box)) padding-box, var(--grad) border-box; }
select option { background: #1a1922; color: var(--text); }
/* gecersiz alan (JS ekler) */
.field.invalid input, .field.invalid select, .ifield.invalid { border-color: var(--err) !important; background: var(--err-bg) !important; box-shadow: none !important; animation: shake .4s; }

/* ikonlu alan (giris) */
.ifield { display: flex; align-items: center; gap: 0; padding: 0; min-height: 54px; border-radius: var(--radius); }
.ifield > svg { width: 20px; height: 20px; margin-left: 16px; flex: none; color: var(--faint); transition: color .25s; }
.ifield:focus-within > svg { color: var(--accent-soft); }
.ifield input { flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 14px 0 12px; border: 0 !important; background: none !important; box-shadow: none !important; outline: none; font: 600 16px var(--f-body); color: var(--text); }
.ifield.invalid > svg { color: var(--err); }
.eye { width: 40px; height: 40px; margin-right: 6px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--faint); cursor: pointer; flex: none; transition: color .2s, background .2s; }
.eye:hover { color: var(--text); background: var(--hover-bg); }
.eye svg { width: 20px; height: 20px; }
.eye .slash { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s; }
.eye.hidden .slash { stroke-dashoffset: 0; }

.suffix-input { display: flex; align-items: center; min-height: 46px; border-radius: 12px; border: 2px solid var(--box-line); background: var(--box); overflow: hidden; transition: border-color .2s, box-shadow .25s; }
.suffix-input:hover { border-color: var(--box-hover); }
.suffix-input input { flex: 1 1 auto; min-width: 0; min-height: 42px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; font-family: var(--f-mono); font-size: 13px; outline: none; }
.suffix-input span { align-self: stretch; display: flex; align-items: center; padding: 0 12px; border-left: 1.5px solid var(--box-line); color: var(--muted); font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }
.hint { font-size: 12px; color: var(--dim); }

/* checkbox: cizilerek gelen tik */
.check { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text) !important; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--box-line); background: var(--box); display: grid; place-items: center; flex: none;
  transition: background .25s, border-color .25s, transform .3s var(--spring), box-shadow .25s; }
.check:hover .box { border-color: var(--box-hover); }
.check:active .box { transform: scale(.88); }
.check .box svg { width: 14px; height: 14px; }
.check .box path { stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s .05s ease; }
.check input:checked + .box { background: var(--grad) border-box; border-color: transparent; }
.check input:checked + .box path { stroke-dashoffset: 0; }
.check input:focus-visible + .box { box-shadow: var(--glow); }

/* ---- dugmeler ---- */
.btn { position: relative; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--box-line); background: var(--box); color: var(--text); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s, border-color .2s, box-shadow .25s, background .25s, filter .2s; }
.btn:hover { border-color: var(--box-hover); color: var(--text); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-primary { border: 0; padding: 0 18px; background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 8px 24px -8px rgba(124,108,246,.6); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 30px -6px rgba(124,108,246,.75); }
.btn-primary:disabled { filter: saturate(.75); opacity: 1; }
.btn-primary.success { background: var(--ok); color: #0b2a1d; box-shadow: 0 8px 24px -8px rgba(74,222,154,.6); }
.btn-lg { min-height: 52px; border-radius: var(--radius); font-size: 15px; }
.btn-danger { color: var(--err); background: var(--err-bg); border-color: rgba(248,113,113,.3); }
.btn-danger:hover { border-color: var(--err); color: var(--err); }
.btn-link { min-height: 40px; padding: 0 4px; border: 0; background: transparent; color: var(--accent-soft); font-weight: 600; cursor: pointer; align-self: flex-start; border-radius: 8px; }
.btn-link:hover { color: #cfcdff; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--box-line); background: var(--box); color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; text-decoration: none;
  transition: color .2s, border-color .2s, background .2s, transform .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--box-hover); background: var(--hover-bg); }
.icon-btn:active { transform: scale(.92); }
.icon-btn:disabled { opacity: .5; cursor: progress; }
.icon-btn.btn-danger:hover { color: var(--err); border-color: var(--err); background: var(--err-bg); }

/* segmentli secici: kayan gradyan hap (JS .seg-pill ekler) */
.seg { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--box); border: 2px solid var(--box-line); }
.seg button { position: relative; z-index: 1; min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; background: transparent; color: var(--muted); transition: color .25s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: #fff; }
.seg button[aria-pressed="true"] .dim { color: rgba(255,255,255,.75); }
.seg:not(.has-pill) button[aria-pressed="true"] { background: var(--grad); }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 8px; background: var(--grad); box-shadow: 0 4px 14px -4px rgba(124,108,246,.6);
  transition: left .4s var(--spring), width .4s var(--spring); }
.seg-pill.no-anim { transition: none; }
.seg.seg-lg button { min-height: 36px; padding: 0 14px; font-size: 13px; }
.chip { min-height: 32px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 600; cursor: pointer; background: var(--box); color: var(--muted); border: 1.5px solid var(--box-line); transition: .2s; }
.chip:hover { color: var(--text); border-color: var(--box-hover); }
.chip[aria-pressed="true"] { color: #fff; border-color: transparent; background: var(--grad) border-box; }

/* ---- kabuk ---- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 232px; max-width: 100%; display: flex; flex-direction: column; gap: 28px; padding: 24px 14px; border-right: 1px solid var(--line-soft); background: var(--side); }
.nav-links { position: relative; display: flex; flex-direction: column; gap: 2px; }
.nav-links a, .nav-btn { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 11px; color: var(--muted); text-decoration: none; font-weight: 600; background: transparent; border: 0; cursor: pointer; text-align: left; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-btn:hover { color: var(--text); }
.nav-btn:hover { background: var(--hover-bg); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a svg { transition: stroke .25s; }
.nav-links a[aria-current="page"] svg { stroke: var(--accent-soft); }
.nav-links:not(.has-ind) a[aria-current="page"] { background: #24232e; }
/* kayan gosterge (JS .nav-ind ekler) */
.nav-ind { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 11px; background: #24232e; pointer-events: none; opacity: 0;
  transition: top .4s var(--spring), left .4s var(--spring), width .4s var(--spring), height .4s var(--spring), opacity .2s; }
.nav-ind.on { opacity: 1; }
.nav-ind::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--accent), var(--accent-2)); box-shadow: 0 0 10px rgba(124,108,246,.9); }
.nav-ind.no-anim { transition: none; }
.nav-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; text-align: center; background: var(--hover-bg); color: var(--muted); }
.nav-count:empty { display: none; }
.nav-links a[aria-current="page"] .nav-count { background: var(--accent); color: #fff; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.server-card { padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.server-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px clamp(16px, 3vw, 40px) 48px; display: flex; flex-direction: column; gap: 24px; outline: none; }
.main.enter > * { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

@media (min-width: 900px) {
  .side { position: sticky; top: 0; height: 100vh; flex: 0 0 248px; overflow-y: auto; }
  .shell { flex-wrap: nowrap; }
}
@media (max-width: 899px) {
  /* --- telefon: ustte ince cam baslik, altta yuzen sekme cubugu --- */
  .shell { display: block; }
  .side { position: sticky; top: 0; z-index: 50; display: flex; flex-direction: row; align-items: center; gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border: 0; background: transparent; }
  /* cam efekti sahte ogede: .side'a backdrop-filter verilirse icindeki fixed sekme cubugu bozulur */
  .side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15,14,20,.7);
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,.06); }
  .brand { padding: 0; gap: 9px; }
  .brand span { font-size: 17px; }
  .brand .brand-ico { width: 28px; height: 28px; border-radius: 8px; }
  .side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; gap: 8px; }
  .server-card { flex-direction: row; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: rgba(28,27,36,.72); border-color: rgba(255,255,255,.07); }
  .server-card #srvIP, .server-card #srvSpec { display: none; }
  .server-name { font-size: 13px; gap: 7px; }
  #logoutBtn { width: 38px; height: 38px; min-height: 38px; padding: 0; justify-content: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: rgba(28,27,36,.72); }
  #logoutBtn .nl { display: none; }

  .nav-links { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 6px; border-radius: 26px;
    background: rgba(22,21,29,.78); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 40px -12px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.06); }
  .nav-links a { flex-direction: column; justify-content: center; gap: 3px; min-height: 54px; padding: 0 2px; border-radius: 20px;
    font-size: 10.5px; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; }
  .nav-links a svg { width: 22px; height: 22px; transition: transform .35s var(--spring), stroke .25s, filter .25s; }
  .nav-links a[aria-current="page"] svg { transform: translateY(-1px) scale(1.08); filter: drop-shadow(0 0 8px rgba(139,92,246,.85)); }
  .nav-links a:active svg { transform: scale(.86); }
  .nl { display: none; }
  .ns { display: inline; }
  .nav-ind { border-radius: 20px; background: linear-gradient(180deg, rgba(139,92,246,.24), rgba(56,189,248,.08));
    box-shadow: inset 0 0 0 1px rgba(165,163,255,.2), 0 10px 26px -12px rgba(139,92,246,.9); }
  .nav-ind::before { left: 28%; right: 28%; top: -7px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad);
    box-shadow: 0 0 12px rgba(139,92,246,.95), 0 0 26px rgba(56,189,248,.6); }
  .nav-count { position: absolute; top: 5px; left: calc(50% + 5px); margin: 0; min-width: 17px; padding: 0 4px; font-size: 9.5px; line-height: 16px; box-shadow: 0 0 0 2px rgba(22,21,29,.9); }

  .main { padding: 18px 16px calc(112px + env(safe-area-inset-bottom)); gap: 18px; }
  .page-head { gap: 14px; }
  .page-head h1 { font-size: 27px; background: linear-gradient(180deg, #fff 30%, #c9c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .page-head p { font-size: 13px; }
  .card { border-radius: 22px; padding: 18px; background: linear-gradient(180deg, rgba(30,29,39,.88), rgba(21,20,28,.88)); border-color: rgba(255,255,255,.07); }
  /* kaynak kartlari: 2x2 kompakt kutular */
  .main .grid-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .main .grid-stats .card { padding: 14px; gap: 10px; border-radius: 20px; }
  .main .grid-stats .card::before { left: 14px; right: 14px; }
  .main .grid-stats .stat-top { font-size: 12px; }
  .main .grid-stats .stat-big { font-size: 27px; }
  .main .grid-stats .stat-big small { font-size: 14px; }
  .main .grid-stats .stat-mid { font-size: 17px; }
  .main .grid-stats .stat-mid small { font-size: 11px; }
  .main .grid-stats .stat-line { flex-direction: column; align-items: stretch; gap: 8px; }
  .main .grid-stats .stat-line svg { width: 100%; height: auto; }
  .main .grid-stats .card > div[style*="gap:20px"] { gap: 10px !important; }
  .main .grid-stats .small { font-size: 11px; line-height: 1.4; }
  .toasts { left: 12px; right: 12px; width: auto; bottom: calc(96px + env(safe-area-inset-bottom)); }
  .main .chart, .main .chart svg { height: 150px; }
  .main .chart-axis { font-size: 10.5px; }
  /* genel bakis servis tablosu: telefonda sadece ad + durum (aciklama/islemci/bellek gizli) */
  .main .table-wrap table[style*="min-width:520px"] { min-width: 0 !important; }
  .main .table-wrap table[style*="min-width:520px"] :is(th, td):nth-child(2),
  .main .table-wrap table[style*="min-width:520px"] :is(th, td):nth-child(3),
  .main .table-wrap table[style*="min-width:520px"] :is(th, td):nth-child(4) { display: none; }
  .main .table-wrap table[style*="min-width:520px"] td:last-child,
  .main .table-wrap table[style*="min-width:520px"] th:last-child { text-align: right; }
}

/* ---- sayfa basligi ---- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h1 { margin: 0; font-family: var(--f-head); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- kartlar ---- */
.card { position: relative; padding: 20px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); }
.card::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(165,163,255,.45), rgba(56,189,248,.35), transparent); }
.card-title { font-family: var(--f-head); font-size: 17px; font-weight: 600; margin: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid-stats .card { transition: border-color .25s, transform .3s var(--spring); }
.grid-stats .card:hover { border-color: var(--box-line); transform: translateY(-2px); }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > .grow-2 { flex: 2 1 520px; }
.row > .grow-1 { flex: 1 1 300px; }
.stat-top { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; }
.stat-top span:last-child { color: var(--dim); font-weight: 500; }
.stat-big { font-family: var(--f-head); font-size: 34px; font-weight: 700; line-height: 1; white-space: nowrap; }
.stat-big small { font-size: 18px; color: var(--muted); font-weight: 600; }
.stat-mid { font-family: var(--f-head); font-size: 24px; font-weight: 600; line-height: 1.1; }
.stat-mid small { font-size: 14px; color: var(--muted); }
.stat-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bar { height: 8px; border-radius: 99px; background: var(--box-line); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; }
.bar-thin { height: 5px; }

/* ---- grafik ---- */
.legend { display: flex; gap: 20px; font-size: 12px; color: var(--muted); font-weight: 500; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.chart { position: relative; height: 220px; }
.chart svg { display: block; width: 100%; height: 220px; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); font-family: var(--f-mono); }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 13px; }

/* ---- listeler ---- */
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.kv-row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-row > div { display: flex; flex-direction: column; min-width: 0; }
.kv-row > div > span:first-child { font-weight: 600; }
.kv-row > div > span:last-child { font-size: 12px; color: var(--dim); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-nodot::before { display: none; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-ok::before { animation: ping-s 1.8s ease-out infinite; }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-err { background: var(--err-bg); color: var(--err); }
.pill-muted { background: var(--hover-bg); color: var(--muted); }
.pill-info { background: var(--info-bg); color: var(--info); }
@keyframes ping-s { 0% { box-shadow: 0 0 0 0 rgba(74,222,154,.55); } 100% { box-shadow: 0 0 0 6px rgba(74,222,154,0); } }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-ok { background: var(--ok); position: relative; }
.dot-ok::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }
.ev { display: flex; gap: 12px; }
.ev .dot { margin-top: 7px; }
.ev > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.ev time { font-size: 12px; color: var(--dim); }

.table-wrap { overflow-x: auto; position: relative; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--dim); font-size: 12px; font-weight: 600; padding: 10px 12px 10px 0; white-space: nowrap; }
td { padding: 13px 12px 13px 0; border-top: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,.015); }
td.muted { color: var(--muted); }
td .mono { font-size: 13px; }
.empty { padding: 28px 0; text-align: center; color: var(--dim); }

/* ---- uygulamalar ---- */
.apps-layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.apps-list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.apps-new { flex: 1 1 340px; min-width: 0; }
.app-card { padding: 18px 20px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; transition: border-color .25s; }
.app-card:hover { border-color: var(--box-line); }
.app-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-badge { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: 18px; background: var(--box); }
.app-title { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; }
.app-title h2 { margin: 0; font-family: var(--f-head); font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-title .mono { font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.app-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.app-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.app-meta div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-meta span:first-child { font-size: 12px; color: var(--dim); }
.app-meta span:last-child { font-family: var(--f-mono); font-size: 13px; overflow-wrap: anywhere; }
/* sablonlar: radyo kartlari */
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 60px; padding: 10px 12px; border-radius: 12px; text-align: left; cursor: pointer; color: var(--text); background: var(--box); border: 2px solid var(--box-line);
  transition: border-color .25s, background .25s, transform .15s; }
.tpl:hover { border-color: var(--box-hover); }
.tpl:active { transform: scale(.98); }
.tpl[aria-pressed="true"] { border-color: #7c6cf6; background: #1d1b2b; }
.tpl span:first-child { font-weight: 600; }
.tpl span:last-child { font-size: 12px; color: var(--dim); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
details summary { cursor: pointer; color: var(--muted); font-weight: 600; min-height: 32px; display: flex; align-items: center; gap: 8px; list-style: none; border-radius: 8px; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .3s var(--spring); margin: 0 4px 0 2px; }
details[open] summary::before { transform: rotate(45deg); }
details summary:hover { color: var(--text); }
details[open] summary { margin-bottom: 10px; }
details[open] > :not(summary) { animation: fadeDown .3s ease; }

/* ---- domainler ---- */
.dns-card { padding: 20px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; gap: 16px; min-width: 0; }
.dns-icon { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.dns-card > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.dns-card > div:last-child span:first-child { font-weight: 600; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-row > .f2 { flex: 2 1 260px; }
.form-row > .f1 { flex: 1 1 200px; }

/* ---- terminal / loglar ---- */
.tl-layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.term-box { flex: 1 1 520px; min-width: 0; border-radius: var(--radius-lg); background: var(--term); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.box-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); background: var(--side); min-height: 52px; }
.term-wrap { flex: 1 1 auto; height: 560px; padding: 10px 6px 6px 12px; }
.term-wrap .xterm { height: 100%; }
.term-wrap .xterm-viewport { background: var(--term) !important; }
.logs-box { flex: 1 1 480px; min-width: 0; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.logs-box .box-head { background: transparent; }
.logs-box select { min-height: 36px; padding: 0 36px 0 12px; border-radius: 10px; border: 2px solid var(--box-line); color: var(--text); font-size: 13px; font-weight: 500; max-width: 220px; outline: none; background-position: right 10px center; }
.log-list { flex: 1 1 auto; height: 560px; padding: 8px 0; overflow: auto; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.6; }
.log-line { display: flex; gap: 12px; padding: 2px 16px; }
.log-line:hover { background: rgba(255,255,255,.02); }
.log-line time { flex: none; color: var(--dim); }
.log-line .lv { flex: none; width: 52px; text-align: center; border-radius: 6px; font-size: 11px; font-weight: 600; align-self: flex-start; margin-top: 2px; }
.lv-info { color: var(--info); background: var(--info-bg); }
.lv-warn { color: var(--warn); background: var(--warn-bg); }
.lv-err { color: var(--err); background: var(--err-bg); }
.log-line span:last-child { color: #d8d7df; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.live { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok); border-radius: 8px; }
.live.paused { color: var(--dim); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ping-s 1.8s ease-out infinite; }
.live.paused::before { animation: none; }

/* ---- ayar satirlari + anahtar (switch) ---- */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.set-row:last-of-type { border-bottom: 0; }
.set-row.disabled { cursor: not-allowed; opacity: .55; }
.set-text { display: flex; flex-direction: column; min-width: 0; }
.set-text b { font-size: 14px; font-weight: 600; }
.set-text span { font-size: 12px; color: var(--muted); }
.sr { position: absolute; opacity: 0; width: 0; height: 0; }
.switch { width: 50px; height: 28px; border-radius: 99px; background: var(--box-line); position: relative; flex: none; transition: background .3s, box-shadow .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 99px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: left .35s var(--spring), width .2s ease; }
.set-row:active .switch::after { width: 28px; }
.sr:checked + .switch { background: var(--grad); }
.sr:checked + .switch::after { left: 25px; }
.set-row:active .sr:checked + .switch::after { left: 19px; }
.sr:focus-visible + .switch { box-shadow: var(--glow); }
.mini-select { min-height: 38px; padding: 0 36px 0 12px; border-radius: 10px; border: 2px solid var(--box-line); color: var(--text); font-size: 13px; font-weight: 600; outline: none; flex: none;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8996' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px, var(--box); }
.mini-select:focus { border-color: var(--accent); box-shadow: var(--glow); }
.watch { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.watch li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); }
.watch li svg { flex: none; margin-top: 3px; color: var(--ok); }

/* ---- pencere ---- */
.overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(8,7,12,.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.overlay.open { opacity: 1; }
.modal { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--box-line);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8); transform: translateY(20px) scale(.94); transition: transform .45s var(--spring); }
.modal.modal-wide { width: min(560px, 100%); }
.overlay.open .modal { transform: none; }
.modal h3 { margin: 0 0 6px; font-family: var(--f-head); font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.modal-text { color: var(--muted); font-size: 14px; line-height: 1.55; white-space: pre-line; }
.modal-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--warn-bg); color: var(--warn); }
.modal-ico svg { width: 22px; height: 22px; }
.modal-ico.danger { background: var(--err-bg); color: var(--err); }
.modal-ico.info { background: #1d1b2b; color: var(--accent-soft); }
.modal .btn-row { display: flex; gap: 10px; margin-top: 22px; }
.modal .btn-row .btn { flex: 1; }
.modal textarea { min-height: 200px; }

/* ---- bildirimler: yigilan, ikonlu, sure cubuklu ---- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; width: min(380px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px; border-radius: 16px;
  background: rgba(28,27,36,.94); backdrop-filter: blur(12px); border: 1px solid var(--box-line); box-shadow: 0 20px 40px -12px rgba(0,0,0,.7);
  --tc: var(--accent-2); --tbg: var(--info-bg); animation: tIn .5s var(--spring); overflow-wrap: anywhere; }
.toast.ok { --tc: var(--ok); --tbg: var(--ok-bg); }
.toast.err { --tc: var(--err); --tbg: var(--err-bg); }
.toast.out { animation: tOut .3s ease forwards; }
@keyframes tIn { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@keyframes tOut { to { opacity: 0; transform: translateY(12px) scale(.94); } }
.t-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--tbg); color: var(--tc); }
.t-ico svg { width: 18px; height: 18px; }
.t-body { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; }
.t-x { width: 28px; height: 28px; flex: none; border: 0; border-radius: 8px; background: none; color: var(--faint); font-size: 20px; line-height: 1; cursor: pointer; }
.t-x:hover { background: #2a2934; color: var(--text); }
.t-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--tc); opacity: .8; transform-origin: left; animation: tbar var(--dur, 3.5s) linear forwards; }
.toast:hover .t-bar { animation-play-state: paused; }
@keyframes tbar { to { transform: scaleX(0); } }

.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-top-color: transparent; opacity: .9; animation: spin .7s linear infinite; display: inline-block; }
.btn-primary .spin { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .spin { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; }
  .t-bar { animation-duration: var(--dur, 3.5s) !important; } /* hareket degil, kalan sureyi gosterir */
}
