:root {
  --bg: #07111f;
  --panel: #0e1b2e;
  --panel2: #101f35;
  --line: #20344f;
  --text: #e7eefc;
  --muted: #8fa4c4;
  --accent: #8b5cf6;
  --accent2: #22d3ee;
  --good: #34d399;
  --bad: #fb7185;
  --shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 245px;
  height: 100vh;
  height: 100dvh;
  padding: 24px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: rgba(5, 12, 24, .72);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 34px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 30px rgba(139, 92, 246, .35);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 8px 16px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(143, 164, 196, .65) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.sidebar nav::-webkit-scrollbar {
  width: 7px;
}

.sidebar nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(143, 164, 196, .55);
}

.sidebar nav::-webkit-scrollbar-thumb:hover {
  background: rgba(231, 238, 252, .7);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
}

nav a:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--text);
}

.nav-logout {
  margin: 8px 0 0;
}

.nav-logout button {
  width: 100%;
  text-align: left;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .08);
}

.main {
  margin-left: 245px;
  padding: 34px;
  max-width: 1600px;
}

.page-header,
.hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.hero {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(34, 211, 238, .10));
  box-shadow: var(--shadow);
}

h1 {
  font-size: 42px;
  line-height: 1.05;
  margin: 4px 0 8px;
}

h2,
h3 {
  margin: 0 0 8px;
}

.eyebrow {
  margin: 0;
  color: var(--accent2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}

.subtle,
.panel p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.metric {
  background: linear-gradient(180deg, rgba(16, 31, 53, .94), rgba(10, 20, 36, .94));
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.link-panel {
  text-decoration: none;
  color: var(--text);
  transition: .18s transform, .18s border;
}

.link-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, .38);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.toolbar label,
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
button {
  border: 1px solid var(--line);
  background: #081426;
  color: var(--text);
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 14px;
}

button,
.chip {
  cursor: pointer;
  text-decoration: none;
}

.primary,
button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(34, 211, 238, .16);
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--text);
  background: #081426;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  display: block;
  font-size: 30px;
  margin-top: 8px;
}

.panel {
  margin-bottom: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: rgba(4, 10, 20, .35);
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  white-space: nowrap;
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  background: #101f35;
  color: #bcd0ef;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

tbody tr:hover {
  background: rgba(34, 211, 238, .06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-box,
.terminal {
  background: #030712;
  color: #d1fae5;
  border: 1px solid #12362f;
  border-radius: 18px;
  padding: 16px;
  white-space: pre-wrap;
  overflow: auto;
}

.terminal {
  min-height: 320px;
}

.chart-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.chart-panel {
  height: 360px;
}

.chart-panel canvas {
  max-height: 290px;
}

.coin-chart-panel {
  height: 520px;
}

.coin-chart-panel canvas {
  max-height: 460px;
}

.coin-card small,
.status-good,
.status-warn,
.status-bad {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
}

.status-good {
  color: var(--good);
}

.status-warn {
  color: #fbbf24;
}

.status-bad {
  color: var(--bad);
}

.ops-grid {
  grid-template-columns: minmax(320px, .8fr) minmax(520px, 1.2fr);
}

.monitor-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 34px 0 14px;
}

.monitor-section-head h2 {
  margin: 0;
}

.service-table {
  min-width: 1180px;
}

.service-health {
  margin: 0;
  font-size: 12px;
}

.service-unit-cell strong,
.service-unit-cell small,
.service-table td strong,
.service-table td small {
  display: block;
}

.service-unit-cell small,
.service-table td small {
  max-width: 280px;
  margin-top: 4px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-log-button {
  min-width: 62px;
  min-height: 34px;
  padding: 7px 10px;
}

.service-log-output {
  min-height: 240px;
  max-height: 460px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.monitor-host-metrics .metric strong,
.monitor-metrics .metric strong {
  font-size: 25px;
}

.security-grid {
  grid-template-columns: 360px minmax(0, 1fr);
}

.qr-wrap {
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 14px;
  background: white;
}

.qr-wrap img {
  width: min(100%, 260px);
  height: auto;
}

.setup-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.setup-row span {
  color: var(--muted);
}

.secret-row code {
  overflow-wrap: anywhere;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-shell {
  width: min(92vw, 430px);
}

.auth-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 31, 53, .98), rgba(10, 20, 36, .98));
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 24px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-form button {
  margin-top: 4px;
}

.auth-error {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(251, 113, 133, .35);
  border-radius: 14px;
  color: #fecdd3;
  background: rgba(251, 113, 133, .08);
}

.dataframe {
  min-width: 900px;
}

.dashboard-header{
  align-items:center;
}

.home-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:260px;
  margin-bottom:26px;
  padding:42px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:28px;
  background:
    radial-gradient(circle at 12% 12%, rgba(34,211,238,.18), transparent 28%),
    linear-gradient(135deg, rgba(14,27,46,.98), rgba(5,12,24,.96));
  box-shadow:var(--shadow);
}

.home-hero h1{
  max-width:900px;
  font-size:64px;
  line-height:.98;
  margin:8px 0 14px;
}

.home-hero-copy{
  max-width:780px;
  margin:0;
  color:#9fb2cf;
  font-size:20px;
  line-height:1.45;
}

.home-feature-stack{
  display:grid;
  gap:22px;
  max-width:1180px;
}

.home-feature-card{
  display:grid;
  gap:18px;
  min-height:330px;
  padding:34px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  color:var(--text);
  text-decoration:none;
  background:
    linear-gradient(140deg, rgba(16,31,53,.98), rgba(8,17,31,.96) 58%, rgba(7,17,31,.98));
  box-shadow:var(--shadow);
  transition:.18s transform, .18s border-color, .18s background;
}

.home-feature-card:hover{
  transform:translateY(-3px);
  border-color:rgba(34,211,238,.42);
  background:
    linear-gradient(140deg, rgba(18,40,66,.98), rgba(8,17,31,.96) 58%, rgba(9,26,37,.98));
}

.home-feature-card:nth-child(3n+2){
  border-color:rgba(52,211,153,.20);
}

.home-feature-card:nth-child(3n){
  border-color:rgba(251,113,133,.18);
}

.home-feature-kicker{
  color:#67e8f9;
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.home-feature-card h2{
  max-width:720px;
  margin:0;
  font-size:38px;
  line-height:1.05;
}

.home-feature-card p{
  max-width:820px;
  margin:0;
  color:#9fb2cf;
  font-size:18px;
  line-height:1.5;
}

.home-feature-details{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:auto;
}

.home-feature-details span{
  min-height:72px;
  padding:16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  color:#dbeafe;
  background:rgba(2,6,23,.30);
  font-size:14px;
  font-weight:800;
  line-height:1.35;
}

.home-chart-wrap{
  height:390px;
  min-width:0;
  padding:12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(2,6,23,.28);
}

.planner-chart-wrap{
  height:520px;
}

.planner-timeline-panel .panel-head{
  align-items:flex-end;
}

.planner-ranking-table{
  margin-top:16px;
  max-height:640px;
  overflow:auto;
}

.planner-ranking-table th{
  position:sticky;
  top:0;
  z-index:1;
  background:#111c2f;
}

.planner-ranking-table td,
.planner-ranking-table th{
  white-space:nowrap;
}

.planner-date-bar{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(15,23,42,.72);
}

.planner-date-bar span{
  color:#8fa4c4;
  font-size:12px;
  text-transform:uppercase;
}

.planner-date-bar strong{
  color:#e5f0ff;
  font-size:14px;
}

.planner-plan-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin:14px 0 16px;
}

.planner-plan-card{
  min-height:92px;
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(2,6,23,.30);
}

.planner-plan-card span{
  display:block;
  color:#8fa4c4;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}

.planner-plan-card strong{
  display:block;
  margin-top:7px;
  color:#e7eefc;
  font-size:18px;
}

.planner-plan-card p{
  margin:7px 0 0;
  color:#8fa4c4;
  font-size:12px;
  line-height:1.45;
}

.risk-badge{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:850;
  text-transform:uppercase;
}

.risk-lower{color:#bbf7d0;background:rgba(52,211,153,.12)}
.risk-medium{color:#fde68a;background:rgba(251,191,36,.12)}
.risk-high{color:#fecdd3;background:rgba(251,113,133,.12)}

.command-log-download{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:11px 16px;
  border-radius:14px;
  text-decoration:none;
}

.command-log-download.is-disabled{
  cursor:not-allowed;
  opacity:.45;
}

.command-log-panel{
  display:grid;
  gap:18px;
}

.command-log-controls{
  display:flex;
  align-items:flex-end;
  gap:16px;
  flex-wrap:wrap;
}

.command-log-controls .field{
  min-width:260px;
}

.command-log-controls select{
  width:100%;
  min-height:42px;
}

.command-log-metrics .metric strong{
  overflow-wrap:anywhere;
  font-size:22px;
}

.command-log-metrics{
  margin-top:0;
}

.command-log-example{
  margin:14px 0 0;
  white-space:pre-wrap;
}

.system-audit-controls{
  display:flex;
  align-items:flex-end;
  gap:14px;
  flex-wrap:wrap;
}

.system-audit-controls .field{
  min-width:240px;
}

.system-audit-controls input[type="text"]{
  width:100%;
  min-height:42px;
}

.check-row{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  color:#cbd5e1;
  font-size:13px;
  font-weight:750;
}

.check-row input{
  width:16px;
  height:16px;
}

.system-audit-summary{
  min-height:160px;
  max-height:360px;
  margin:0;
  overflow:auto;
  white-space:pre-wrap;
}

.is-hidden{
  display:none !important;
}

.home-side{
  display:grid;
  gap:14px;
}

.home-side .link-panel{
  padding:16px;
}

.home-side .link-panel h3{
  margin-bottom:6px;
  font-size:16px;
  line-height:1.25;
}

.home-side .link-panel p{
  margin:0;
  font-size:12px;
  line-height:1.45;
}

.nft-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(210px, 1fr));
  gap:14px;
}

.tracked-wallets-panel{
  border-color:rgba(34,211,238,.2);
}

.tracked-wallet-summary,
.tracked-wallet-facts,
.tracked-ownership-facts{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:10px;
}

.tracked-wallet-summary{
  margin-bottom:14px;
}

.tracked-wallet-list,
.tracked-ownership-list{
  display:grid;
  gap:14px;
}

.tracked-wallet-card,
.tracked-ownership-card{
  min-width:0;
  padding:16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(2,6,23,.34);
}

.tracked-wallet-card-head,
.tracked-wallet-address-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.tracked-wallet-card-head p,
.tracked-wallet-card h4,
.tracked-ownership-card h5{
  margin:0;
}

.tracked-wallet-enabled{
  flex:0 0 auto;
  padding:5px 9px;
  border-radius:999px;
  color:#a7f3d0;
  background:rgba(52,211,153,.14);
  font-size:12px;
  font-weight:800;
}

.tracked-wallet-address-row{
  align-items:center;
  margin:14px 0;
}

.tracked-wallet-address-row code,
.tracked-ownership-card > code{
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
  color:#bfdbfe;
}

.tracked-wallet-copy{
  flex:0 0 auto;
  white-space:nowrap;
}

.tracked-wallet-fact{
  min-width:0;
  padding:10px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
}

.tracked-wallet-fact span,
.tracked-wallet-fact strong{
  display:block;
}

.tracked-wallet-fact span{
  margin-bottom:5px;
  color:var(--muted);
  font-size:12px;
}

.tracked-wallet-fact strong{
  overflow-wrap:anywhere;
  word-break:break-word;
  font-size:13px;
}

.tracked-wallet-card h4{
  margin-top:18px;
  margin-bottom:10px;
}

.tracked-ownership-list{
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
}

.tracked-ownership-card h5{
  margin-bottom:5px;
  font-size:15px;
}

.tracked-ownership-facts{
  margin-top:12px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.tracked-wallet-contract{
  grid-column:1 / -1;
}

.tracked-wallet-sync-error,
.wallet-state-error{
  color:#fecdd3 !important;
}

.tracked-wallet-sync-error{
  overflow-wrap:anywhere;
  padding:10px;
  border:1px solid rgba(251,113,133,.25);
  border-radius:12px;
  background:rgba(251,113,133,.07);
}

.tracked-wallet-empty{
  padding:14px;
}

.wallet-live-heading{
  margin:28px 0 14px;
}

.wallet-live-heading p:last-child{
  margin:0;
}

@media (max-width:640px){
  .tracked-wallet-card-head,
  .tracked-wallet-address-row{
    align-items:stretch;
    flex-direction:column;
  }

  .tracked-wallet-copy{
    align-self:flex-start;
  }

  .tracked-ownership-list,
  .tracked-ownership-facts{
    grid-template-columns:1fr;
  }
}

.nft-card{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(2,6,23,.34);
}

.nft-image{
  display:grid;
  place-items:center;
  aspect-ratio:1;
  background:#030712;
}

.nft-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.nft-image-fallback{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  color:#dbeafe;
  font-size:44px;
  font-weight:900;
  background:linear-gradient(135deg, rgba(139,92,246,.45), rgba(34,211,238,.24));
}

.nft-body{
  display:grid;
  gap:8px;
  padding:13px;
}

.nft-body h3,
.nft-body p{
  margin:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.nft-body h3{
  font-size:15px;
}

.nft-body p{
  color:var(--muted);
  font-size:13px;
}

.nft-floor{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.08);
}

.nft-floor span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.nft-floor strong{
  color:#bbf7d0;
  font-size:14px;
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
  }

  .sidebar nav {
    padding-right: 0;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .main {
    margin-left: 0;
    padding: 18px;
  }

  .metric-grid,
  .three,
  .form-grid,
  .home-feature-details,
  .planner-plan-grid,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .home-hero{
    align-items:flex-start;
    min-height:auto;
    padding:26px;
    flex-direction:column;
  }

  .home-hero h1{
    font-size:42px;
  }

  .home-hero-copy{
    font-size:16px;
  }

  .home-feature-card{
    min-height:0;
    padding:24px;
  }

  .home-feature-card h2{
    font-size:30px;
  }

  .home-feature-card p{
    font-size:16px;
  }

  h1 {
    font-size: 32px;
  }
}

  .live-actions{
  display:flex;
  gap:12px;
  align-items:center;
}

.live-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 13px;
  border:1px solid rgba(52,211,153,.28);
  border-radius:999px;
  color:#bbf7d0;
  background:rgba(52,211,153,.08);
  font-size:13px;
  font-weight:800;
}

.live-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background:var(--good);
  box-shadow:0 0 0 0 rgba(52,211,153,.75);
  animation:livePulse 1.6s infinite;
}

@keyframes livePulse{
  0%{box-shadow:0 0 0 0 rgba(52,211,153,.75)}
  70%{box-shadow:0 0 0 9px rgba(52,211,153,0)}
  100%{box-shadow:0 0 0 0 rgba(52,211,153,0)}
}

.events-toolbar{
  position:sticky;
  top:0;
  z-index:4;
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  background:rgba(7,17,31,.78);
  backdrop-filter:blur(16px);
  box-shadow:0 16px 42px rgba(0,0,0,.24);
}

.period-tabs{
  display:inline-grid;
  grid-template-columns:repeat(3, minmax(74px, 1fr));
  gap:4px;
  align-self:end;
  padding:4px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(2,6,23,.72);
}

.period-tab{
  min-height:39px;
  padding:8px 11px;
  border:0;
  border-radius:10px;
  color:var(--muted);
  background:transparent;
  box-shadow:none;
  font-weight:850;
}

.period-tab.active{
  color:#f8fafc;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(34,211,238,.34);
}

.events-toolbar select,
.events-toolbar input{
  min-width:190px;
}

.events-metrics .metric{
  position:relative;
  overflow:hidden;
}

.events-metrics .metric::after{
  content:"";
  position:absolute;
  inset:auto -30px -45px auto;
  width:130px;
  height:130px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(34,211,238,.14),transparent 62%);
}

.events-metrics .metric strong{
  font-size:28px;
  letter-spacing:-.03em;
}

.events-panel{
  border-color:rgba(34,211,238,.14);
}

.events-panel .panel-head{
  align-items:flex-start;
}

.events-panel .panel-head p{
  max-width:680px;
  margin:0;
}

#rankingBody tr{
  transition:background .16s ease, transform .16s ease;
}

#rankingBody tr:hover{
  background:rgba(34,211,238,.09);
}

#rankingBody td:nth-child(3),
#rankingBody td:nth-child(5),
#rankingBody td:nth-child(7),
#rankingBody td:nth-child(11){
  color:#dbeafe;
  font-weight:800;
}

#rankingBody td:nth-child(4){
  color:#bbf7d0;
  font-weight:850;
}

#rankingBody td:nth-child(11){
  color:#fde68a;
}

.collection-cell{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:260px;
}

.collection-avatar{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:10px;
  color:white;
  font-weight:900;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.20);
}

.collection-cell strong,
.collection-cell small{
  display:block;
}

.collection-cell strong{
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
}

.collection-cell small{
  max-width:260px;
  margin-top:2px;
  overflow:hidden;
  color:var(--muted);
  text-overflow:ellipsis;
}

.table-wrap{
  max-height:72vh;
}

.events-panel table{
  font-size:12.5px;
}

.events-panel th{
  top:0;
  z-index:2;
}

.sort-header{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  color:inherit;
  background:transparent;
  box-shadow:none;
  font:inherit;
  letter-spacing:inherit;
  text-transform:inherit;
  cursor:pointer;
}

.sort-header::after{
  content:"";
  width:0;
  height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  opacity:.35;
}

.sort-header.asc::after{
  border-bottom:6px solid currentColor;
  opacity:1;
}

.sort-header.desc::after{
  border-top:6px solid currentColor;
  opacity:1;
}

.sort-header:hover,
.sort-header.active{
  color:#f8fafc;
}

@media(max-width:900px){
  .live-actions{
    width:100%;
    justify-content:space-between;
  }

  .events-toolbar{
    position:static;
  }

  .events-toolbar select,
  .events-toolbar input{
    min-width:100%;
  }

  .period-tabs{
    width:100%;
  }

  .ops-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .coin-chart-panel {
    height: 420px;
  }
}

/* Drops dashboard */
.drops-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.drops-controls input,
.drops-controls select {
  min-height: 38px;
  min-width: 160px;
}

.drops-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 150px;
}

.small {
  font-size: 0.82rem;
}
