/* =========================================================================
   OPESINT — Saha İstihbarat Terminali
   Tasarım dili: HUD/radar konsolu + dosya/dossier kesiti + terminal tipografisi.
   Marka rengi: kırmızı (logo ile uyumlu). NOT: CSS değişken adı tarihsel
   nedenlerle hâlâ --cyan ama artık kırmızı bir ton taşıyor.
   Fonksiyonel renkler: amber=kredi/uyarı, red=tehlike/ban, yeşil=başarı/çevrimiçi.
   ========================================================================= */

:root {
  --bg: #0a0707;
  --bg-panel: #140d0d;
  --bg-panel-2: #1a1010;
  --border: #2b1616;
  --border-soft: #1f1212;

  --ink: #efe7e7;
  --ink-dim: #a08484;
  --ink-faint: #5e4747;

  --cyan: #e6323f;
  --cyan-dim: #9c1f28;
  --amber: #e8a63d;
  --red: #ff3b3b;
  --green: #4fd88a;

  --accent: var(--cyan);
  --radius: 4px;
  --radius-lg: 10px;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0px, rgba(255,255,255,.012) 1px, transparent 1px, transparent 3px),
    radial-gradient(ellipse at 20% -10%, rgba(230,50,63,.07) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 10%, rgba(232,166,61,.04) 0%, transparent 40%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(230,50,63,.25); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.01em; }

.mono { font-family: var(--font-mono); }

/* ---------- corner-bracket "reticle" frame, used on key panels ---------- */
.bracket-frame { position: relative; }
.bracket-frame::before, .bracket-frame::after,
.bracket-frame .bf-tr, .bracket-frame .bf-bl {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--cyan-dim);
  opacity: .55;
}
.bracket-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.bracket-frame::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.bracket-frame .bf-tr  { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.bracket-frame .bf-bl  { bottom: -1px; left: -1px; border-right: none; border-top: none; }

/* blinking terminal cursor */
.cursor-blink {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--cyan);
  margin-left: 6px;
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  position: relative;
}

.auth-card h1 {
  font-size: 22px;
  margin: 0 0 6px;
}

.auth-card .badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--cyan);
  background: rgba(230,50,63,.08);
  border: 1px solid rgba(230,50,63,.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.auth-card .badge-tag .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.auth-card p.sub {
  color: var(--ink-dim);
  font-size: 13.5px;
  margin-bottom: 28px;
}

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 18px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 3px rgba(230,50,63,.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .1s, opacity .15s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--cyan-dim)); color: #041012; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--cyan-dim); }
.btn-danger { background: rgba(226,84,74,.12); color: var(--red); border: 1px solid rgba(226,84,74,.3); }
.btn-warn { background: rgba(232,166,61,.12); color: var(--amber); border: 1px solid rgba(232,166,61,.3); }
.btn-success { background: rgba(79,216,138,.12); color: var(--green); border: 1px solid rgba(79,216,138,.3); }
.btn-sm { padding: 8px 12px; font-size: 12px; }
.btn-block { width: 100%; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-dim);
}
.auth-footer a { color: var(--cyan); font-weight: 600; }

.admin-request-box { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }

.alert {
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  border-left: 3px solid;
}
.alert-error { background: rgba(226,84,74,.08); color: #ff8a80; border-color: var(--red); }
.alert-success { background: rgba(79,216,138,.08); color: var(--green); border-color: var(--green); }

.key-display {
  background: var(--bg);
  border: 1px dashed var(--cyan-dim);
  border-radius: var(--radius);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--cyan);
  text-align: center;
  letter-spacing: .04em;
  margin-bottom: 16px;
  word-break: break-all;
}

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 64px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: width .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.sidebar:hover { width: 270px; }

.sidebar-logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 20px 14px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(230,50,63,.4), 0 0 14px rgba(230,50,63,.25);
}
.sidebar-logo img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  white-space: nowrap;
  cursor: pointer;
  color: var(--ink-dim);
  font-size: 13.2px;
  border-left: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.nav-item:hover, .nav-item.active {
  background: rgba(230,50,63,.06);
  color: var(--ink);
  border-left-color: var(--cyan);
}
.nav-item.active .ic { color: var(--cyan); }
.nav-item .ic-emoji {
  font-size: 15px;
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  opacity: .85;
}
.nav-item .ic {
  display: none;
}
.nav-item .label { opacity: 0; transition: opacity .2s; }
.sidebar:hover .nav-item .label { opacity: 1; }
.nav-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(232,166,61,.15);
  color: var(--amber);
  border: 1px solid rgba(232,166,61,.3);
  opacity: 0;
  transition: opacity .2s;
  margin-left: auto;
  flex-shrink: 0;
}
.sidebar:hover .nav-badge { opacity: 1; }

.nav-section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-faint);
  padding: 16px 20px 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
}
.sidebar:hover .nav-section-title { opacity: 1; }

.nav-item.admin-link { color: var(--amber); }
.nav-item.admin-link .ic { color: var(--amber); }

/* ---------- Main content ---------- */
.main {
  margin-left: 64px;
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 28px 34px;
}

.page-inner {
  width: 100%;
  max-width: 1100px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.topbar h2 { margin: 0; font-size: 21px; }
.topbar .credits-pill {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  display: flex; align-items: center; gap: 8px;
}
.topbar .credits-pill b { color: var(--cyan); font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}
.stat-card .stat-label {
  font-family: var(--font-mono);
  color: var(--ink-dim);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.stat-card .stat-value { font-family: var(--font-display); font-size: 25px; font-weight: 600; }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 22px;
}
.panel h3 { margin-top: 0; font-size: 16px; }
.panel-sub { color: var(--ink-dim); font-size: 13px; margin-bottom: 18px; }

/* ---------- Modern pill-style search bar ---------- */
.module-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  transition: border-color .15s, box-shadow .15s;
}
.module-search:focus-within {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 4px rgba(230,50,63,.1);
}
.module-search .search-icon { color: var(--ink-dim); font-size: 14px; flex-shrink: 0; }
.module-search input[type=text],
.module-search input[type=number] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  background: transparent;
  border: none;
  margin-bottom: 0;
  padding: 13px 4px;
  font-size: 14px;
  font-family: var(--font-mono);
}
.module-search input[type=text]:focus,
.module-search input[type=number]:focus { border: none; outline: none; box-shadow: none; }
.module-search select {
  width: auto; flex-shrink: 0; margin-bottom: 0; border: none;
  background: var(--bg-panel-2); border-radius: 999px; padding: 10px 14px;
  font-family: var(--font-mono); font-size: 12.5px;
}
.module-search .btn { flex-shrink: 0; border-radius: 999px; padding: 12px 22px; }
.module-search .btn-circle {
  width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 16px; line-height: 1;
}

/* ---------- Hero terminal panel (dashboard home) ---------- */
.hero-search-panel {
  background:
    radial-gradient(circle at 15% 0%, rgba(230,50,63,.1), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(232,166,61,.05), transparent 50%),
    var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 34px 28px;
  margin-bottom: 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-radar {
  position: absolute;
  top: -140px; right: -140px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(230,50,63,.12);
  pointer-events: none;
}
.hero-radar::before {
  content: "";
  position: absolute; inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(230,50,63,.1);
}
.hero-radar::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(230,50,63,.28), transparent 28%);
  animation: radar-spin 5s linear infinite;
}
@keyframes radar-spin { to { transform: rotate(360deg); } }

.hero-status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--cyan);
  background: rgba(230,50,63,.06);
  border: 1px solid rgba(230,50,63,.2);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-status-line .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
}

.hero-search-panel h2 {
  font-size: 26px;
  margin: 0 0 8px;
  position: relative;
}
.hero-search-panel h2 span { color: var(--cyan); }
.hero-search-panel p.sub {
  font-family: var(--font-mono);
  color: var(--ink-dim);
  font-size: 12.5px;
  margin-bottom: 24px;
}
.hero-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 18px;
  position: relative;
}
.hero-tab {
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.hero-tab:hover { color: var(--ink); }
.hero-tab.active { background: var(--cyan); color: #041012; font-weight: 600; }
.hero-search-panel .module-search {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  padding-left: 20px;
  position: relative;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dim);
  letter-spacing: .03em;
}
.hero-stats b { color: var(--ink); }

.result-box {
  margin-top: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 12.5px;
  max-height: 480px;
  overflow: auto;
}
.result-box pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); }

table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th {
  font-family: var(--font-mono); color: var(--ink-dim); font-weight: 600;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
}
tr:last-child td { border-bottom: none; }

.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; }
.status-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.offline { background: var(--ink-faint); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: .03em;
}
.tag-free { background: rgba(124,139,142,.12); color: var(--ink-dim); }
.tag-basic { background: rgba(124,139,142,.12); color: var(--ink-dim); }
.tag-pro { background: rgba(230,50,63,.12); color: var(--cyan); }
.tag-life { background: rgba(79,216,138,.12); color: var(--green); }
.tag-admin { background: rgba(232,166,61,.12); color: var(--amber); }
.tag-banned { background: rgba(226,84,74,.12); color: var(--red); }

.discord-card {
  display: flex; gap: 16px; align-items: center;
  padding: 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-top: 16px;
}
.discord-card img { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--border); }
.discord-card .dname { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.discord-card .dmeta { font-family: var(--font-mono); color: var(--ink-dim); font-size: 11.5px; margin-top: 4px; }

.badge-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.found-yes { color: var(--green); font-weight: 600; font-family: var(--font-mono); }
.found-no { color: var(--ink-faint); font-family: var(--font-mono); }

.theme-swatch {
  width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  display: inline-block; margin-right: 10px;
}
.theme-swatch.active { border-color: #fff; }

.small-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim); margin-top: 10px; }

.key-reveal {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .15s;
}
.key-reveal:hover { background: rgba(230,50,63,.1); color: var(--cyan); }
.key-reveal.revealed { color: var(--cyan); }

.hidden { display: none !important; }

.table-pagination {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  text-transform: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 18px;
  cursor: pointer;
}

/* ---------- Top-right settings dropdown ---------- */
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--cyan-dim); background: var(--bg-panel-2); }

.settings-dropdown-wrap { position: relative; }
.settings-dropdown {
  position: absolute;
  top: 46px; right: 0;
  width: 220px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  z-index: 200;
}
.settings-dropdown .sd-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-dim);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.settings-dropdown .sd-swatches { margin-bottom: 14px; }
.settings-dropdown .sd-link {
  display: block;
  font-size: 12.5px;
  color: var(--cyan);
  font-family: var(--font-mono);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ---------- Discord ad banner (fade in/out loop) ---------- */
.discord-ad-banner {
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.discord-ad-fade {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(88,101,242,.12), rgba(230,50,63,.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: discordFade 3.2s ease-in-out infinite;
}
@keyframes discordFade {
  0%, 100% { opacity: .75; }
  50% { opacity: 1; }
}
.discord-ad-icon { font-size: 22px; flex-shrink: 0; }
.discord-ad-title { font-weight: 600; font-size: 13.5px; }
.discord-ad-sub { font-size: 11.5px; color: var(--ink-dim); margin-top: 2px; }
.discord-ad-banner .btn { margin-left: auto; flex-shrink: 0; }
.discord-ad-banner-auth { max-width: 420px; width: 100%; margin: 18px auto 0; }

/* ---------- Star rating picker ---------- */
.star-picker { font-size: 24px; letter-spacing: 4px; }
.star-picker span { cursor: pointer; color: var(--ink-faint); transition: color .1s; }
.star-picker span.active { color: var(--amber); }
.star-line { color: var(--amber); letter-spacing: 2px; font-size: 13px; }

/* ---------- Quick launch grid (dashboard home) ---------- */
.quick-launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.ql-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ql-item:hover { border-color: var(--cyan-dim); background: var(--bg-panel-2); }
.ql-item .ql-icon { font-size: 20px; display: block; margin-bottom: 8px; }
.ql-item .ql-label { font-size: 11px; color: var(--ink-dim); font-family: var(--font-mono); }

/* ---------- Intelligence Board (Maltego-style graph) ---------- */
.board-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.board-toolbar select { min-width: 130px; margin-bottom: 0; }
.board-canvas-wrap {
  position: relative;
  width: 100%;
  height: 560px;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
}
.board-zoom-layer {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
}
.board-edges-svg {
  position: absolute;
  top: 0; left: 0;
  width: 2000px;
  height: 1400px;
  pointer-events: none;
}
.board-edges-svg .rope-line {
  fill: none;
  stroke: #b8763f;
  stroke-width: 2.5;
  stroke-linecap: round;
  pointer-events: stroke;
  cursor: pointer;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.4));
}
.board-edges-svg .rope-line:hover { stroke: var(--amber); }
.board-edges-svg .rope-knot { fill: #8a5a2e; }
.board-edges-svg text {
  fill: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 10px;
}
.board-canvas {
  position: relative;
  width: 2000px;
  height: 1400px;
}
.board-node {
  position: absolute;
  width: 110px;
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 8px;
  text-align: center;
  cursor: grab;
  user-select: none;
  transition: border-color .15s, box-shadow .15s;
  z-index: 2;
}
.board-node:active { cursor: grabbing; }
.board-node.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(230,50,63,.25);
  animation: bnPulse 1.1s ease-in-out infinite;
}
@keyframes bnPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(230,50,63,.25); }
  50% { box-shadow: 0 0 0 6px rgba(230,50,63,.12); }
}
.board-node .bn-icon { font-size: 20px; display: block; margin-bottom: 6px; }
.board-node .bn-type {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 3px;
}
.board-node .bn-label {
  font-size: 11.5px;
  word-break: break-word;
  line-height: 1.3;
}
.board-node .bn-del {
  position: absolute;
  top: -7px; right: -7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  cursor: pointer;
  display: none;
}
.board-node:hover .bn-del { display: block; }

/* ---------- Changelog timeline ---------- */
.changelog-list {
  position: relative;
  margin-top: 22px;
  padding-left: 22px;
  border-left: 1px solid var(--border);
}
.cl-entry {
  position: relative;
  margin-bottom: 26px;
}
.cl-entry:last-child { margin-bottom: 0; }
.cl-dot {
  position: absolute;
  left: -27.5px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(230,50,63,.18);
}
.cl-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.cl-desc {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.6;
}

.loader {
  width: 15px; height: 15px;
  border: 2px solid rgba(230,50,63,.25);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .main { padding: 20px; }
  .sidebar:hover { width: 230px; }
  .hero-radar { display: none; }
}
