/* Fullİndir Sistem Durumu */

:root {
	--bg: #f2f5f4;
	--surface: #ffffff;
	--surface-2: #f7f9f8;
	--ink: #16201d;
	--ink-2: #4a5954;
	--ink-3: #7d8b86;
	--line: #dbe3e0;
	--line-2: #e9efed;
	--accent: #116b5b;
	--accent-hover: #0c594b;
	--accent-ink: #fff;
	--accent-soft: #e0f0eb;
	--up: #23834c;
	--up-soft: #e0f2e7;
	--down: #c9372c;
	--down-soft: #fbe6e3;
	--warn: #b37609;
	--warn-soft: #fbefd6;
	--maint: #3a6ea5;
	--maint-soft: #e4edf8;
	--idle: #8b9893;
	--idle-soft: #edf1ef;
	--grid: rgba(17, 107, 91, .07);
	--grid-2: rgba(17, 107, 91, .13);
	--focus: 0 0 0 3px rgba(17, 107, 91, .28);
	--r: 12px;
	--r-sm: 7px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #0b1210;
	--surface: #111a17;
	--surface-2: #15201c;
	--ink: #e1eae6;
	--ink-2: #a3b3ad;
	--ink-3: #6f817a;
	--line: #213029;
	--line-2: #1a2622;
	--accent: #46c69e;
	--accent-hover: #5dd5af;
	--accent-ink: #052019;
	--accent-soft: rgba(70, 198, 158, .12);
	--up: #57c88a;
	--up-soft: rgba(87, 200, 138, .13);
	--down: #f06e60;
	--down-soft: rgba(240, 110, 96, .14);
	--warn: #e5ae4a;
	--warn-soft: rgba(229, 174, 74, .13);
	--maint: #78a3e5;
	--maint-soft: rgba(120, 163, 229, .14);
	--idle: #73847d;
	--idle-soft: rgba(115, 132, 125, .14);
	--grid: rgba(82, 214, 169, .05);
	--grid-2: rgba(82, 214, 169, .11);
	--focus: 0 0 0 3px rgba(70, 198, 158, .35);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: none; box-shadow: var(--focus); }
[hidden] { display: none !important; }
.ico { display: block; flex: none; }
.muted { color: var(--ink-3); font-size: 13px; }
.nowrap { white-space: nowrap; }
.show-dark { display: none; }
[data-theme="dark"] .show-dark { display: block; }
[data-theme="dark"] .show-light { display: none; }

/* ---------- Butonlar ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	min-height: 38px; padding: 0 15px;
	border: 1px solid var(--line); border-radius: var(--r-sm);
	background: var(--surface); color: var(--ink);
	font-size: 13.5px; font-weight: 600; line-height: 1; white-space: nowrap;
	cursor: pointer; text-decoration: none !important;
	transition: background-color .15s, border-color .15s;
}
.btn:hover { border-color: var(--ink-3); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: var(--down); border-color: var(--down); color: #fff; }
.btn-ghost-danger { color: var(--down); }
.btn-ghost-danger:hover { border-color: var(--down); }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; }
.btn-lg { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.iconbtn {
	width: 38px; height: 38px; display: inline-grid; place-items: center;
	border: 1px solid var(--line); border-radius: var(--r-sm);
	background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.iconbtn:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------- Durum hapı ---------- */
.pill {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 3px 10px 3px 8px; border-radius: 999px;
	font-size: 12px; font-weight: 700; white-space: nowrap;
	background: var(--idle-soft); color: var(--idle);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.is-up { background: var(--up-soft); color: var(--up); }
.pill.is-down { background: var(--down-soft); color: var(--down); }
.pill.is-down .dot { animation: blink 1.2s ease-in-out infinite; }
.pill.is-maintenance { background: var(--maint-soft); color: var(--maint); }
.pill.is-pending { background: var(--warn-soft); color: var(--warn); }
@keyframes blink { 50% { opacity: .25; } }

.dot-inline { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot-inline.is-up { background: var(--up); }
.dot-inline.is-down { background: var(--down); }

/* ---------- Kabuk (yönetim) ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--surface) 239px, var(--line) 239px 240px, transparent 240px); }
.side {
	position: sticky; top: 0; height: 100vh;
	display: flex; flex-direction: column; gap: 22px;
	padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line);
	overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; color: var(--ink); text-decoration: none !important; }
.brand .logo { color: var(--accent); flex: none; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.brand small { display: block; font-size: 12px; color: var(--ink-3); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
	display: flex; align-items: center; gap: 11px;
	padding: 9px 10px; border-radius: var(--r-sm);
	color: var(--ink-2); font-weight: 600; font-size: 13.5px; text-decoration: none !important;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { background: var(--accent-soft); color: var(--accent); }
.nav .count { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--down); color: #fff; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.cron-ok, .cron-warn { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; }
.cron-ok { color: var(--ink-3); }
.cron-warn { background: var(--warn-soft); color: var(--warn); text-decoration: none !important; }
.credit { display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: var(--ink-3); font-size: 12.5px; text-decoration: none !important; }
.credit:hover { color: var(--ink); }
.credit strong { color: var(--ink-2); }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; gap: 14px;
	padding: 14px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 19px; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; }
.topbar-actions form { margin: 0; }
.menu-btn { display: none; }
.content { flex: 1; padding: 24px 28px 32px; display: flex; flex-direction: column; gap: 20px; }
.appfoot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }
.appfoot a { color: var(--ink-2); font-weight: 600; }

/* ---------- Panel ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.panel-tools { display: flex; gap: 10px; align-items: center; }
.panel-head form { margin: 0; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.split-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* ---------- Pano: yaşam belirtileri ---------- */
.vitals {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto auto;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.vitals-state { grid-row: 1 / 3; padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.vitals-label { font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.vitals.is-operational .vitals-label { color: var(--up); }
.vitals.is-partial .vitals-label { color: var(--warn); }
.vitals.is-major .vitals-label { color: var(--down); }
.vitals.is-maintenance .vitals-label { color: var(--maint); }
.vitals-state p { color: var(--ink-2); font-size: 13.5px; }
.vitals-ekg {
	position: relative; height: 120px;
	background-image:
		linear-gradient(var(--grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--grid-2) 1px, transparent 1px),
		linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}
.vitals-stats { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.vitals-stats div { padding: 12px 18px; border-left: 1px solid var(--line-2); }
.vitals-stats div:first-child { border-left: 0; }
.vitals-stats dt { font-size: 12px; color: var(--ink-3); }
.vitals-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.c-up { color: var(--up); }
.c-down { color: var(--down); }

/* EKG */
.ekg { display: block; width: 100%; height: 100%; overflow: visible; }
.ekg path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ekg-line { stroke: var(--up); stroke-width: 2.2; }
.ekg-glow { stroke: var(--up); stroke-width: 2.6; stroke-dasharray: 90 2400; animation: sweep 3.2s linear infinite; filter: drop-shadow(0 0 4px var(--up)); }
.ekg.is-partial .ekg-line, .ekg.is-partial .ekg-glow { stroke: var(--warn); filter: none; }
.ekg.is-partial .ekg-glow { filter: drop-shadow(0 0 4px var(--warn)); }
.ekg.is-major .ekg-line, .ekg.is-major .ekg-glow { stroke: var(--down); }
.ekg.is-major .ekg-glow { filter: drop-shadow(0 0 4px var(--down)); animation-duration: 1.6s; }
.ekg.is-maintenance .ekg-line, .ekg.is-maintenance .ekg-glow { stroke: var(--maint); }
.ekg.is-maintenance .ekg-glow { filter: drop-shadow(0 0 4px var(--maint)); animation-duration: 5s; }
@keyframes sweep { from { stroke-dashoffset: 2490; } to { stroke-dashoffset: 0; } }

/* Açık olaylar */
.open-incidents { display: flex; flex-direction: column; gap: 8px; }
.open-incident {
	display: grid; grid-template-columns: 10px auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
	padding: 12px 16px; border-radius: var(--r-sm);
	background: var(--down-soft); color: var(--ink); text-decoration: none !important;
	border: 1px solid color-mix(in srgb, var(--down) 30%, transparent);
}
.open-incident .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--down); animation: blink 1.2s ease-in-out infinite; }
.open-incident span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.open-incident time { color: var(--down); font-weight: 700; font-size: 13px; white-space: nowrap; }

/* İzleme tablosu */
.search {
	min-height: 38px; width: 220px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: var(--r-sm);
	background: var(--surface-2); color: var(--ink); font: inherit;
}
.search:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.mon-table { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.mon-row {
	display: grid; grid-template-columns: minmax(0, 2.2fr) 1.1fr 1.4fr 1.2fr .9fr; gap: 16px; align-items: center;
	padding: 12px 16px; border-top: 1px solid var(--line-2);
	color: var(--ink); text-decoration: none !important; position: relative;
}
.mon-row:first-child { border-top: 0; }
a.mon-row:hover { background: var(--surface-2); }
.mon-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.mon-row.is-down::before { background: var(--down); }
.mon-row.is-down { background: color-mix(in srgb, var(--down-soft) 45%, transparent); }
.mon-head { background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink-3); padding-top: 9px; padding-bottom: 9px; }
.mon-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mon-name > span:last-child { min-width: 0; }
.mon-name strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-name small { display: block; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-type { width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.since { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; padding-left: 2px; }
.mon-resp { display: flex; align-items: center; gap: 10px; }
.mon-resp b { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mon-uptime { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: baseline; }
.mon-uptime b { font-size: 13px; font-variant-numeric: tabular-nums; }
.mon-uptime small { font-size: 11.5px; color: var(--ink-3); }
.mon-last { font-size: 13px; color: var(--ink-3); }
.metrics-mini { display: flex; gap: 10px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.metrics-mini b { color: var(--ink); font-variant-numeric: tabular-nums; }
.metrics-mini .is-hot b { color: var(--down); }
.filter-empty { padding: 20px; text-align: center; color: var(--ink-3); }

.spark { flex: none; overflow: visible; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-bad { stroke: var(--down); stroke-width: 2; opacity: .6; vector-effect: non-scaling-stroke; }

/* Boş pano */
.empty-hero {
	position: relative; overflow: hidden; min-height: 260px;
	display: grid; place-items: center; text-align: center;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
	background-image:
		linear-gradient(var(--grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--grid-2) 1px, transparent 1px),
		linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}
.empty-hero .ekg { position: absolute; inset: 50% 0 auto; transform: translateY(-50%); height: 120px; opacity: .35; }
.empty-hero-text { position: relative; max-width: 520px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 30px; }
.empty-hero-text h2 { font-size: 22px; letter-spacing: -.02em; }
.empty-hero-text p { color: var(--ink-2); margin: 8px 0 18px; }
.type-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.type-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none !important; }
.type-card:hover { border-color: var(--accent); }
.type-card .ico { color: var(--accent); margin-bottom: 4px; }
.type-card span { color: var(--ink-3); font-size: 12.5px; }

/* ---------- Formlar ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; }
.form legend { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; padding: 0; }
.form-monitor fieldset + fieldset { padding-top: 20px; border-top: 1px solid var(--line-2); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; border: 0; padding: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { font-size: 12px; color: var(--ink-3); }
.field-err { color: var(--down) !important; font-weight: 600; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
	width: 100%; min-height: 40px; padding: 8px 12px;
	border: 1px solid var(--line); border-radius: var(--r-sm);
	background: var(--surface); color: var(--ink); font: inherit;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13.5px; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); max-height: 200px; overflow-y: auto; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.input-suffix { position: relative; display: block; }
.input-suffix em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); }

.type-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.type-pick label { cursor: pointer; }
.type-pick input { position: absolute; opacity: 0; pointer-events: none; }
.type-pick label > span { height: 100%; display: flex; flex-direction: column; gap: 5px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.type-pick .ico { color: var(--ink-3); margin-bottom: 3px; }
.type-pick strong { font-size: 13.5px; }
.type-pick small { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.type-pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.type-pick input:checked + span .ico { color: var(--accent); }
.type-pick input:focus-visible + span { box-shadow: var(--focus); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg label > span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); }
.seg small { font-size: 12px; color: var(--ink-3); }
.seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.seg input:focus-visible + span { box-shadow: var(--focus); }

.alert { padding: 11px 14px; border-radius: var(--r-sm); font-size: 13.5px; background: var(--maint-soft); color: var(--ink); }
.alert.is-down { background: var(--down-soft); color: var(--down); font-weight: 600; }

/* ---------- Detay ---------- */
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; position: relative; overflow: hidden; }
.detail-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--idle); }
.detail-head.is-up::before { background: var(--up); }
.detail-head.is-down::before { background: var(--down); }
.detail-head.is-maintenance::before { background: var(--maint); }
.detail-title { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.detail-title .mon-type { width: 42px; height: 42px; border-radius: 10px; }
.detail-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-target { font-size: 15px; font-weight: 600; margin: 6px 0 2px !important; word-break: break-all; }
.detail-target a { color: var(--ink); }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-actions form { margin: 0; }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat-strip > div { padding: 14px 18px; border-left: 1px solid var(--line-2); }
.stat-strip > div:first-child { border-left: 0; }
.stat-strip span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }
.stat-strip strong { display: block; font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-top: 2px; }
.stat-strip .is-warn strong { color: var(--warn); }

.seg-links { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); }
.seg-links a { padding: 5px 11px; border-radius: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-decoration: none !important; }
.seg-links a.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

.chart-wrap { width: 100%; }
.linechart { display: block; width: 100%; height: 220px; overflow: visible; }
.linechart .grid { stroke: var(--line-2); vector-effect: non-scaling-stroke; }
.linechart .axis { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.linechart .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.linechart .area { fill: var(--accent); opacity: .08; }
.linechart .down { stroke: var(--down); stroke-width: 3; opacity: .35; vector-effect: non-scaling-stroke; }
.chart-empty { padding: 50px 20px; text-align: center; color: var(--ink-3); background: var(--surface-2); border-radius: var(--r-sm); }

.bars { display: flex; gap: 2px; height: 34px; align-items: stretch; }
.bar { flex: 1; min-width: 2px; border-radius: 2px; background: var(--up); position: relative; outline: none; }
.bar.is-minor { background: var(--warn); }
.bar.is-major { background: var(--down); }
.bar.is-none { background: var(--line); }
.bar:hover, .bar:focus { opacity: .7; }
.bar:hover::after, .bar:focus::after {
	content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
	padding: 6px 9px; border-radius: 6px; background: var(--ink); color: var(--bg);
	font-size: 12px; font-weight: 600; white-space: nowrap; z-index: 5; pointer-events: none;
}
.bars-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }

.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.gauge-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.gauge-top span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.gauge-top strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.gauge-bar { position: relative; height: 8px; border-radius: 999px; background: var(--line-2); }
.gauge-bar span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--up); }
.gauge-bar i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink-3); border-radius: 2px; }
.gauge.is-warm .gauge-bar span { background: var(--warn); }
.gauge.is-hot .gauge-bar span { background: var(--down); }
.gauge.is-hot .gauge-top strong { color: var(--down); }

.snippet + .snippet { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.snippet h3 { font-size: 14px; margin-bottom: 4px; }
.snippet > p { margin-bottom: 10px; }
.code { position: relative; }
.code pre { margin: 0; padding: 13px 15px; padding-right: 96px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); overflow-x: auto; font-size: 12.5px; line-height: 1.6; }
.code code { white-space: pre-wrap; word-break: break-all; }
.code-copy { position: absolute; top: 7px; right: 7px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.code-copy:hover { color: var(--ink); }
.badges { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 16px 8px; }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--up); }
.timeline li.is-open::before { border-color: var(--down); background: var(--down); }
.timeline strong { display: block; font-size: 13.5px; }
.timeline span { font-size: 12.5px; color: var(--ink-3); }
.empty-line { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.empty-line .ico { color: var(--up); }
.empty-block { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 20px; color: var(--ink-3); text-align: center; }
.empty-block .ico { color: var(--up); }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-3); padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:first-child td { border-top: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-open td:first-child { box-shadow: inset 3px 0 0 var(--down); }
.table-incidents a { color: var(--ink); }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 16px; }
.pager a { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 13px; text-decoration: none !important; }
.pager a.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.maint-list { list-style: none; margin: 0; padding: 0; }
.maint-list li { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.maint-list li:first-child { border-top: 0; padding-top: 0; }
.maint-list li.is-past { opacity: .6; }
.maint-list strong { display: block; margin: 6px 0 2px; }
.maint-actions { display: flex; gap: 6px; align-items: flex-start; }
.maint-actions form { margin: 0; }

.settings { display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.steps { margin: 0 0 4px; padding-left: 20px; color: var(--ink-2); font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.steps code { background: var(--surface-2); border: 1px solid var(--line-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.about { display: flex; gap: 16px; align-items: center; }
.about .logo { color: var(--accent); flex: none; }
.about h2 { font-size: 15px; margin-bottom: 4px; }

/* ---------- Giriş / kurulum ---------- */
.auth { min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.auth-card--wide { max-width: 620px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand .logo { color: var(--accent); flex: none; }
.auth-brand h1 { font-size: 19px; letter-spacing: -.01em; }
.auth-brand p { font-size: 13px; color: var(--ink-3); }
.auth-lang { margin-left: auto; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.auth-lang a { padding: 3px 8px; border-radius: 5px; font-size: 12px; font-weight: 700; color: var(--ink-3); text-decoration: none !important; }
.auth-lang a.is-active { background: var(--accent-soft); color: var(--accent); }
.auth-credit { font-size: 12px; color: var(--ink-3); text-align: center; }
.auth-credit a { color: var(--ink-2); font-weight: 600; }
.reqs { list-style: none; margin: 0; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; background: var(--surface-2); border-radius: var(--r-sm); }
.reqs li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.reqs li.ok .ico { color: var(--up); }
.reqs li.bad { color: var(--down); font-weight: 600; }
.reqs small { color: var(--ink-3); margin-left: auto; font-size: 12px; }

/* ---------- Herkese açık durum sayfası ---------- */
.public { background: var(--bg); }
.pub { max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }
.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 0; }
.pub-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; min-width: 0; }
.pub-brand .logo { color: var(--accent); flex: none; }
.pub-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-tools { display: flex; gap: 8px; align-items: center; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.lang-switch a { padding: 5px 9px; border-radius: 5px; font-size: 12px; font-weight: 700; color: var(--ink-3); text-decoration: none !important; }
.lang-switch a.is-active { background: var(--accent-soft); color: var(--accent); }

.pub-hero {
	position: relative; overflow: hidden;
	border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
	padding: 0 0 26px; margin-bottom: 20px;
}
.pub-ekg {
	height: 130px; margin-bottom: 18px;
	background-image:
		linear-gradient(var(--grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--grid-2) 1px, transparent 1px),
		linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
	border-bottom: 1px solid var(--line-2);
}
.pub-hero-text { padding: 0 26px; }
.pub-hero h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.025em; font-weight: 750; }
.pub-hero.is-operational h1 { color: var(--up); }
.pub-hero.is-partial h1 { color: var(--warn); }
.pub-hero.is-major h1 { color: var(--down); }
.pub-hero.is-maintenance h1 { color: var(--maint); }
.pub-hero p { color: var(--ink-2); margin-top: 6px; }

.pub-notice { display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--r); margin-bottom: 14px; background: var(--maint-soft); color: var(--maint); }
.pub-notice strong { display: block; color: var(--ink); }
.pub-notice span { font-size: 13px; }
.pub-notice p { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }

.pub-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 22px 18px; margin-bottom: 18px; }
.pub-group { font-size: 13px; font-weight: 700; color: var(--ink-3); padding: 14px 0 0; }
.pub-svc { padding: 16px 0 6px; border-bottom: 1px solid var(--line-2); }
.pub-svc:last-of-type { border-bottom: 0; }
.pub-svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pub-svc-name { font-weight: 650; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-svc-up { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.pub-svc-up small { color: var(--ink-3); font-weight: 500; }
.pub-empty { padding: 30px; text-align: center; color: var(--ink-3); }

.pub-history { margin-top: 30px; }
.pub-history > h2 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 12px; }
.pub-day { padding: 14px 0; border-top: 1px solid var(--line); }
.pub-day h3 { font-size: 14px; margin-bottom: 6px; }
.pub-inc { padding: 6px 0 6px 14px; border-left: 3px solid var(--up); margin: 6px 0; }
.pub-inc.is-open { border-left-color: var(--down); }
.pub-inc strong { display: block; font-size: 14px; }
.pub-inc span { font-size: 12.5px; color: var(--ink-3); }
.pub-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 0 0; margin-top: 26px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.pub-foot a { color: var(--ink-2); font-weight: 600; }

/* ---------- Bildirim ve modal ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: 400px; }
.toast { padding: 12px 16px; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: toastIn .2s ease-out; }
.toast.is-error { background: var(--down); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(8, 18, 15, .5); display: grid; place-items: center; padding: 20px; }
.modal-box { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.modal-box h2 { font-size: 17px; }
.modal-box p { color: var(--ink-2); margin: 8px 0 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1180px) {
	.mon-row { grid-template-columns: minmax(0, 2fr) 1.1fr 1.4fr .9fr; }
	.hide-md { display: none !important; }
	.type-pick { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.shell { grid-template-columns: 1fr; background: none; }
	.side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
	.side.is-open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
	.menu-btn { display: inline-grid; }
	.vitals { grid-template-columns: 1fr; }
	.vitals-state { grid-row: auto; border-right: 0; border-bottom: 1px solid var(--line); }
	.split-2, .split-form { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.topbar { padding: 12px 16px; }
	.topdown { display: none; }
	.content { padding: 16px; }
	.appfoot { padding: 16px; }
	.panel { padding: 16px; }
	.mon-row { grid-template-columns: minmax(0, 1fr) auto; }
	.hide-sm { display: none !important; }
	.vitals-stats { grid-template-columns: 1fr 1fr; }
	.vitals-stats div:nth-child(3) { border-left: 0; }
	.vitals-stats div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
	.grid-2, .grid-3, .check-list, .reqs, .seg { grid-template-columns: 1fr; }
	.type-pick { grid-template-columns: 1fr; }
	.search { width: 100%; }
	.panel-tools { width: 100%; }
	.panel-tools .search { flex: 1; }
	.open-incident { grid-template-columns: 10px minmax(0, 1fr) auto; }
	.open-incident > span:not(.dot) { display: none; }
	.pub { padding: 0 16px 30px; }
	.pub-hero h1 { font-size: 22px; }
	.pub-hero-text { padding: 0 18px; }
	.pub-card { padding: 4px 16px 16px; }
	.pub-svc-head { flex-wrap: wrap; }
	.pub-svc-up { order: 3; width: 100%; }
	.bars { gap: 1px; height: 28px; }
	.toasts { left: 16px; right: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.ekg-glow { display: none; }
}
.panel > p.muted + .snippet { margin-top: 16px; }

/* Kompakt Geçmiş Olaylar */
.pub-history-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.pub-history-head h2 { font-size: 17px; letter-spacing: -.01em; margin: 0; }
.pub-history-sub { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.pub-history-card { padding: 14px 18px; }
.pub-history-empty { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.pub-history-empty .dot.is-up { width: 8px; height: 8px; border-radius: 50%; background: var(--up); flex-shrink: 0; }
.pub-day:first-child { border-top: 0; padding-top: 2px; }
.pub-day:last-child { padding-bottom: 2px; }
.pub-inc { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-left: 3px solid var(--up); background: var(--bg-2, rgba(0,0,0,.02)); border-radius: 6px; margin: 6px 0; }
.pub-inc-info strong { display: block; font-size: 13.5px; }
.pub-inc-info span { font-size: 12px; color: var(--ink-3); }
.pub-inc-dur { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }


/* === MODERN PUBLIC STATUS PAGE === */
body.public {
    --bg: #f8fafc;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --surface-2: #f1f5f9;
    --ink: #0f172a;
    --ink-2: #475569;
    --ink-3: #64748b;
    --line: #e2e8f0;
    --line-2: #f1f5f9;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.1);
    --up: #10b981;
    --up-soft: rgba(16, 185, 129, 0.12);
    --down: #ef4444;
    --down-soft: rgba(239, 68, 68, 0.12);
    --warn: #f59e0b;
    --warn-soft: rgba(245, 158, 11, 0.12);
    --maint: #3b82f6;
    --maint-soft: rgba(59, 130, 246, 0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(16, 185, 129, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 85% 0%, rgba(37, 99, 235, 0.08), transparent);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

[data-theme="dark"] body.public {
    --bg: #09090b;
    --surface: rgba(18, 18, 21, 0.88);
    --surface-solid: #121215;
    --surface-2: #18181b;
    --ink: #f4f4f5;
    --ink-2: #a1a1aa;
    --ink-3: #71717a;
    --line: #27272a;
    --line-2: #1f1f23;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-soft: rgba(59, 130, 246, 0.14);
    --up: #34d399;
    --up-soft: rgba(52, 211, 153, 0.14);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(52, 211, 153, 0.11), transparent),
        radial-gradient(ellipse 60% 40% at 85% 0%, rgba(59, 130, 246, 0.09), transparent);
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes barGrow {
    from { width: 0; }
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

@keyframes ringPing {
    0% { transform: scale(0.75); opacity: 0.7; }
    85%, 100% { transform: scale(1.7); opacity: 0; }
}

@keyframes ekgFlow {
    0% { stroke-dashoffset: 240; opacity: 0.35; }
    50% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0.35; }
}

.pub-modern {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.pub-modern > * {
    animation: fadeSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pub-modern > *:nth-child(2) { animation-delay: 0.05s; }
.pub-modern > *:nth-child(3) { animation-delay: 0.10s; }
.pub-modern > *:nth-child(4) { animation-delay: 0.15s; }
.pub-modern > *:nth-child(5) { animation-delay: 0.20s; }

/* Header */
.pub-modern .pub-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pub-modern .pub-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pub-brand-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pub-brand-text strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.pub-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--up-soft);
    color: var(--up);
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--up);
    animation: livePulse 2s infinite;
}

.pub-modern .pub-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-home-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 9px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.pub-home-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

/* Hero Card */
.pub-hero-modern {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 26px 28px;
    border-radius: 18px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    margin-bottom: 22px;
}

.pub-hero-modern.is-operational {
    border-color: rgba(16, 185, 129, 0.32);
    box-shadow: 0 12px 32px -12px rgba(16, 185, 129, 0.18);
}
.pub-hero-modern.is-major {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 12px 32px -12px rgba(239, 68, 68, 0.2);
}

.pub-hero-ekg-bg {
    position: absolute;
    left: 52%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 86px;
    opacity: 0.36;
    pointer-events: none;
    color: var(--up);
}
.pub-hero-modern.is-major .pub-hero-ekg-bg { color: var(--down); }
.pub-hero-ekg-bg path {
    stroke-dasharray: 240;
    animation: ekgFlow 4s linear infinite;
}

.pub-hero-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 250px;
}

.pub-hero-status-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--up-soft);
}
.pub-hero-status-icon.is-major { background: var(--down-soft); }
.pub-hero-status-icon.is-partial { background: var(--warn-soft); }
.pub-hero-status-icon.is-maintenance { background: var(--maint-soft); }

.pub-hero-status-icon .pulse-core {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--up);
    box-shadow: 0 0 12px var(--up);
}
.pub-hero-status-icon.is-major .pulse-core { background: var(--down); box-shadow: 0 0 12px var(--down); }
.pub-hero-status-icon.is-partial .pulse-core { background: var(--warn); box-shadow: 0 0 12px var(--warn); }

.pub-hero-status-icon .pulse-ring {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--up);
    animation: ringPing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pub-hero-status-icon.is-major .pulse-ring { border-color: var(--down); }

.pub-hero-modern .pub-hero-text { padding: 0; }
.pub-hero-modern h1 {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--ink);
}
.pub-hero-modern.is-operational h1 { color: var(--up); }
.pub-hero-modern.is-major h1 { color: var(--down); }
.pub-hero-modern p { font-size: 13.5px; color: var(--ink-2); margin: 5px 0 0; line-height: 1.45; }

.pub-hero-stats {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pub-stat-box {
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    min-width: 100px;
    transition: transform 0.2s ease;
}
.pub-stat-box:hover { transform: translateY(-2px); }

.pub-stat-val {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.pub-stat-lbl {
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-3);
    margin-top: 2px;
}

/* Service Group Cards */
.pub-modern .pub-card {
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px -6px rgba(15, 23, 42, 0.05);
    padding: 6px 24px 18px;
    margin-bottom: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pub-modern .pub-card:hover {
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.08);
}

.pub-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 10px;
    border-bottom: 1px solid var(--line-2);
}

.pub-modern .pub-group {
    padding: 0;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
}

.pub-group-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-3);
    font-family: var(--mono);
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: 999px;
}

.pub-modern .pub-svc {
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--line-2);
}
.pub-modern .pub-svc:last-of-type { border-bottom: 0; }

.pub-modern .pub-svc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pub-svc-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.pub-svc-ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--accent-soft);
    color: var(--accent);
}
.pub-svc-ico.is-push { background: var(--up-soft); color: var(--up); }
.pub-svc-ico.is-tcp { background: var(--maint-soft); color: var(--maint); }

.pub-modern .pub-svc-name {
    font-size: 14.5px;
    font-weight: 650;
    color: var(--ink);
}

.pub-svc-lat {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.pub-svc-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Server Metrics Grid */
.pub-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.pub-metric-item {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.pub-metric-item:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.4);
}

.pub-metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    margin-bottom: 7px;
}

.pub-metric-top span { color: var(--ink-3); font-weight: 600; }
.pub-metric-top strong { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }

.pub-metric-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.pub-metric-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--up), #34d399);
    animation: barGrow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pub-metric-bar span.is-mid { background: linear-gradient(90deg, var(--warn), #fbbf24); }
.pub-metric-bar span.is-high { background: linear-gradient(90deg, var(--down), #f87171); }

.pub-metric-sub {
    font-size: 10.5px;
    color: var(--ink-3);
}

/* 90-day Uptime Bars */
.pub-modern .bars {
    gap: 3px;
    height: 28px;
}
.pub-modern .bars i,
.pub-modern .bars span {
    border-radius: 3px;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.pub-modern .bars i:hover,
.pub-modern .bars span:hover {
    transform: scaleY(1.16);
    filter: brightness(1.12);
}

.pub-modern .bars-legend {
    font-size: 11.5px;
    color: var(--ink-3);
    padding-top: 4px;
}

/* History Section */
.pub-history-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}
.pub-history-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.pub-history-sub { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.pub-history-card { padding: 14px 20px !important; }
.pub-history-empty { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.pub-history-empty .dot.is-up { width: 8px; height: 8px; border-radius: 50%; background: var(--up); flex-shrink: 0; box-shadow: 0 0 8px var(--up); }

@media (max-width: 680px) {
    .pub-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pub-hero-stats { width: 100%; }
    .pub-stat-box { flex: 1; }
    .pub-home-link { display: none; }
    .pub-hero-ekg-bg { display: none; }
}
/* === EXTRA MODERN ANIMATIONS === */
@keyframes refreshCountdown {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes cardShimmer {
    0% { transform: translateX(-120%) skewX(-18deg); }
    35%, 100% { transform: translateX(260%) skewX(-18deg); }
}

@keyframes barShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes dotRadar {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes ambientShift {
    0%, 100% { background-position: 50% -15%, 85% 0%; }
    50% { background-position: 45% -10%, 75% 8%; }
}

/* Top 60s live refresh progress bar */
.pub-refresh-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    z-index: 99;
    background: transparent;
    pointer-events: none;
}
.pub-refresh-bar span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--up));
    transform-origin: left center;
    animation: refreshCountdown 60s linear infinite;
    opacity: 0.75;
}

/* Subtle ambient background motion */
body.public {
    animation: ambientShift 14s ease-in-out infinite;
}

/* Hero subtle glass shimmer */
.pub-hero-modern::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-120%) skewX(-18deg);
    animation: cardShimmer 7s ease-in-out infinite;
    pointer-events: none;
}
[data-theme="dark"] .pub-hero-modern::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

/* Service status pill live radar dot */
.pub-modern .pill.is-up .dot {
    animation: dotRadar 2.2s infinite;
}

/* Service icon hover micro-interaction */
.pub-modern .pub-svc-ico {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}
.pub-modern .pub-svc:hover .pub-svc-ico {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
}
.pub-modern .pub-svc:hover .pub-svc-ico.is-push {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.22);
}

/* Animated shimmer inside live server CPU/RAM/Disk bars */
.pub-metric-bar span {
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, var(--up) 0%, #34d399 45%, #6ee7b7 50%, #34d399 55%, var(--up) 100%);
    animation: barGrow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both, barShine 3.6s linear infinite;
}
.pub-metric-bar span.is-mid {
    background-image: linear-gradient(90deg, var(--warn) 0%, #fbbf24 45%, #fde68a 50%, #fbbf24 55%, var(--warn) 100%);
}
.pub-metric-bar span.is-high {
    background-image: linear-gradient(90deg, var(--down) 0%, #f87171 45%, #fca5a5 50%, #f87171 55%, var(--down) 100%);
}

/* History green dot radar */
.pub-history-empty .dot.is-up {
    animation: dotRadar 2.2s infinite;
}

@media (prefers-reduced-motion: reduce) {
    .pub-refresh-bar span,
    .pub-hero-modern::after,
    .pub-hero-ekg-bg path,
    .pub-hero-status-icon .pulse-ring,
    .pub-modern .pill.is-up .dot,
    .pub-metric-bar span,
    .pub-history-empty .dot.is-up,
    body.public {
        animation: none !important;
    }
}
/* === HERO GLYPH & LIVE BARS === */
@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes eqBounce {
    0%, 100% { transform: scaleY(0.42); opacity: 0.65; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes glyphPop {
    0% { stroke-dashoffset: 32; opacity: 0; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

.pub-hero-status-icon {
    color: var(--up);
    background: var(--up-soft);
    border-radius: 14px;
}
.pub-hero-status-icon.is-major { color: var(--down); background: var(--down-soft); }
.pub-hero-status-icon.is-partial { color: var(--warn); background: var(--warn-soft); }
.pub-hero-status-icon.is-maintenance { color: var(--maint); background: var(--maint-soft); }

.pub-hero-status-icon .hero-orbit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: orbitSpin 5.5s linear infinite;
}

.pub-hero-status-icon .hero-glyph {
    position: relative;
    width: 21px;
    height: 21px;
    z-index: 1;
}

.pub-hero-status-icon .glyph-draw {
    stroke-dasharray: 32;
    animation: glyphPop 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 3-bar equalizer replacing the green dot in header */
.live-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 11px;
}
.live-bars i {
    display: block;
    width: 2px;
    height: 100%;
    border-radius: 2px;
    background: var(--up);
    transform-origin: bottom;
    animation: eqBounce 1.1s ease-in-out infinite;
}
.live-bars i:nth-child(2) { animation-delay: 0.2s; }
.live-bars i:nth-child(3) { animation-delay: 0.4s; }

/* Remove annoying radar pulse from small pill dots */
.pub-modern .pill.is-up .dot,
.pub-history-empty .dot.is-up {
    animation: none !important;
    box-shadow: none !important;
}
/* === PRO SAAS POLISH === */
body.public {
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
    animation: none !important;
}
[data-theme="dark"] body.public {
    background-color: #09090b;
    background-image: radial-gradient(#1f1f23 1px, transparent 1px);
    background-size: 24px 24px;
}

.pub-modern {
    max-width: 840px;
    padding: 36px 20px 64px;
}

.pub-brand-text strong {
    font-size: 17px;
    white-space: nowrap;
}

/* Clean crisp hero without overlapping lines */
.pub-hero-modern {
    background: var(--surface-solid);
    border: 1px solid var(--line);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
    padding: 22px 24px;
}
.pub-hero-modern::after { display: none; }
.pub-hero-modern h1 { font-size: 21px; }
.pub-hero-modern p { font-size: 13px; margin-top: 3px; }

/* Crisp notice banner */
.pub-modern .pub-notice {
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    padding: 14px 18px;
    margin-bottom: 18px;
    align-items: flex-start;
}
.pub-modern .pub-notice svg { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.pub-modern .pub-notice strong { font-size: 13.5px; color: var(--ink); }
.pub-modern .pub-notice span { font-size: 12px; color: var(--accent); font-weight: 600; display: block; margin-top: 2px; }
.pub-modern .pub-notice p { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.5; }

/* Crisp cards */
.pub-modern .pub-card {
    background: var(--surface-solid);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px -10px rgba(15, 23, 42, 0.06);
}
.pub-modern .pub-card:hover {
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05), 0 10px 24px -10px rgba(15, 23, 42, 0.09);
}

/* 30-day bars look much fuller and sharper */
.pub-modern .bars {
    gap: 4px;
    height: 28px;
}
.pub-modern .bars i,
.pub-modern .bars span {
    border-radius: 4px;
}

.pub-modern .pub-stat-box {
    background: var(--surface-2);
    padding: 9px 14px;
    min-width: 96px;
}
/* === WAVE & BAR ANIMATIONS === */
@keyframes waveFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -280; }
}

@keyframes waveFlowReverse {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 360; }
}

@keyframes barsPopIn {
    0% { transform: scaleY(0.2); opacity: 0; }
    100% { transform: scaleY(1); opacity: 1; }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pub-hero-modern {
    padding-bottom: 34px;
}

.pub-hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 30px;
    color: var(--up);
    opacity: 0.35;
    pointer-events: none;
}
.pub-hero-modern.is-major .pub-hero-wave { color: var(--down); }
.pub-hero-modern.is-partial .pub-hero-wave { color: var(--warn); }

.pub-hero-wave .wave-line-1 {
    stroke-dasharray: 14 8;
    animation: waveFlow 9s linear infinite;
}
.pub-hero-wave .wave-line-2 {
    opacity: 0.45;
    stroke-dasharray: 8 10;
    animation: waveFlowReverse 12s linear infinite;
}

.pub-stat-val {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.stat-ico {
    width: 15px;
    height: 15px;
    color: var(--up);
    flex-shrink: 0;
}
.stat-ico.is-spin-slow {
    color: var(--accent);
}

.pub-modern .bars i,
.pub-modern .bars span {
    transform-origin: bottom;
    animation: barsPopIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pub-hero-modern h1 {
    font-family: 'Rajdhani', system-ui, -apple-system, sans-serif !important;
    font-weight: 700 !important;
    font-size: 26px;
    letter-spacing: 0.01em;
}

/* === HEADER & METRIC SHIMMER FIX === */
.pub-modern .pub-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pub-brand-logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.pub-brand-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pub-brand-stack strong {
    font-family: 'Rajdhani', system-ui, -apple-system, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: var(--ink);
}
.pub-brand-sub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ink-3);
    line-height: 1;
}
.pub-brand-sub .live-bars {
    height: 9px;
}

/* Crisp universal ::after shimmer for CPU, RAM (is-mid), Disk, and Load bars */
@keyframes metricShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}
.pub-metric-bar span {
    position: relative;
    overflow: hidden;
    animation: barGrow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}
.pub-metric-bar span::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: metricShimmer 2.2s ease-in-out infinite;
}

/* === CLEAN METRIC BARS === */
@keyframes stripeFlow {
    0% { background-position: 0 0; }
    100% { background-position: 24px 0; }
}

.pub-metric-bar span {
    position: relative;
    overflow: hidden;
    background-size: 100% 100% !important;
    background-image: linear-gradient(90deg, #10b981, #34d399) !important;
    animation: barGrow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}
.pub-metric-bar span.is-mid {
    background-image: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
}
.pub-metric-bar span.is-high {
    background-image: linear-gradient(90deg, #ef4444, #f87171) !important;
}
.pub-metric-bar span::after {
    content: '' !important;
    display: block !important;
    position: absolute;
    inset: 0;
    background-image: /* full-width */ repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.22) 0px,
        rgba(255, 255, 255, 0.22) 5px,
        transparent 5px,
        transparent 10px
    );
    background-size: 24px 24px;
    animation: stripeFlow 1.2s linear infinite;
}
.pub-metric-bar span::after { width: 100% !important; height: 100% !important; left: 0 !important; top: 0 !important; }

/* === MODERN ADMIN & AUTH THEME === */
body.admin,
body.auth {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --ink: #0f172a;
    --ink-2: #475569;
    --ink-3: #64748b;
    --line: #e2e8f0;
    --line-2: #f1f5f9;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-ink: #ffffff;
    --accent-soft: rgba(37, 99, 235, 0.1);
    --up: #10b981;
    --up-soft: rgba(16, 185, 129, 0.12);
    --down: #ef4444;
    --down-soft: rgba(239, 68, 68, 0.12);
    --warn: #f59e0b;
    --warn-soft: rgba(245, 158, 11, 0.12);
    --maint: #3b82f6;
    --maint-soft: rgba(59, 130, 246, 0.12);
    --focus: 0 0 0 3px rgba(37, 99, 235, 0.22);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    background-color: var(--bg);
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--ink);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] body.admin,
[data-theme="dark"] body.auth {
    --bg: #09090b;
    --surface: #121215;
    --surface-2: #18181b;
    --ink: #f4f4f5;
    --ink-2: #a1a1aa;
    --ink-3: #71717a;
    --line: #27272a;
    --line-2: #1f1f23;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-ink: #ffffff;
    --accent-soft: rgba(59, 130, 246, 0.14);
    --up: #34d399;
    --up-soft: rgba(52, 211, 153, 0.14);
    background-image: radial-gradient(#1f1f23 1px, transparent 1px);
}

/* Sidebar */
body.admin .sidebar {
    background: var(--surface);
    border-right: 1px solid var(--line);
}

body.admin .brand strong {
    font-family: 'Rajdhani', system-ui, -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.admin .nav a {
    border-radius: 9px;
    font-weight: 500;
    font-size: 13.5px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

body.admin .nav a.is-active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

/* Topbar */
body.admin .topbar {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
[data-theme="dark"] body.admin .topbar {
    background: rgba(9, 9, 11, 0.82);
}

body.admin .topbar h1 {
    font-family: 'Rajdhani', system-ui, -apple-system, sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Cards & Panels */
body.admin .panel,
body.admin .stat,
body.auth .auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px -10px rgba(15, 23, 42, 0.06);
}

body.admin .content > * {
    animation: fadeSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
body.admin .content > *:nth-child(2) { animation-delay: 0.04s; }
body.admin .content > *:nth-child(3) { animation-delay: 0.08s; }

/* Monitor table rows */
body.admin .mon-table {
    border-radius: 12px;
    border: 1px solid var(--line);
}

body.admin a.mon-row {
    transition: background 0.15s ease;
}

body.admin .stat-val,
body.admin .mon-lat,
body.admin .mon-up {
    font-family: var(--mono);
}

/* Buttons & Inputs */
body.admin .btn,
body.auth .btn {
    border-radius: 9px;
    font-weight: 600;
    transition: all 0.16s ease;
}

body.admin .btn-primary,
body.auth .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
}
body.admin .btn-primary:hover,
body.auth .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

body.admin input[type="text"],
body.admin input[type="password"],
body.admin input[type="url"],
body.admin input[type="number"],
body.admin select,
body.admin textarea,
body.auth input[type="text"],
body.auth input[type="password"] {
    border-radius: 9px;
    border-color: var(--line);
    background: var(--surface-2);
}

/* Auth / Login Card */
body.auth .auth-card {
    padding: 32px;
    border-radius: 18px;
}
body.auth .auth-head h1 {
    font-family: 'Rajdhani', system-ui, -apple-system, sans-serif;
    font-size: 24px;
    font-weight: 700;
}

/* Cron status pill in sidebar */
body.admin .cron-ok {
    background: var(--up-soft);
    color: var(--up);
    border-radius: 9px;
    font-weight: 600;
}
/* === ADMIN MAX-WIDTH MATCH === */
body.admin .content,
body.admin .appfoot {
    max-width: 920px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
body.admin .topbar {
    padding-left: max(28px, calc((100% - 920px) / 2 + 28px));
    padding-right: max(28px, calc((100% - 920px) / 2 + 28px));
}
.pub-svc-ico.is-fav { background: var(--surface-2); border: 1px solid var(--line); }
.pub-svc-fav { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; display: block; }
.pub-svc-ico.is-dl { background: rgba(14, 165, 233, 0.13); color: #0284c7; }
[data-theme="dark"] .pub-svc-ico.is-dl { color: #38bdf8; }

/* === SERVICE ICON ANIMATIONS === */
@keyframes dlArrowBounce {
    0%, 100% { transform: translateY(-1.5px); opacity: 0.85; }
    50% { transform: translateY(2px); opacity: 1; }
}

@keyframes favBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.09); }
}

@keyframes favRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.22); }
    50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0); }
}

@keyframes dlRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.28); }
    50% { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0); }
}

.pub-svc-ico.is-dl {
    animation: dlRing 2.6s ease-in-out infinite;
}
.dl-svg .dl-arrow {
    animation: dlArrowBounce 1.5s ease-in-out infinite;
}

.pub-svc-ico.is-fav {
    animation: favRing 2.8s ease-in-out infinite;
}
.pub-svc-ico.is-fav .pub-svc-fav {
    animation: favBreath 2.8s ease-in-out infinite;
}
/* Nabız Geliştirmeleri */
.panel-title-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--line, #e2e8f0); background: var(--surface, #fff); color: var(--muted, #64748b); cursor: pointer; }
.live-toggle .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted, #94a3b8); }
.live-toggle.is-on { color: var(--up, #16a34a); border-color: rgba(22,163,74,.3); }
.live-toggle.is-on .dot { background: var(--up, #16a34a); box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 12px; }
.filter-chip { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line, #e2e8f0); background: transparent; color: var(--muted, #64748b); cursor: pointer; transition: all .15s; }
.filter-chip:hover { border-color: var(--text, #0f172a); color: var(--text, #0f172a); }
.filter-chip.is-active { background: var(--text, #0f172a); color: var(--bg, #fff); border-color: var(--text, #0f172a); }
.filter-chip.is-danger { color: var(--down, #dc2626); border-color: rgba(220,38,38,.3); }
.filter-chip.is-danger.is-active { background: var(--down, #dc2626); color: #fff; border-color: var(--down, #dc2626); }
.ssl-chip { font-family: monospace; font-size: 11px; color: var(--up, #16a34a); font-weight: 600; }
.ssl-chip.is-warn { color: var(--warn, #d97706); }
.inc-note-preview { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; }
.inc-badge { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 10.5px; font-weight: 700; background: rgba(37,99,235,.1); color: #2563eb; border: 1px solid rgba(37,99,235,.22); }
.inc-note-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line, #e2e8f0); }
.inc-note-form select, .inc-note-form input { padding: 5px 8px; font-size: 12px; border: 1px solid var(--line, #cbd5e1); border-radius: 6px; background: var(--surface, #fff); color: var(--text, #0f172a); }
.inc-note-form input { flex: 1; min-width: 180px; }
.pub-inc-note { margin: 4px 0 0; font-size: 12.5px; color: var(--muted, #64748b); }
