﻿:root {
  --bg: #0b0f14;
  --panel: #121823;
  --panel-2: #0f141d;
  --text: #e6edf6;
  --muted: #8da2b5;
  --primary: #24d1b7;
  --primary-2: #18a6ff;
  --accent: #ffb347;
  --border: #1b2432;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% -10%, rgba(36,209,183,.2), transparent 60%),
              radial-gradient(1200px 700px at 110% 10%, rgba(24,166,255,.18), transparent 60%),
              var(--bg);
}

.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: linear-gradient(180deg, #0f141d, #0b0f14);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .3px;
}
.brand span {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
.nav {
  display: grid;
  gap: 10px;
}
.nav-item {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
}
.nav-item:hover {
  background: var(--panel-2);
  border-color: var(--border);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(36,209,183,.18), rgba(24,166,255,.16));
  border-color: rgba(36,209,183,.35);
}
.icon { width: 18px; height: 18px; display: inline-block; opacity: .9; }
.icon.svg { background: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.icon.home { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 10.5 12 3l9 7.5\"/><path d=\"M5 9.5V21h14V9.5\"/><path d=\"M9 21v-6h6v6\"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 10.5 12 3l9 7.5\"/><path d=\"M5 9.5V21h14V9.5\"/><path d=\"M9 21v-6h6v6\"/></svg>'); }
.icon.plug { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 7v6\"/><path d=\"M15 7v6\"/><path d=\"M7 11h10\"/><path d=\"M12 17v4\"/><path d=\"M8 3v4\"/><path d=\"M16 3v4\"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 7v6\"/><path d=\"M15 7v6\"/><path d=\"M7 11h10\"/><path d=\"M12 17v4\"/><path d=\"M8 3v4\"/><path d=\"M16 3v4\"/></svg>'); }
.icon.user { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 21a8 8 0 0 0-16 0\"/><circle cx=\"12\" cy=\"7\" r=\"4\"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 21a8 8 0 0 0-16 0\"/><circle cx=\"12\" cy=\"7\" r=\"4\"/></svg>'); }
.icon.transfer { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M7 7h11\"/><path d=\"M13 3l5 4-5 4\"/><path d=\"M17 17H6\"/><path d=\"M11 21l-5-4 5-4\"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M7 7h11\"/><path d=\"M13 3l5 4-5 4\"/><path d=\"M17 17H6\"/><path d=\"M11 21l-5-4 5-4\"/></svg>'); }
.icon.cloud { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 17.5a4.5 4.5 0 0 0-3.7-4.4A6 6 0 0 0 5 14.5a3.5 3.5 0 0 0 .5 7h12a3.5 3.5 0 0 0 2.5-6\"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 17.5a4.5 4.5 0 0 0-3.7-4.4A6 6 0 0 0 5 14.5a3.5 3.5 0 0 0 .5 7h12a3.5 3.5 0 0 0 2.5-6\"/></svg>'); }
.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
}
.user { color: var(--muted); font-size: 12px; }

.content {
  padding: 28px 32px 40px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  background: linear-gradient(90deg, rgba(36,209,183,.12), rgba(24,166,255,.08));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}
.page-title {
  font-size: 22px;
  font-weight: 600;
}
.page-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: #0f141d;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.section-card {
  margin-bottom: 16px;
}
.carousel {
  display: grid;
  gap: 12px;
}
.carousel-track {
  position: relative;
  min-height: 220px;
}
.carousel-item {
  display: none;
}
.carousel-item.active {
  display: block;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.carousel-indicator {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #0f141d;
}
.icon.arrow-left { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15 18l-6-6 6-6\"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15 18l-6-6 6-6\"/></svg>'); }
.icon.arrow-right { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 6l6 6-6 6\"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 6l6 6-6 6\"/></svg>'); }
.card.highlight {
  background: linear-gradient(135deg, rgba(36,209,183,.15), rgba(24,166,255,.15));
}
.card-title {
  font-weight: 600;
  margin-bottom: 12px;
}
.card-body { color: var(--muted); }

.kv { display: flex; justify-content: space-between; margin: 8px 0; }
.steps { margin: 0; padding-left: 18px; color: var(--muted); }

.form label { display:block; font-size: 12px; color: var(--muted); margin: 8px 0 6px; }
input, select {
  width: 100%;
  background: #0e141f;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,209,183,.15); }

.actions { margin-top: 16px; }
.inline { display:inline-block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f141d;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #081018;
  border: none;
}
.btn.ghost {
  background: transparent;
}

.alert {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #632626;
  background: #2a1212;
  color: #ffd7d7;
  margin-bottom: 16px;
}
.alert.success {
  border-color: #1b4e3a;
  background: #0f241b;
  color: #b7f7d8;
}

.list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}
.row {
  display: grid;
  grid-template-columns: 24px 1.2fr 2fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f141d;
}
.row .domain { font-weight: 600; }
.row .path {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}
.row .path span {
  white-space: nowrap;
}
.row.compact { grid-template-columns: 24px 1.2fr 2fr; padding: 6px 8px; background: transparent; border-style: dashed; }
.row.result { grid-template-columns: 24px 1.2fr 2fr; }
.row.result .path { display: flex; justify-content: space-between; gap: 10px; }
.row.result .badge { margin-left: 8px; }
.row.result .msg { color: #f7c7c7; font-size: 11px; margin-left: 8px; }

.toolbar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
  margin-bottom: 12px;
}
.search {
  width: 100%;
}

.badge {
  justify-self: end;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1f2a3a;
  color: var(--muted);
}
.badge.created { background: #103223; color: #9ef1c9; }
.badge.skipped_exists { background: #2d2a14; color: #f7e39a; }
.badge.error { background: #3a1d1d; color: #ffb3b3; }

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: 360px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 6px; }
.auth-card p { margin: 0 0 14px; color: var(--muted); }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; }
  .grid2 { grid-template-columns: 1fr; }
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(6,10,14,.6);
  display: none;
  place-items: center;
  z-index: 20;
}
.modal.open { display: grid; }
.modal-card {
  width: min(520px, 92vw);
  background: #101723;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.modal-title { font-weight: 700; margin-bottom: 8px; }
.modal-body { color: var(--muted); display: grid; gap: 8px; }
.check-item { color: var(--text); }
.modal-actions { margin-top: 14px; text-align: right; }
