/* =============================================================================
   HEPYES VPN — Security UI design system
   Fontlar: Space Grotesk (başlık/sayılar) · Manrope (metin) · JetBrains Mono (teknik)
   ========================================================================== */
:root {
  --bg: #05080f;
  --bg-2: #080d18;
  --panel: rgba(14, 21, 38, 0.72);
  --panel-solid: #0c1322;
  --panel-2: #101a2e;
  --panel-3: #14203a;
  --line: rgba(148, 163, 184, 0.11);
  --line-2: rgba(148, 163, 184, 0.19);
  --line-3: rgba(148, 163, 184, 0.3);
  --text: #e8eef8;
  --text-2: #a8b4c8;
  --muted: #6c7b94;
  --accent: #22d3ee;
  --accent-2: #2dd4bf;
  --accent-3: #6366f1;
  --accent-rgb: 34, 211, 238;
  --on-accent: #031317;
  --ok: #34d399;
  --ok-rgb: 52, 211, 153;
  --warn: #fbbf24;
  --warn-rgb: 251, 191, 36;
  --err: #f87171;
  --err-rgb: 248, 113, 113;
  --info: #60a5fa;
  --info-rgb: 96, 165, 250;
  --violet: #a78bfa;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 8px 30px -8px rgba(var(--accent-rgb), 0.45);
  --font: 'Manrope Variable', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk Variable', 'Space Grotesk', var(--font);
  --font-mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --sidebar-w: 268px;
  --topbar-h: 66px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-accent='emerald'] { --accent: #34d399; --accent-2: #10b981; --accent-3: #06b6d4; --accent-rgb: 52, 211, 153; --on-accent: #02140d; }
[data-accent='violet'] { --accent: #a78bfa; --accent-2: #8b5cf6; --accent-3: #ec4899; --accent-rgb: 167, 139, 250; --on-accent: #12082b; }
[data-accent='blue'] { --accent: #60a5fa; --accent-2: #3b82f6; --accent-3: #8b5cf6; --accent-rgb: 96, 165, 250; --on-accent: #04122b; }
[data-accent='amber'] { --accent: #fbbf24; --accent-2: #f59e0b; --accent-3: #ef4444; --accent-rgb: 251, 191, 36; --on-accent: #1c1003; }
[data-accent='rose'] { --accent: #fb7185; --accent-2: #f43f5e; --accent-3: #a855f7; --accent-rgb: 251, 113, 133; --on-accent: #22030a; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(var(--accent-rgb), 0.09), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(99, 102, 241, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 85%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; font-weight: 600; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }
::selection { background: rgba(var(--accent-rgb), 0.3); }
:focus-visible { outline: 2px solid rgba(var(--accent-rgb), 0.7); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.18); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(148, 163, 184, 0.3); }
::-webkit-scrollbar-track { background: transparent; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
svg.i.fill { fill: currentColor; stroke: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .err { color: var(--err); } .accent { color: var(--accent); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 6px; }
.grow { flex: 1; min-width: 0; }
.gap-lg { gap: 18px; }
.mt { margin-top: 16px; } .mt-sm { margin-top: 8px; } .mb { margin-bottom: 16px; }
.small { font-size: 12.5px; } .xs { font-size: 11.5px; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* ---------- Açılış ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 22px; color: var(--accent); }
.boot-mark { width: 64px; height: 64px; filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), 0.55)); animation: bootPulse 1.6s ease-in-out infinite; }
.boot-bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(148, 163, 184, 0.15); overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: bootBar 1.1s var(--ease) infinite; }
@keyframes bootPulse { 50% { transform: scale(0.94); opacity: 0.75; } }
@keyframes bootBar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Butonlar ---------- */
.btn {
  --b-bg: rgba(148, 163, 184, 0.08);
  --b-bd: var(--line-2);
  --b-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 15px;
  border-radius: 11px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font: 600 13.5px/1 var(--font); letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.08s, color 0.18s;
  text-decoration: none !important;
}
.btn:hover { --b-bg: rgba(148, 163, 184, 0.14); --b-bd: var(--line-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.loading { opacity: 0.55; pointer-events: none; }
.btn.loading::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
.btn.loading svg.i { display: none; }
.btn-primary {
  --b-bg: linear-gradient(135deg, var(--accent), var(--accent-2));
  --b-bd: transparent; --b-fg: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px -10px rgba(var(--accent-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 30px -8px rgba(var(--accent-rgb), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; color: var(--text-2); }
.btn-ghost:hover { --b-bg: rgba(148, 163, 184, 0.1); --b-bd: transparent; color: var(--text); }
.btn-danger { --b-bg: rgba(var(--err-rgb), 0.12); --b-bd: rgba(var(--err-rgb), 0.35); --b-fg: #fecaca; }
.btn-danger:hover { --b-bg: rgba(var(--err-rgb), 0.2); --b-bd: rgba(var(--err-rgb), 0.55); }
.btn-solid-danger { --b-bg: var(--err); --b-bd: transparent; --b-fg: #2a0505; }
.btn-ok { --b-bg: rgba(var(--ok-rgb), 0.12); --b-bd: rgba(var(--ok-rgb), 0.35); --b-fg: #bbf7d0; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; gap: 6px; }
.btn-sm svg.i { width: 16px; height: 16px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 11.5px; border-radius: 7px; gap: 5px; }
.btn-xs svg.i { width: 14px; height: 14px; }
.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-icon.btn-xs { width: 26px; }
.btn-block { width: 100%; }
.btn-lg { height: 46px; font-size: 14.5px; border-radius: 13px; padding: 0 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: 0.01em; display: flex; align-items: center; gap: 6px; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 13px;
  background: rgba(5, 9, 18, 0.6); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 11px;
  font: 500 13.5px var(--font);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.input::placeholder, .textarea::placeholder { color: #4f5d75; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.7); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12); background: rgba(5, 9, 18, 0.85); }
.input.mono, .textarea.mono { font-family: var(--font-mono); font-size: 12.5px; }
.textarea { height: auto; min-height: 92px; padding: 11px 13px; resize: vertical; line-height: 1.55; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a99b3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px; }
.select option { background: var(--panel-solid); color: var(--text); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 82px; }
.input-group .addons { position: absolute; right: 5px; display: flex; gap: 2px; }
.input-icon { position: relative; }
.input-icon > svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 38px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 500; color: var(--text-2); }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 6px; border: 1.5px solid var(--line-3); background: rgba(5, 9, 18, 0.6); display: grid; place-items: center; cursor: pointer; transition: 0.15s; flex: none; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; color: var(--text-2); font-weight: 500; }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 23px; border-radius: 20px; background: rgba(148, 163, 184, 0.2); position: relative; cursor: pointer; transition: 0.2s; margin: 0; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #cbd5e1; transition: 0.2s var(--ease); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.switch input:checked { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.switch input:checked::after { transform: translateX(17px); background: #fff; }
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; background: rgba(5, 9, 18, 0.6); border: 1px solid var(--line-2); flex-wrap: wrap; }
.seg button { height: 32px; padding: 0 13px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); font: 600 12.5px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: 0.15s; }
.seg button:hover { color: var(--text); background: rgba(148, 163, 184, 0.08); }
.seg button.on { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35); }
.seg.block { display: flex; }
.seg.block button { flex: 1; justify-content: center; }
.fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(5, 9, 18, 0.3); }
.fieldset-title { font: 600 13px var(--font-display); color: var(--text); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11.5px; color: var(--text-2); }
details.adv > summary { cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 13px; list-style: none; display: flex; align-items: center; gap: 8px; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv[open] > summary svg { transform: rotate(90deg); }
details.adv > summary svg { transition: transform 0.2s; }
details.adv > .adv-body { margin-top: 14px; }

/* Seçilebilir kartlar (sunucu seçimi vb.) */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pick { position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 9, 18, 0.45); cursor: pointer; transition: 0.15s; min-width: 0; }
.pick:hover { border-color: var(--line-3); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .pick-box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-3); flex: none; display: grid; place-items: center; transition: 0.15s; }
.pick.on, .pick:has(input:checked) { border-color: rgba(var(--accent-rgb), 0.6); background: rgba(var(--accent-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.2); }
.pick:has(input:checked) .pick-box { background: var(--accent); border-color: var(--accent); }
.pick:has(input:checked) .pick-box::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.pick.disabled { opacity: 0.45; pointer-events: none; }
.pick-title { font-weight: 600; font-size: 13px; }
.pick-sub { font-size: 11.5px; color: var(--muted); }

/* ---------- Kartlar ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 30, 52, 0.66), rgba(11, 17, 31, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 0;
}
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); min-height: 60px; }
.card-head h3 { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.card-head h3 svg.i { color: var(--accent); }
.card-head .sub { color: var(--muted); font-size: 12.5px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 8px; }
.card-body.flush { padding: 0; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.card.glow::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.5), transparent 40%, transparent 60%, rgba(99, 102, 241, 0.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.span-2 { grid-column: span 2; }

/* İstatistik kartı */
.stat { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { color: var(--text-2); font-weight: 600; font-size: 12.5px; letter-spacing: 0.02em; }
.stat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.22); }
.stat-icon.ok { color: var(--ok); background: rgba(var(--ok-rgb), 0.1); border-color: rgba(var(--ok-rgb), 0.22); }
.stat-icon.violet { color: var(--violet); background: rgba(167, 139, 250, 0.1); border-color: rgba(167, 139, 250, 0.22); }
.stat-icon.warn { color: var(--warn); background: rgba(var(--warn-rgb), 0.1); border-color: rgba(var(--warn-rgb), 0.22); }
.stat-value { font: 600 30px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stat-foot { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.stat-foot b { color: var(--text-2); font-weight: 600; }
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 70%); pointer-events: none; }

/* ---------- Rozetler / durum ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 20px; font: 600 11.5px var(--font); letter-spacing: 0.02em; white-space: nowrap; border: 1px solid transparent; background: rgba(148, 163, 184, 0.1); color: var(--text-2); border-color: var(--line-2); }
.badge .dot { width: 7px; height: 7px; }
.badge.ok { color: #6ee7b7; background: rgba(var(--ok-rgb), 0.1); border-color: rgba(var(--ok-rgb), 0.28); }
.badge.warn { color: #fcd34d; background: rgba(var(--warn-rgb), 0.1); border-color: rgba(var(--warn-rgb), 0.28); }
.badge.err { color: #fca5a5; background: rgba(var(--err-rgb), 0.1); border-color: rgba(var(--err-rgb), 0.28); }
.badge.info { color: #93c5fd; background: rgba(var(--info-rgb), 0.1); border-color: rgba(var(--info-rgb), 0.28); }
.badge.accent { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); border-color: rgba(var(--accent-rgb), 0.3); }
.badge.violet { color: #c4b5fd; background: rgba(167, 139, 250, 0.1); border-color: rgba(167, 139, 250, 0.3); }
.badge.sm { height: 20px; font-size: 10.5px; padding: 0 7px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; position: relative; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(var(--ok-rgb), 0.18); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(var(--warn-rgb), 0.18); }
.dot.err { background: var(--err); box-shadow: 0 0 0 3px rgba(var(--err-rgb), 0.18); }
.dot.info { background: var(--info); box-shadow: 0 0 0 3px rgba(var(--info-rgb), 0.18); }
.dot.accent { background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
.dot.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }
.fi { border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); flex: none; }
.flag-lg { width: 30px !important; height: 22px; border-radius: 5px; }
.flag-round { width: 22px !important; height: 22px; border-radius: 50%; background-size: cover; }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th { text-align: left; font: 600 11px var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(5, 9, 18, 0.25); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover { background: rgba(148, 163, 184, 0.035); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr.selected { background: rgba(var(--accent-rgb), 0.06); }
.table .actions { text-align: right; white-space: nowrap; }
.table .w-check { width: 42px; }
.cell-user { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 12.5px var(--font-display); color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-3)); flex: none; position: relative; text-transform: uppercase; }
.avatar.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.avatar.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 18px; }
.avatar .dot { position: absolute; right: -2px; bottom: -2px; border: 2px solid var(--panel-solid); width: 11px; height: 11px; box-shadow: none; }
.u-name { font-weight: 700; font-size: 13.5px; }
.u-sub { color: var(--muted); font-size: 12px; }
.flags-stack { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.srv-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 5px; border-radius: 7px; background: rgba(148, 163, 184, 0.08); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.srv-chip .fi { width: 18px; height: 13px; }
.srv-chip.err { border-color: rgba(var(--err-rgb), 0.4); color: #fca5a5; }
.srv-chip.pending { border-style: dashed; }

/* Kullanım çubuğu */
.meter { height: 7px; border-radius: 6px; background: rgba(148, 163, 184, 0.12); overflow: hidden; position: relative; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 0.6s var(--ease); }
.meter.warn > span { background: linear-gradient(90deg, #f59e0b, var(--warn)); }
.meter.err > span { background: linear-gradient(90deg, #ef4444, var(--err)); }
.meter.lg { height: 10px; }
.usage { min-width: 130px; display: flex; flex-direction: column; gap: 6px; }
.usage-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); gap: 8px; }

/* ---------- Kabuk (layout) ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(9, 14, 26, 0.92), rgba(6, 10, 19, 0.95));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; text-decoration: none !important; color: var(--text); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; position: relative; flex: none; background: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-rgb), 0.05) 70%); border: 1px solid rgba(var(--accent-rgb), 0.35); box-shadow: 0 0 24px -6px rgba(var(--accent-rgb), 0.6); color: var(--accent); overflow: hidden; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-name { font: 700 16px/1.15 var(--font-display); letter-spacing: -0.01em; }
.brand-tag { font-size: 10.5px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-top: 3px; }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.nav-group { margin-top: 14px; }
.nav-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em; color: #55637b; font-weight: 700; padding: 0 12px 7px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px;
  border-radius: 11px; color: var(--text-2); font-weight: 600; font-size: 13.5px;
  text-decoration: none !important; transition: 0.15s; margin-bottom: 2px;
}
.nav a svg.i { width: 19px; height: 19px; color: #7d8ba3; transition: 0.15s; }
.nav a:hover { background: rgba(148, 163, 184, 0.07); color: var(--text); }
.nav a:hover svg.i { color: var(--text); }
.nav a.active { color: var(--text); background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.03)); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.18); }
.nav a.active svg.i { color: var(--accent); filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.6)); }
.nav a.active::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav-count { margin-left: auto; font: 600 11px var(--font-mono); padding: 2px 7px; border-radius: 7px; background: rgba(148, 163, 184, 0.1); color: var(--text-2); }
.nav-count.live { background: rgba(var(--ok-rgb), 0.12); color: var(--ok); }
.side-foot { padding: 12px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 11px; padding: 9px; border-radius: 12px; transition: 0.15s; cursor: pointer; color: var(--text); text-decoration: none !important; }
.me:hover { background: rgba(148, 163, 184, 0.07); }
.me-name { font-weight: 700; font-size: 13px; }
.me-role { font-size: 11.5px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: rgba(5, 8, 15, 0.72); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.topbar .menu-btn { display: none; }
.crumbs { display: flex; flex-direction: column; min-width: 0; }
.crumbs .pt { font: 600 17px/1.2 var(--font-display); letter-spacing: -0.01em; }
.crumbs .ps { font-size: 12px; color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--text-2); background: rgba(5, 9, 18, 0.5); }
.content { padding: 26px 28px 60px; width: 100%; max-width: 1560px; margin: 0 auto; }
.page { animation: pageIn 0.35s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; display: flex; align-items: center; gap: 12px; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.backdrop { display: none; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 0; background: none; color: var(--muted); font: 600 13.5px var(--font); cursor: pointer; white-space: nowrap; transition: color 0.15s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); }
.tabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tabs .count { font: 600 11px var(--font-mono); padding: 1px 6px; border-radius: 6px; background: rgba(148, 163, 184, 0.1); }

/* Filtre çipleri */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5, 9, 18, 0.4); color: var(--text-2); font: 600 12.5px var(--font); cursor: pointer; transition: 0.15s; }
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip.on { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.1); }
.chip .n { font: 600 11px var(--font-mono); opacity: 0.8; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .search { flex: 1; min-width: 200px; max-width: 360px; }
.bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; background: rgba(var(--accent-rgb), 0.08); border-bottom: 1px solid rgba(var(--accent-rgb), 0.25); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

/* ---------- Boş durum / iskelet ---------- */
.empty { padding: 46px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-art { width: 88px; height: 88px; color: rgba(var(--accent-rgb), 0.7); }
.empty h3 { color: var(--text); font-size: 16px; }
.empty p { margin: 0; max-width: 420px; font-size: 13px; }
.skeleton { background: linear-gradient(90deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.06)); background-size: 200% 100%; animation: sk 1.3s linear infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.loading-block { display: grid; place-items: center; padding: 60px; color: var(--muted); }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(var(--accent-rgb), 0.2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }

/* ---------- Anahtar/değer listesi ---------- */
.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 10px 18px; font-size: 13px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.copyable { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border-radius: 6px; padding: 1px 4px; margin: -1px -4px; transition: background 0.15s; }
.copyable:hover { background: rgba(var(--accent-rgb), 0.1); }
.copyable svg.i { width: 14px; height: 14px; color: var(--muted); }
.secret-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(5, 9, 18, 0.6); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 13.5px; }
.secret-box .val { flex: 1; min-width: 0; overflow-wrap: anywhere; letter-spacing: 0.03em; }

/* ---------- Konsol (canlı günlük) ---------- */
.console { background: #03060c; border: 1px solid var(--line); border-radius: 12px; font: 12.5px/1.65 var(--font-mono); color: #9fb0c8; padding: 14px 16px; height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.console .ln { display: flex; gap: 12px; }
.console .ts { color: #3e4b61; flex: none; user-select: none; }
.console .l-step { color: var(--accent); font-weight: 600; }
.console .l-success { color: var(--ok); }
.console .l-error { color: var(--err); }
.console .l-warn { color: var(--warn); }
.console-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #060b14; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; }
.console-head + .console { border-radius: 0 0 12px 12px; }
.console-head .lights { display: flex; gap: 6px; }
.console-head .lights span { width: 10px; height: 10px; border-radius: 50%; background: #1f2937; }
.console-head .lights span:nth-child(1) { background: #ef4444aa; } .console-head .lights span:nth-child(2) { background: #f59e0baa; } .console-head .lights span:nth-child(3) { background: #10b981aa; }

/* İlerleme */
.progress { height: 8px; border-radius: 8px; background: rgba(148, 163, 184, 0.12); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); position: relative; transition: width 0.5s var(--ease); }
.progress > span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); animation: shine 1.6s linear infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.stepper { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.step { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: 11px; border: 1px solid var(--line); background: rgba(5, 9, 18, 0.35); font-size: 12px; font-weight: 600; color: var(--muted); }
.step .si { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-3); flex: none; font: 600 10.5px var(--font-mono); }
.step.done { color: var(--text-2); }
.step.done .si { background: rgba(var(--ok-rgb), 0.15); border-color: rgba(var(--ok-rgb), 0.5); color: var(--ok); }
.step.cur { color: var(--text); border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.07); }
.step.cur .si { border-color: var(--accent); border-right-color: transparent; animation: spin 0.9s linear infinite; }
.step.fail { color: #fca5a5; border-color: rgba(var(--err-rgb), 0.45); }
.step.fail .si { border-color: var(--err); color: var(--err); }

/* ---------- Sunucu kartları ---------- */
.srv-card { padding: 18px; display: flex; flex-direction: column; gap: 16px; transition: border-color 0.2s, transform 0.2s; }
.srv-card:hover { border-color: var(--line-2); }
.srv-head { display: flex; align-items: center; gap: 12px; }
.srv-flag { position: relative; flex: none; }
.srv-flag .fi { width: 40px !important; height: 30px; border-radius: 7px; display: block; }
.srv-flag .dot { position: absolute; right: -4px; bottom: -4px; border: 2px solid var(--panel-solid); width: 12px; height: 12px; box-shadow: none; }
.srv-name { font: 600 15.5px/1.25 var(--font-display); }
.srv-sub { color: var(--muted); font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.srv-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mtile { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mtile-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; color: var(--muted); font-weight: 600; gap: 6px; }
.mtile-top b { font: 600 13px var(--font-display); color: var(--text); }
.srv-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); padding-top: 14px; border-top: 1px dashed var(--line-2); }
.srv-foot .it { display: inline-flex; align-items: center; gap: 6px; }
.srv-foot svg.i { width: 15px; height: 15px; color: var(--muted); }
.ring { --p: 0; --c: var(--accent); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(148, 163, 184, 0.12) 0); position: relative; flex: none; }
.ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--panel-solid); }
.ring span { position: relative; font: 600 12px var(--font-display); }

/* Metrik kutuları (sunucu detay) */
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.metric { padding: 15px 16px; display: flex; flex-direction: column; gap: 10px; }
.metric .m-label { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.metric .m-label svg.i { width: 16px; height: 16px; color: var(--accent); }
.metric .m-val { font: 600 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.metric .m-val small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.metric .m-sub { font-size: 11.5px; color: var(--muted); }
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 200px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Topoloji kahraman alanı */
.hero { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: center; overflow: hidden; }
.hero h2 { font-size: 26px; line-height: 1.15; }
.hero h2 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-2); margin: 10px 0 0; max-width: 440px; }
.hero-stats { display: flex; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.hero-stats .hs b { display: block; font: 600 24px/1 var(--font-display); }
.hero-stats .hs span { font-size: 12px; color: var(--muted); font-weight: 600; }
.topo { width: 100%; height: 260px; }
.topo .link { stroke: rgba(var(--accent-rgb), 0.35); stroke-width: 1.2; fill: none; stroke-dasharray: 4 6; animation: dash 1.2s linear infinite; }
.topo .link.off { stroke: rgba(var(--err-rgb), 0.35); animation: none; stroke-dasharray: 2 6; }
.topo .link.idle { stroke: rgba(148, 163, 184, 0.22); animation: none; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.topo .orbit { fill: none; stroke: rgba(148, 163, 184, 0.09); }
.topo .orbit.spin { stroke: rgba(var(--accent-rgb), 0.25); stroke-dasharray: 2 10; transform-origin: center; transform-box: fill-box; animation: spin 40s linear infinite; }
.topo text { font: 600 11px var(--font); fill: var(--text-2); }
.topo .node-ring { fill: rgba(5, 9, 18, 0.9); stroke-width: 1.5; }

/* Liste (aktivite vb.) */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.list-item:last-child { border-bottom: 0; }
.li-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(148, 163, 184, 0.08); color: var(--text-2); flex: none; }
.li-icon svg.i { width: 16px; height: 16px; }
.li-icon.ok { color: var(--ok); background: rgba(var(--ok-rgb), 0.1); }
.li-icon.warn { color: var(--warn); background: rgba(var(--warn-rgb), 0.1); }
.li-icon.err { color: var(--err); background: rgba(var(--err-rgb), 0.1); }
.li-icon.accent { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }
.li-main { flex: 1; min-width: 0; }
.li-title { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-side { font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; }

/* ---------- Açılır menü ---------- */
.dropdown { position: relative; display: inline-block; }
.menu { position: fixed; z-index: 200; min-width: 210px; padding: 6px; border-radius: 13px; background: rgba(12, 18, 32, 0.98); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: menuIn 0.14s var(--ease); backdrop-filter: blur(14px); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 11px; border: 0; background: none; color: var(--text-2); font: 600 13px var(--font); border-radius: 9px; cursor: pointer; text-align: left; text-decoration: none !important; white-space: nowrap; }
.menu button:hover, .menu a:hover { background: rgba(148, 163, 184, 0.09); color: var(--text); }
.menu button.danger { color: #fca5a5; }
.menu button.danger:hover { background: rgba(var(--err-rgb), 0.12); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.menu .menu-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); padding: 6px 11px 4px; font-weight: 700; }

/* ---------- Modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(2, 5, 11, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn 0.18s ease; overflow-y: auto; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: linear-gradient(180deg, #0f1729, #0a1120); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset; animation: modalIn 0.24s var(--ease); }
.modal.lg { max-width: 780px; }
.modal.xl { max-width: 1020px; }
.modal.sm { max-width: 420px; }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.modal-head .mh-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.25); color: var(--accent); flex: none; }
.modal-head .mh-icon.danger { background: rgba(var(--err-rgb), 0.1); border-color: rgba(var(--err-rgb), 0.3); color: var(--err); }
.modal-head h3 { font-size: 17px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.modal-head .close { margin-left: auto; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(5, 9, 18, 0.35); border-radius: 0 0 20px 20px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
.drawer-wrap { place-items: stretch end; padding: 0; }
.drawer { height: 100vh; max-height: 100vh; max-width: 620px; border-radius: 20px 0 0 20px; animation: drawerIn 0.28s var(--ease); }
.drawer .modal-foot { border-radius: 0 0 0 20px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 20px; }
.wizard-steps .ws { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.wizard-steps .ws::before { content: ''; height: 4px; border-radius: 4px; background: rgba(148, 163, 184, 0.15); }
.wizard-steps .ws.on { color: var(--text); }
.wizard-steps .ws.on::before, .wizard-steps .ws.done::before { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

/* Bilgi kutuları */
.note { display: flex; gap: 12px; padding: 13px 15px; border-radius: 13px; border: 1px solid rgba(var(--info-rgb), 0.28); background: rgba(var(--info-rgb), 0.07); color: #c7dcf7; font-size: 13px; line-height: 1.55; }
.note svg.i { color: var(--info); margin-top: 1px; }
.note.warn { border-color: rgba(var(--warn-rgb), 0.3); background: rgba(var(--warn-rgb), 0.07); color: #fde9b5; }
.note.warn svg.i { color: var(--warn); }
.note.err { border-color: rgba(var(--err-rgb), 0.3); background: rgba(var(--err-rgb), 0.07); color: #fecaca; }
.note.err svg.i { color: var(--err); }
.note.ok { border-color: rgba(var(--ok-rgb), 0.3); background: rgba(var(--ok-rgb), 0.07); color: #c9f5e2; }
.note.ok svg.i { color: var(--ok); }
.note b { color: var(--text); }
.note ol, .note ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Bildirimler ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 11px; min-width: 260px; max-width: 420px; padding: 13px 15px; border-radius: 14px; background: rgba(13, 20, 36, 0.97); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; animation: toastIn 0.3s var(--ease); backdrop-filter: blur(12px); }
.toast.out { animation: toastOut 0.25s ease forwards; }
.toast .t-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.toast.ok .t-icon { background: rgba(var(--ok-rgb), 0.15); color: var(--ok); }
.toast.err .t-icon { background: rgba(var(--err-rgb), 0.15); color: var(--err); }
.toast.warn .t-icon { background: rgba(var(--warn-rgb), 0.15); color: var(--warn); }
.toast.info .t-icon { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); }
.toast .t-title { font-weight: 700; }
.toast .t-msg { color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.toast .progress { margin-top: 8px; height: 5px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Giriş ekranı ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr); }
.auth-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px; border-right: 1px solid var(--line); background: radial-gradient(800px 500px at 30% 40%, rgba(var(--accent-rgb), 0.1), transparent 70%); }
.auth-hero .brand { padding: 0; }
.auth-art { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.auth-art svg { width: min(620px, 92%); height: auto; opacity: 0.95; }
.auth-copy { position: relative; max-width: 480px; }
.auth-copy h1 { font-size: 40px; line-height: 1.08; letter-spacing: -0.025em; }
.auth-copy h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-copy p { color: var(--text-2); font-size: 15px; margin: 14px 0 0; }
.auth-feats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.auth-feats span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 10px; background: rgba(5, 9, 18, 0.6); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.auth-feats svg.i { width: 16px; height: 16px; color: var(--accent); }
.auth-side { display: grid; place-items: center; padding: 40px 28px; }
.auth-card { width: 100%; max-width: 400px; padding: 32px 30px; }
.auth-card h2 { font-size: 24px; }
.auth-card .lead { color: var(--muted); margin: 6px 0 24px; font-size: 13.5px; }
.otp-input { text-align: center; font: 600 26px var(--font-mono); letter-spacing: 0.4em; height: 58px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.art-ring { transform-origin: 300px 300px; animation: spin 60s linear infinite; }
.art-ring.rev { animation-direction: reverse; animation-duration: 45s; }
.art-node { animation: nodeBlink 3s ease-in-out infinite; }
@keyframes nodeBlink { 50% { opacity: 0.35; } }
.art-scan { transform-origin: 300px 300px; animation: spin 6s linear infinite; }

/* Renk seçici */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 42px; height: 42px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; position: relative; transition: transform 0.15s; }
.swatch:hover { transform: translateY(-2px); }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15); }
.logo-drop { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-3); background: rgba(5, 9, 18, 0.4); }
.logo-prev { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.08); border: 1px solid var(--line-2); overflow: hidden; color: var(--accent); flex: none; }
.logo-prev img { width: 100%; height: 100%; object-fit: contain; }
.logo-prev svg { width: 38px; height: 38px; }
.tg-preview { background: #0e1621; border-radius: 14px; padding: 14px; border: 1px solid var(--line); }
.tg-bubble { background: #182533; color: #e9eef5; border-radius: 14px 14px 14px 4px; padding: 10px 13px; font-size: 13px; white-space: pre-wrap; max-width: 100%; line-height: 1.5; }
.tg-bubble code { background: rgba(255, 255, 255, 0.08); padding: 1px 4px; border-radius: 4px; color: #7dd3fc; }
.tg-file { display: flex; align-items: center; gap: 10px; margin-top: 8px; background: #182533; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; color: #e9eef5; }
.tg-file .ic { width: 34px; height: 34px; border-radius: 50%; background: #2b5278; display: grid; place-items: center; }
.ph-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ph-chips button { font: 600 11.5px var(--font-mono); height: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(var(--accent-rgb), 0.06); color: var(--accent); cursor: pointer; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font: 600 14px var(--font-mono); }
.codes span { padding: 9px; text-align: center; border-radius: 9px; background: rgba(5, 9, 18, 0.6); border: 1px solid var(--line-2); letter-spacing: 0.05em; }
.qr-box { width: 200px; height: 200px; border-radius: 16px; background: #fff; padding: 10px; flex: none; }
.qr-box img { width: 100%; height: 100%; }

/* Ülke seçici */
.combo { position: relative; }
.combo-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(5, 9, 18, 0.6); color: var(--text); font: 500 13.5px var(--font); cursor: pointer; text-align: left; }
.combo-btn:hover { border-color: var(--line-3); }
.combo-btn .ph { color: #4f5d75; }
.combo-btn svg.i:last-child { margin-left: auto; color: var(--muted); }
.combo-pop { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: #0c1424; border: 1px solid var(--line-2); border-radius: 13px; box-shadow: var(--shadow); padding: 8px; animation: menuIn 0.14s var(--ease); }
.combo-list { max-height: 260px; overflow-y: auto; margin-top: 6px; }
.combo-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.combo-opt:hover, .combo-opt.hl { background: rgba(var(--accent-rgb), 0.1); }
.combo-opt .code { margin-left: auto; font: 11px var(--font-mono); color: var(--muted); }
.combo-sep { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); padding: 8px 10px 4px; font-weight: 700; }

.test-result { margin-top: 12px; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-size: 12.5px; }
.check-list div { display: flex; align-items: center; gap: 8px; }
.check-list svg.i { width: 16px; height: 16px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1400px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .topo { height: 230px; }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); transform: translateX(-102%); transition: transform 0.28s var(--ease); box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .backdrop.show { display: block; position: fixed; inset: 0; background: rgba(2, 5, 11, 0.6); z-index: 35; backdrop-filter: blur(2px); }
  .topbar .menu-btn { display: inline-flex; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { min-height: 300px; padding: 30px 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-copy h1 { font-size: 30px; }
  .auth-art svg { width: 420px; opacity: 0.45; }
}
@media (max-width: 760px) {
  body { font-size: 13.5px; }
  .content { padding: 18px 16px 50px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar .hide-sm { display: none !important; }
  .page-head h1 { font-size: 20px; }
  .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-auto { grid-template-columns: minmax(0, 1fr); }
  .srv-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .modal-wrap { padding: 0; place-items: end stretch; }
  .modal, .modal.lg, .modal.xl, .modal.sm { max-width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .modal-foot { border-radius: 0; }
  .drawer { height: 92vh; border-radius: 20px 20px 0 0; max-width: 100%; }
  .toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .toast { max-width: none; }
  .check-list { grid-template-columns: 1fr; }
  .codes { grid-template-columns: 1fr 1fr; }
  .hero h2 { font-size: 21px; }
  .auth-feats { display: none; }
  .auth-card { padding: 26px 20px; }
  /* Tablo → kart görünümü */
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { padding: 12px 14px; border-bottom: 1px solid var(--line); position: relative; }
  .table.responsive td { border: 0; padding: 5px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: right; }
  .table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; text-align: left; flex: none; }
  .table.responsive td.td-main { display: block; text-align: left; padding-right: 40px; }
  .table.responsive td.td-main::before, .table.responsive td.w-check::before, .table.responsive td.actions::before { display: none; }
  .table.responsive td.w-check { position: absolute; right: 12px; top: 14px; width: auto; padding: 0; }
  .table.responsive td.actions { justify-content: flex-end; padding-top: 8px; }
  .table.responsive .usage { min-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
