:root {
  --bg: #070a12;
  --panel: rgba(17, 22, 37, .82);
  --panel-strong: #111728;
  --line: rgba(154, 166, 204, .16);
  --text: #edf1ff;
  --muted: #929dbd;
  --violet: #8566ff;
  --mint: #4ce0be;
  --amber: #f1b45e;
  --rose: #ef6d94;
  --shadow: 0 24px 80px rgba(0, 0, 0, .32);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 50% -15%, #192039 0, var(--bg) 44%); }
button, input { font: inherit; }
button { color: inherit; }

.aurora { position: fixed; pointer-events: none; filter: blur(110px); opacity: .13; border-radius: 999px; z-index: 0; }
.aurora-a { width: 500px; height: 500px; background: #7348ef; right: -180px; top: 120px; }
.aurora-b { width: 460px; height: 460px; background: #23c7ad; left: -260px; bottom: -140px; }

.topbar { position: relative; z-index: 2; height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 74px); border-bottom: 1px solid var(--line); background: rgba(7, 10, 18, .74); backdrop-filter: blur(24px); }
.identity { display: inline-flex; gap: 13px; align-items: center; color: inherit; text-decoration: none; }
.identity > span:last-child { display: grid; gap: 2px; }
.identity strong { font-size: 17px; letter-spacing: .01em; }
.identity small { color: var(--muted); font-size: 12px; }
.logo { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; font-weight: 900; font-size: 21px; background: linear-gradient(145deg, #9478ff, #6645d8); box-shadow: 0 8px 28px rgba(126, 90, 255, .35); }
.top-actions { display: flex; align-items: center; gap: 10px; }

.button, .filter, .icon-button { border: 0; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease; }
.button:hover, .filter:hover, .icon-button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button { border-radius: 11px; padding: 11px 16px; font-weight: 700; font-size: 13px; }
.button.primary { background: linear-gradient(135deg, #8d70ff, #704eea); box-shadow: 0 8px 24px rgba(120, 82, 237, .24); }
.button.ghost { background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.button.danger { background: rgba(239, 109, 148, .13); border: 1px solid rgba(239, 109, 148, .28); color: #ff9db9; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #73809f; }
.pill.online i { background: var(--mint); box-shadow: 0 0 0 4px rgba(76, 224, 190, .1); }
.pill.offline i { background: var(--rose); }

main { position: relative; z-index: 1; width: min(1460px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 90px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 40px; margin-bottom: 34px; }
.kicker { margin: 0 0 10px; color: #8f7bff; font-weight: 800; font-size: 11px; letter-spacing: .19em; }
h1 { max-width: 830px; margin: 0; font-size: clamp(38px, 5.2vw, 70px); line-height: .98; letter-spacing: -.055em; }
.lede { max-width: 750px; margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.mode-card { min-height: 160px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(26, 33, 55, .8), rgba(13, 18, 31, .86)); box-shadow: var(--shadow); }
.mode-card span { color: var(--muted); font-size: 12px; }
.mode-card strong { margin-top: 12px; font-size: 25px; }
.mode-card small { margin-top: 7px; color: var(--muted); line-height: 1.4; }

.notice { margin: 0 0 22px; padding: 15px 18px; border: 1px solid rgba(241, 180, 94, .3); border-radius: 13px; color: #ffd89d; background: rgba(241, 180, 94, .08); font-size: 13px; }
.hidden { display: none !important; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 27px; }
.metrics article { position: relative; overflow: hidden; min-height: 132px; display: flex; flex-direction: column; justify-content: center; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); backdrop-filter: blur(20px); box-shadow: 0 12px 35px rgba(0, 0, 0, .18); }
.metrics span { color: var(--muted); font-size: 12px; }
.metrics strong { margin-top: 7px; font-size: 37px; letter-spacing: -.04em; }
.metric-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.metric-line.violet { background: var(--violet); }.metric-line.mint { background: var(--mint); }.metric-line.amber { background: var(--amber); }.metric-line.rose { background: var(--rose); }

.workspace { border: 1px solid var(--line); border-radius: 21px; overflow: hidden; background: rgba(12, 16, 28, .86); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.section-head { min-height: 106px; padding: 23px 25px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.filters { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .025); }
.filter { padding: 8px 12px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; }
.filter.active { color: var(--text); background: rgba(133, 102, 255, .18); }
.table-shell { min-height: 290px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 14px 18px; text-align: left; color: #7783a3; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .018); }
td { padding: 18px; border-top: 1px solid rgba(154, 166, 204, .095); vertical-align: middle; font-size: 13px; }
tbody tr { cursor: pointer; transition: background .15s ease; }
tbody tr:hover { background: rgba(133, 102, 255, .045); }
.cell-primary { display: block; max-width: 390px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
.cell-secondary { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.status { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; font-weight: 750; font-size: 10px; letter-spacing: .035em; text-transform: uppercase; }
.status.pending { color: #c8bcff; background: rgba(133, 102, 255, .13); }
.status.success { color: #8cf1d8; background: rgba(76, 224, 190, .12); }
.status.warning { color: #ffd08a; background: rgba(241, 180, 94, .12); }
.status.error { color: #ff9db9; background: rgba(239, 109, 148, .12); }
.status.neutral { color: #a9b3ce; background: rgba(169, 179, 206, .09); }
.chevron { color: #6f7c9d; font-size: 20px; }
.empty { padding: 58px 24px; text-align: center; color: var(--muted); }
.empty-icon { width: 48px; height: 48px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 15px; color: var(--mint); background: rgba(76, 224, 190, .1); }
.empty h3 { margin: 0; color: var(--text); }.empty p { margin: 8px 0 0; }

dialog { color: var(--text); }
dialog::backdrop { background: rgba(3, 5, 10, .72); backdrop-filter: blur(8px); }
.drawer { width: min(720px, calc(100% - 24px)); height: 100vh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line); background: #0c111f; box-shadow: -30px 0 80px rgba(0, 0, 0, .38); }
.drawer[open] { animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(35px); opacity: .6; } }
.drawer-head { min-height: 95px; padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 24px; }
.icon-button { width: 40px; height: 40px; border-radius: 10px; color: var(--muted); background: rgba(255, 255, 255, .05); font-size: 25px; }
.drawer-content { height: calc(100vh - 178px); padding: 24px; overflow-y: auto; }
.drawer-actions { min-height: 83px; padding: 16px 24px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); background: rgba(7, 10, 18, .8); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 19px; }
.detail-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .025); }
.detail-card span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.detail-card strong { display: block; margin-top: 8px; overflow-wrap: anywhere; font-size: 14px; }
.detail-section { margin-top: 22px; }
.detail-section h3 { margin: 0 0 10px; font-size: 14px; }
.reason { padding: 14px; border-left: 3px solid var(--amber); border-radius: 5px 10px 10px 5px; color: #ffd69a; background: rgba(241, 180, 94, .08); font-size: 12px; line-height: 1.55; }
.source { max-height: 260px; margin: 0; padding: 15px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 11px; color: #bac3dd; background: #090d17; font: 12px/1.55 Consolas, monospace; }
.entrant-list { display: grid; gap: 7px; padding: 0; list-style: none; }
.entrant-list li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 9px 12px; border-radius: 9px; background: rgba(255, 255, 255, .025); font-size: 12px; }
.entrant-list em { color: #8f7bff; font-style: normal; font-weight: 800; }
.proof { display: block; width: 100%; margin-top: 10px; border: 1px solid var(--line); border-radius: 13px; }
.links { display: flex; gap: 10px; flex-wrap: wrap; }
.links a { color: #a99aff; font-size: 12px; }

.token-dialog { width: min(470px, calc(100% - 30px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #101625; box-shadow: var(--shadow); }
.token-dialog form { padding: 28px; }
.token-dialog h2 { margin: 0; }.token-dialog p:not(.kicker) { color: var(--muted); line-height: 1.55; font-size: 13px; }
.token-dialog label { display: block; margin: 21px 0 8px; color: var(--muted); font-size: 12px; }
.token-dialog input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--text); background: #090d18; }
.token-dialog input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(133, 102, 255, .11); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }

@media (max-width: 900px) {
  .topbar { padding-inline: 20px; }.pill { display: none; }
  main { width: min(100% - 28px, 1460px); padding-top: 42px; }
  .hero { grid-template-columns: 1fr; }.mode-card { min-height: 120px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .section-head { align-items: flex-start; gap: 16px; flex-direction: column; }
  th:nth-child(3), td:nth-child(3), th:nth-child(5), td:nth-child(5) { display: none; }
}
@media (max-width: 540px) {
  .identity small, #token-button { display: none; }
  .topbar { height: 72px; }.button { padding: 10px 12px; }
  h1 { font-size: 42px; }
  .metrics { grid-template-columns: 1fr; }
  .filters { width: 100%; }.filter { flex: 1; }
  th:nth-child(2), td:nth-child(2) { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
}
