/* =========================================================
   iFound Hub — components
   ========================================================= */

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-bd: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.14s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
  white-space: nowrap;
  user-select: none;
}
.btn .material-symbols-outlined { font-size: 1.15rem; }
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  --btn-bg: var(--grad-brand);
  --btn-fg: #fff;
  --btn-bd: transparent;
  box-shadow: 0 10px 24px -12px rgba(99, 102, 241, 0.9);
}
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(99, 102, 241, 1); }
.btn-outline { --btn-bg: transparent; --btn-bd: var(--border-strong); }
.btn-outline:hover { --btn-bg: var(--surface-2); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; color: var(--text-muted); }
.btn-ghost:hover { --btn-bg: var(--surface-2); color: var(--text); }
.btn-danger { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-bd: transparent; }
.btn-danger:hover { --btn-bg: var(--danger); --btn-fg: #fff; }
.btn-success { --btn-bg: var(--success-soft); --btn-fg: var(--success); --btn-bd: transparent; }
.btn-success:hover { --btn-bg: var(--success); --btn-fg: #fff; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; border-radius: var(--radius-xs); }
.btn-sm .material-symbols-outlined { font-size: 1rem; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-icon { padding: 9px; width: 40px; height: 40px; }
.btn-icon.btn-sm { padding: 6px; width: 34px; height: 34px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }

/* ── Badges & chips ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.7;
  background: var(--surface-3);
  color: var(--text-muted);
  border: 1px solid transparent;
}
.badge .material-symbols-outlined { font-size: 0.95rem; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-muted { background: var(--surface-3); color: var(--text-soft); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot-pulse { box-shadow: 0 0 0 0 currentColor; animation: dotPulse 2s infinite; }
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 currentColor; }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.is-active { background: var(--brand-soft); border-color: rgba(99, 102, 241, 0.4); color: var(--brand); }
.chip .material-symbols-outlined { font-size: 1rem; }

/* ── Avatar ──────────────────────────────────────────────── */
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.avatar-round { border-radius: 50%; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.78rem; border-radius: 9px; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; border-radius: 20px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.card-head.no-border { border-bottom: 0; }
.card-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1rem; margin: 0; }
.card-title .material-symbols-outlined { color: var(--brand); font-size: 1.25rem; }
.card-sub { font-size: 0.8rem; color: var(--text-soft); font-weight: 500; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px; }
.card-foot { padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }

.panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }

/* ── Forms ───────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.label .req { color: var(--danger); }
.hint { font-size: 0.76rem; color: var(--text-soft); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
  background: var(--surface);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.8; }
.select { appearance: none; cursor: pointer; padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238494b0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
}
html[dir="rtl"] .select { background-position: left 12px center; }

.input-icon { position: relative; }
.input-icon .material-symbols-outlined {
  position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-soft); pointer-events: none; font-size: 1.15rem;
}
.input-icon .input { padding-inline-start: 42px; }

.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 46px; height: 26px; border-radius: 99px; background: var(--surface-3);
  border: 1px solid var(--border); transition: all 0.2s var(--ease); position: relative;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease);
}
.switch input:checked + .track { background: var(--grad-brand); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(-20px); }
html[dir="ltr"] .switch input:checked + .track::after { transform: translateX(20px); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { width: 100%; overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.table th {
  text-align: right;
  padding: 12px 14px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface-2);
}
table.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.table tbody tr { transition: background 0.15s var(--ease); }
table.table tbody tr:hover { background: var(--surface-2); }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tr.is-unread { background: color-mix(in srgb, var(--brand) 7%, transparent); }
table.table tr.is-unread td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.cell-main { font-weight: 600; }
.cell-sub { font-size: 0.76rem; color: var(--text-soft); }

/* ── KPI stat cards ──────────────────────────────────────── */
.kpi {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.kpi::after {
  content: ""; position: absolute; inset-inline-end: -30px; top: -30px; width: 110px; height: 110px;
  border-radius: 50%; background: var(--kpi-tint, var(--brand-soft)); filter: blur(6px); opacity: 0.9;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.kpi-ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--kpi-tint, var(--brand-soft)); color: var(--kpi-color, var(--brand));
}
.kpi-ico .material-symbols-outlined { font-size: 1.45rem; }
.kpi-value { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; position: relative; z-index: 1; }
.kpi-label { color: var(--text-muted); font-size: 0.86rem; font-weight: 600; position: relative; z-index: 1; }
.kpi-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.78rem; position: relative; z-index: 1; }
.trend-up { color: var(--success); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.trend-down { color: var(--danger); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.trend-flat { color: var(--text-soft); font-weight: 700; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-root {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.22s var(--ease), visibility 0.22s;
}
.modal-root.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 8, 20, 0.62); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; z-index: 1; width: min(680px, 100%); max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); transform: translateY(14px) scale(0.98); transition: transform 0.24s var(--ease);
}
.modal-root.is-open .modal-card { transform: none; }
.modal-card.wide { width: min(940px, 100%); }
.modal-card.slim { width: min(460px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-head h3 { margin: 0; display: flex; align-items: center; gap: 9px; }
.modal-head h3 .material-symbols-outlined { color: var(--brand); }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface-2); position: sticky; bottom: 0; }

/* ── Toasts ──────────────────────────────────────────────── */
.toast-wrap { position: fixed; inset-block-start: 18px; inset-inline-start: 18px; z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, 88vw); }
.toast {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); animation: toastIn 0.28s var(--ease); position: relative; overflow: hidden;
}
.toast::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.toast-success::before { background: var(--success); }
.toast-error::before { background: var(--danger); }
.toast-warn::before { background: var(--warn); }
.toast .material-symbols-outlined { font-size: 1.3rem; }
.toast-success .material-symbols-outlined { color: var(--success); }
.toast-error .material-symbols-outlined { color: var(--danger); }
.toast-warn .material-symbols-outlined { color: var(--warn); }
.toast-title { font-weight: 700; font-size: 0.88rem; }
.toast-msg { font-size: 0.82rem; color: var(--text-muted); }
.toast.is-hiding { animation: toastOut 0.24s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-14px); } }

/* ── Tabs & segmented ────────────────────────────────────── */
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.tab {
  padding: 8px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.86rem;
  color: var(--text-muted); cursor: pointer; border: 0; background: transparent; font-family: inherit;
  white-space: nowrap; transition: all 0.18s var(--ease); display: inline-flex; align-items: center; gap: 7px;
}
.tab .material-symbols-outlined { font-size: 1.05rem; }
.tab:hover { color: var(--text); background: var(--surface-3); }
.tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tab .count { background: var(--brand-soft); color: var(--brand); border-radius: 99px; font-size: 0.72rem; padding: 0 7px; font-weight: 700; }

.segmented { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; color: var(--text-muted); font: inherit; font-weight: 600;
  font-size: 0.82rem; padding: 6px 14px; border-radius: 99px; cursor: pointer; transition: all 0.18s var(--ease);
}
.segmented button.is-active { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-sm); }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); font: inherit; font-weight: 600; font-size: 0.85rem;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.16s var(--ease);
}
.page-btn:hover:not(:disabled) { border-color: var(--border-strong); color: var(--text); }
.page-btn.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Empty / loading states ──────────────────────────────── */
.empty { text-align: center; padding: 48px 20px; color: var(--text-soft); }
.empty .material-symbols-outlined { font-size: 3.2rem; opacity: 0.5; margin-bottom: 7px; }
.empty-title { font-weight: 700; color: var(--text-muted); }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
.skeleton-line { height: 12px; margin: 8px 0; }
.skeleton-block { height: 100px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.spinner { width: 22px; height: 22px; border: 3px solid var(--border-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 44px; color: var(--text-muted); }

/* ── Dropdown menu ───────────────────────────────────────── */
/* Trigger buttons sit inside <td>s of a scrollable .table-wrap inside an
   overflow:hidden .card, so an absolutely positioned menu would be clipped by
   its own scroll container and would render "inside" the table (the reported
   bug). The menu therefore floats (position: fixed) and JS pins it to its
   trigger via --menu-top / --menu-end on the .dropdown wrapper.
   .dropdown.has-menu is added by JS for only as long as a menu is present,
   because making the wrapper a positioned box unconditionally would turn it
   into a flow-root box and resize the table cell. (An earlier attempt used
   :has(.menu) for this, but :has() is unsupported in the target browsers and
   the minified stylesheet drops the whole rule, which left the menu
   unanchored and invisible.) */
.dropdown { position: relative; }
.dropdown.has-menu { position: relative; }
.menu {
  position: fixed; z-index: 200; top: var(--menu-top, 0); left: var(--menu-left, 0); right: auto;
  min-width: 210px; max-width: min(280px, 92vw);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 7px;
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
/* The open menu is portalled to <body>, so it is no longer a descendant of
   .dropdown and a descendant selector could never match it. The .is-open state
   therefore lives on the menu itself (core.js toggles both). */
.dropdown.is-open .menu,
.menu.is-open { visibility: visible; opacity: 1; transform: none; animation: menuIn 0.18s var(--ease); }
.menu-end { left: var(--menu-left, 0); right: auto; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: var(--radius-xs); border: 0; background: transparent; color: var(--text); font: inherit; font-size: 0.87rem; font-weight: 600; cursor: pointer; text-align: right; transition: background 0.15s; }
.menu-item:hover { background: var(--surface-2); }
.menu-item .material-symbols-outlined { font-size: 1.15rem; color: var(--text-soft); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger .material-symbols-outlined { color: var(--danger); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* ── Progress & meters ───────────────────────────────────── */
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); transition: width 0.5s var(--ease); }

/* ── Code blocks ─────────────────────────────────────────── */
.code {
  background: #0a1020; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden;
  direction: ltr; text-align: left;
}
html[data-theme="light"] .code { background: #0d1425; color: #e6ecff; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.08); }
.code-lang { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8fa4d6; }
.code-copy { background: transparent; border: 0; color: #9fb0d8; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.76rem; padding: 3px 8px; border-radius: 7px; }
.code-copy:hover { background: rgba(255,255,255,0.08); color: #fff; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace; font-size: 0.82rem; line-height: 1.85; color: #dbe4ff; }
.code .k { color: #c792ea; } .code .s { color: #c3e88d; } .code .n { color: #f78c6c; } .code .c { color: #5b6b92; font-style: italic; } .code .p { color: #82aaff; }

/* ── Misc lists ──────────────────────────────────────────── */
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.kv:last-child { border-bottom: 0; }
.kv-label { color: var(--text-muted); font-size: 0.84rem; display: flex; align-items: center; gap: 7px; }
.kv-value { font-weight: 600; font-size: 0.88rem; text-align: end; }

.chart-frame { position: relative; width: 100%; }
.chart-frame svg { width: 100%; height: auto; display: block; overflow: visible; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.legend-swatch { width: 11px; height: 11px; border-radius: 4px; background: var(--brand); }

.timeline { position: relative; padding-inline-start: 26px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 18px; }
.timeline-item::before { content: ""; position: absolute; inset-inline-start: -26px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.timeline-item.ok::before { border-color: var(--success); }
.timeline-item.err::before { border-color: var(--danger); }

/* ── Radar visual ────────────────────────────────────────── */
.radar-scope { position: relative; width: 100%; max-width: 230px; aspect-ratio: 1; margin: 0 auto; }
.radar-scope .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--border); }
.radar-scope .ring.r2 { inset: 20%; }
.radar-scope .ring.r3 { inset: 40%; }
.radar-scope .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.5), transparent 40%); animation: sweep 4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-scope .blip { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.radar-scope .blip.off { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.radar-scope .blip.warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.radar-core { position: absolute; inset: 44%; border-radius: 50%; background: var(--grad-brand); }




