/* Ürün ekranı maketleri — gerçek arayüzün (apps/web) düzenini ve renk belirteçlerini izler.
   Tüm veriler kurgusaldır (Örnek Sanayi A.Ş., belge IP aralıkları). Gerçek müşteri verisi içermez. */

/* ---------- ölçekleme: maket sabit tasarım genişliğinde çizilir, JS kapsayıcıya sığdırır ---------- */
.scale-wrap { position: relative; overflow: hidden; width: 100%; }
.scale-inner { transform-origin: 0 0; }
.no-js .scale-wrap { overflow-x: auto; }

/* ---------- tarayıcı çerçevesi ---------- */
.device {
  border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow); position: relative;
}
.device-bar {
  height: 38px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.device-dots { display: flex; gap: 7px; flex-shrink: 0; }
.device-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); display: block; }
.device-dots i:first-child { background: #ff5f57; } .device-dots i:nth-child(2) { background: #febc2e; } .device-dots i:nth-child(3) { background: #28c840; }
.device-url {
  flex: 1; max-width: 460px; margin: 0 auto; height: 24px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-family: var(--font); white-space: nowrap; overflow: hidden;
}
.device-url svg { width: 11px; height: 11px; color: var(--ok); }
.device-spacer { width: 47px; flex-shrink: 0; }
.mock-caption { margin-top: 12px; font-size: .84rem; color: var(--muted); text-align: center; }
.mock-caption b { color: var(--fg-2); font-weight: 600; }

/* ---------- uygulama kabuğu ---------- */
.app {
  --m-fs: 12.5px; display: grid; grid-template-columns: 196px minmax(0, 1fr); width: 1200px; height: 720px; text-align: left;
  font-family: var(--font); font-size: var(--m-fs); line-height: 1.4; color: var(--fg); background: var(--bg); overflow: hidden;
  letter-spacing: 0; font-feature-settings: normal;
}
.app * { box-sizing: border-box; }
.app.h-640 { height: 640px; } .app.h-680 { height: 680px; } .app.h-760 { height: 760px; } .app.h-800 { height: 800px; }
.app-side { display: flex; flex-direction: column; border-right: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--bg)); min-height: 0; }
.app-brand { height: 52px; display: flex; align-items: center; padding: 0 14px; flex-shrink: 0; }
.app-brand img { height: 36px; width: auto; }
.app-build { font-size: 9.5px; color: var(--muted); padding: 0 16px; margin: -6px 0 6px; opacity: .85; font-variant-numeric: tabular-nums; }
.app-nav { flex: 1; min-height: 0; overflow: hidden; padding: 2px 8px 8px; }
.app-group + .app-group { margin-top: 7px; }
.app-group-h { display: flex; justify-content: space-between; align-items: center; padding: 3px 8px 4px; color: var(--muted); font-size: 9px; letter-spacing: .8px; text-transform: uppercase; font-weight: 600; }
.app-group-h::after { content: ""; width: 5px; height: 5px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: rotate(45deg); opacity: .6; margin-top: -3px; }
.app-group.closed .app-group-h::after { transform: rotate(-45deg); margin-top: 0; }
.app-link { height: 26px; display: flex; align-items: center; gap: 9px; padding: 0 8px; border-radius: 6px; color: var(--muted); font-size: 12px; position: relative; white-space: nowrap; }
.app-link svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .85; }
.app-link.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.app-link.active::before { content: ""; position: absolute; left: 0; width: 2px; height: 14px; border-radius: 2px; background: var(--brand); }
.app-link .cnt { margin-left: auto; font-size: 10px; padding: 0 5px; border-radius: 8px; background: var(--brand-solid); color: #fff; line-height: 15px; font-weight: 700; }
.app-sidefoot { height: 40px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 10px; color: var(--muted); flex-shrink: 0; }
.app-sidefoot kbd { border: 1px solid var(--border); border-radius: 4px; font-size: 9px; padding: 1px 5px; font-family: var(--font); }
.app-work { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.app-top { height: 44px; flex-shrink: 0; box-shadow: inset 0 2px 0 var(--brand-solid); border-bottom: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; gap: 10px; }
.app-crumb { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.app-crumb .ws { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; color: var(--fg); }
.app-crumb .sep { color: var(--border-strong); }
.app-crumb b { color: var(--fg); font-weight: 600; }
.app-topr { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.app-bell { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; }
.app-bell svg { width: 15px; height: 15px; }
.app-bell i { position: absolute; top: 1px; right: 0; min-width: 14px; height: 14px; border-radius: 7px; background: var(--brand-solid); color: #fff; font-size: 9px; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 3px; }
.app-avatar { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); }
.app-main { flex: 1; min-height: 0; overflow: hidden; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- ilkel öğeler ---------- */
.m-row { display: flex; gap: 10px; min-width: 0; }
.m-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.m-grid { display: grid; gap: 10px; min-width: 0; }
.m-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .m-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .m-g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.m-grow { flex: 1; min-width: 0; }
.m-card { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 11px 12px; min-width: 0; }
.m-card.pad0 { padding: 0; overflow: hidden; }
.m-h { font-size: 10px; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.m-h a, .m-link { color: var(--brand); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 11px; text-decoration: none; }
.m-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0; color: var(--fg); }
.m-sub { color: var(--muted); font-size: 11.5px; }
.m-kicker { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.m-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.m-kpi .v { font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.m-kpi .l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.m-kpi .d { font-size: 10.5px; margin-top: 6px; color: var(--muted); }
.m-kpi .d a { color: var(--brand); text-decoration: none; font-weight: 600; }
.m-mono { font-family: var(--mono); font-size: 11px; }
.m-muted { color: var(--muted); }
.m-ok { color: var(--ok); } .m-warn { color: var(--warn); } .m-bad { color: var(--danger); } .m-brand { color: var(--brand); }
.m-b { font-weight: 650; }
.m-sep { height: 1px; background: var(--border); margin: 8px 0; }
.m-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 650; padding: 1px 7px; border-radius: 5px; line-height: 17px; white-space: nowrap; border: 1px solid transparent; }
.m-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.m-badge.nodot::before { display: none; }
.sev-critical { color: var(--sev-critical); background: color-mix(in srgb, var(--sev-critical) 14%, transparent); border-color: color-mix(in srgb, var(--sev-critical) 30%, transparent); }
.sev-high { color: var(--sev-high); background: color-mix(in srgb, var(--sev-high) 14%, transparent); border-color: color-mix(in srgb, var(--sev-high) 30%, transparent); }
.sev-medium { color: var(--sev-medium); background: color-mix(in srgb, var(--sev-medium) 14%, transparent); border-color: color-mix(in srgb, var(--sev-medium) 30%, transparent); }
.sev-low { color: var(--sev-low); background: color-mix(in srgb, var(--sev-low) 13%, transparent); border-color: color-mix(in srgb, var(--sev-low) 28%, transparent); }
.sev-info { color: var(--sev-info); background: color-mix(in srgb, var(--sev-info) 13%, transparent); border-color: color-mix(in srgb, var(--sev-info) 28%, transparent); }
.st-new { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-line); }
.st-neutral { color: var(--fg-2); background: var(--surface-3); border-color: var(--border); }
.m-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--fg-2); background: var(--surface-2); white-space: nowrap; }
.m-chip.on { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.m-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--fg); background: var(--surface); white-space: nowrap; }
.m-btn.primary { background: var(--brand-solid); border-color: var(--brand-solid); color: #fff; }
.m-btn svg { width: 12px; height: 12px; }
.m-input { font-size: 11.5px; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); display: flex; align-items: center; gap: 6px; min-width: 0; }
.m-input svg { width: 12px; height: 12px; }
.m-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); }
.m-tab { padding: 6px 10px; font-size: 11.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.m-tab.on { color: var(--fg); border-bottom-color: var(--brand); font-weight: 600; }
.m-tab small { font-size: 10px; color: var(--muted); margin-left: 3px; }
.m-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--ok); flex-shrink: 0; }
.m-dot.warn { background: var(--warn); } .m-dot.bad { background: var(--danger); } .m-dot.off { background: var(--border-strong); }
.m-table { width: 100%; border-collapse: collapse; font-size: 11.5px; table-layout: fixed; }
.m-table th { text-align: left; font-weight: 600; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; overflow: hidden; }
.m-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.m-table tr:last-child td { border-bottom: 0; }
.m-table tr.sel td { background: var(--brand-soft); }
.m-table .t2 { display: block; font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.m-cb { width: 12px; height: 12px; border: 1px solid var(--border-strong); border-radius: 3px; display: inline-block; vertical-align: middle; }
.m-cb.on { background: var(--brand-solid); border-color: var(--brand-solid); box-shadow: inset 0 0 0 2px var(--surface); }
.m-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.m-bar > i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.m-bar.ok > i { background: var(--ok); } .m-bar.warn > i { background: var(--warn); } .m-bar.info > i { background: var(--info); }
.m-bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.m-bars i { flex: 1; background: color-mix(in srgb, var(--info) 55%, transparent); border-radius: 2px 2px 0 0; min-height: 3px; }
.m-bars i.hi { background: var(--brand); }
.m-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 5px 10px; font-size: 11.5px; }
.m-kv dt { color: var(--muted); }
.m-kv dd { margin: 0; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-list { list-style: none; margin: 0; padding: 0; }
.m-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 11.5px; min-width: 0; }
.m-list li:last-child { border-bottom: 0; }
.m-list .r { margin-left: auto; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.m-trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.m-banner { border-radius: 8px; padding: 8px 11px; display: flex; gap: 10px; align-items: center; font-size: 11.5px; border: 1px solid var(--brand-line); background: var(--brand-soft); }
.m-banner.ok { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 9%, transparent); }
.m-banner b { font-weight: 650; }
.m-guide { border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); padding: 9px 11px; }
.m-guide h5 { margin: 0 0 4px; font-size: 11px; font-weight: 700; color: var(--fg); display: flex; align-items: center; gap: 6px; }
.m-guide p { margin: 0; font-size: 11.5px; color: var(--fg-2); line-height: 1.45; }
.m-guide.why h5 { color: var(--info); } .m-guide.next h5 { color: var(--brand); } .m-guide.fp h5 { color: var(--warn); }
.m-code { font-family: var(--mono); font-size: 11px; line-height: 1.6; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--fg-2); white-space: pre; overflow: hidden; }
.m-code .k { color: var(--brand); } .m-code .s { color: var(--ok); } .m-code .n { color: var(--warn); } .m-code .c { color: var(--muted); } .m-code .ln { color: var(--border-strong); display: inline-block; width: 22px; }

/* çekmece (sağdan açılan ayrıntı) */
.m-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 430px; background: var(--surface); border-left: 1px solid var(--border-strong); box-shadow: -24px 0 48px -16px rgb(0 0 0 / .45); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.m-main-rel { position: relative; }

/* soruşturma grafiği */
.m-graph { position: relative; background-color: var(--surface-2); background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 16px 16px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.m-graph svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-graph .edge { fill: none; stroke: var(--border-strong); stroke-width: 1.4; }
.m-graph .edge.hot { stroke: var(--brand); stroke-width: 1.8; }
.m-graph .edge.warn { stroke: var(--warn); }
.m-graph .elabel { font-size: 9.5px; fill: var(--muted); font-family: var(--font); }
.m-node { position: absolute; width: 168px; height: 42px; display: flex; align-items: center; gap: 8px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); padding: 5px 8px; box-shadow: 0 2px 6px rgb(0 0 0 / .15); }
.m-node .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-3); color: var(--fg-2); }
.m-node .ic svg { width: 14px; height: 14px; }
.m-node b { display: block; font-size: 11.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-node small { display: block; font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-node > span:not(.ic):not(.grp) { min-width: 0; flex: 1; }
.m-node.hot { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.m-node.hot .ic { background: var(--brand-soft); color: var(--brand); }
.m-node.user .ic { color: var(--info); } .m-node.ip .ic { color: var(--warn); } .m-node.proc .ic { color: #a78bfa; } .m-node.file .ic { color: var(--ok); }
.m-node.stack { box-shadow: 3px 3px 0 -1px var(--surface), 4px 4px 0 0 var(--border-strong), 7px 7px 0 -1px var(--surface), 8px 8px 0 0 var(--border-strong); }
.m-node .grp { font-size: 10.5px; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 5px; padding: 0 5px; line-height: 18px; flex-shrink: 0; }
.m-stage { display: flex; gap: 0; }
.m-stage span { flex: 1; font-size: 10px; text-align: center; padding: 5px 4px; background: var(--surface-3); color: var(--muted); border-right: 1px solid var(--bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-stage span:first-child { border-radius: 6px 0 0 6px; } .m-stage span:last-child { border-radius: 0 6px 6px 0; border-right: 0; }
.m-stage span.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); }
.m-tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--border-strong); }
.m-tl li { position: relative; padding: 0 0 9px 4px; font-size: 11.5px; }
.m-tl li::before { content: ""; position: absolute; left: -18px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); box-shadow: 0 0 0 3px var(--surface); }
.m-tl li.hot::before { background: var(--brand); }
.m-tl time { color: var(--muted); font-size: 10.5px; font-family: var(--mono); margin-right: 6px; }

/* ön panel / portlar */
.m-panel { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; padding: 10px; background: #1b222d; border-radius: 8px; border: 1px solid #2d3747; }
:root[data-theme="light"] .m-panel { background: #2a323d; }
.m-port { height: 22px; border-radius: 3px; background: #0b0f15; border: 1px solid #3a4658; position: relative; }
.m-port::after { content: ""; position: absolute; left: 3px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: #3a4658; }
.m-port.up::after { background: #4ade80; box-shadow: 0 0 5px #4ade80; }
.m-port.poe { border-color: #fbbf24; }
.m-port.flap::after { background: #fb923c; box-shadow: 0 0 5px #fb923c; }
.m-port.sel { outline: 2px solid var(--brand); outline-offset: 1px; }
.m-port.sfp { background: #121821; border-color: #52627a; }
.m-portnum { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; padding: 2px 10px 0; font-size: 8.5px; color: var(--muted); text-align: center; font-family: var(--mono); }

/* telefon çerçevesi */
.phone {
  width: 300px; height: 620px; border-radius: 44px; padding: 11px; background: #0a0d12; border: 1px solid #2b3442;
  box-shadow: var(--shadow), inset 0 0 0 2px #1b212b; position: relative; margin-inline: auto; flex-shrink: 0;
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); position: relative; display: flex; flex-direction: column; font-family: var(--font); font-size: 12.5px; line-height: 1.4; color: var(--fg); text-align: left; }
.phone-notch { position: absolute; top: 9px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 16px; background: #000; z-index: 2; }
.phone-status { height: 42px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px 5px; font-size: 11px; font-weight: 650; flex-shrink: 0; }
.phone-top { height: 44px; box-shadow: inset 0 2px 0 var(--brand-solid); border-bottom: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 8px; padding: 0 12px; flex-shrink: 0; }
.phone-top svg { width: 17px; height: 17px; color: var(--muted); }
.phone-top img { height: 22px; width: auto; }
.phone-top .app-bell { margin-left: auto; }
.phone-body { flex: 1; overflow: hidden; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.phone-alert { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; }
.phone-alert b { display: block; font-size: 12px; font-weight: 650; margin: 5px 0 3px; line-height: 1.3; }
.phone-alert small { color: var(--muted); font-size: 10.5px; }
.phone-home { position: absolute; bottom: 7px; left: 50%; width: 110px; height: 4px; margin-left: -55px; border-radius: 3px; background: var(--fg); opacity: .5; }

/* ---------- canlı animasyonlar (kahraman maketi) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 1.8s ease-out infinite; }
  .anim-row { animation: rowin 9s ease-in-out infinite; }
  .anim-bars i { transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2, .7, .2, 1) both; }
  .anim-bars i:nth-child(3n) { animation-delay: .1s; } .anim-bars i:nth-child(3n+1) { animation-delay: .2s; }
  .anim-bars i:last-child { animation: grow 1.2s both, blink 2.4s 1.4s ease-in-out infinite; }
  .anim-spark path.line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .3s ease-out forwards; }
  .anim-ring { animation: spin 14s linear infinite; transform-origin: center; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(74 222 128 / .6); } 70% { box-shadow: 0 0 0 7px rgb(74 222 128 / 0); } 100% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0); } }
@keyframes rowin { 0%, 8% { background: transparent; } 12% { background: var(--brand-soft); } 40%, 100% { background: transparent; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: .45; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* dışa aktarım kipi (tools: ekran görüntüsü alınırken ölçek kapatılır) */
.export .scale-inner { transform: none !important; }
.export .scale-wrap { height: auto !important; overflow: visible; }
.export .device { display: inline-block; width: auto; vertical-align: top; }
