/* Edge Terminal v2 design system
 * Premium dark + orange · mobile-first · glass surfaces · gradient borders
 * "Bloomberg meets Linear" · dense when needed, breathable when browsing
 */

/* hidden attribute must always win over display:flex */
[hidden] { display: none !important }

:root {
  /* Surface layers · every card sits on a different layer for depth */
  --bg-0: #07070a;
  --bg-1: #0c0c10;
  --bg-2: #131318;
  --bg-3: #1a1a22;
  --bg-4: #22222c;

  /* Lines */
  --line-1: rgba(255,255,255,.05);
  --line-2: rgba(255,255,255,.09);
  --line-3: rgba(255,255,255,.14);

  /* Text */
  --txt-0: #ffffff;
  --txt-1: #fafafa;
  --txt-2: #a1a1aa;
  --txt-3: #71717a;
  --txt-4: #52525b;

  /* Brand */
  --accent: #f97316;
  --accent-2: #fb923c;
  --accent-soft: rgba(249,115,22,.10);
  --accent-glow: 0 0 28px rgba(249,115,22,.18);

  /* Semantic */
  --pos: #4ade80;
  --neg: #fb7185;
  --warn: #fbbf24;
  --info: #60a5fa;
  --rare: #c084fc;

  /* Fonts */
  --sg: 'Space Grotesk', sans-serif;
  --inter: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  /* Radius */
  --r-sm: 8px;
  --r: 12px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Shadows */
  --shadow-1: 0 1px 0 rgba(255,255,255,.04), 0 8px 24px rgba(0,0,0,.30);
  --shadow-2: 0 1px 0 rgba(255,255,255,.06), 0 14px 36px rgba(0,0,0,.42);
  --shadow-hover: 0 1px 0 rgba(255,255,255,.06), 0 18px 48px rgba(0,0,0,.50), 0 0 0 1px rgba(249,115,22,.10);

  /* Layout */
  --top-h: 60px;
  --bottom-h: 64px;
  --side-w: 240px;
  --content-max: 1240px;
}

*, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0 }
html {
  background:
    radial-gradient(800px 600px at 100% 0%, rgba(249,115,22,.06), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(96,165,250,.04), transparent 60%),
    var(--bg-0);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: transparent;
  color: var(--txt-1);
  font: 400 15px/1.55 var(--inter);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none }
button { font: inherit; cursor: pointer; color: inherit; background: transparent; border: 0 }
input, textarea, select { font: inherit; color: inherit; background: transparent; border: 0; outline: 0 }
::selection { background: var(--accent); color: #000 }

h1, h2, h3, h4 { font-family: var(--sg); font-weight: 700; letter-spacing: -.02em; line-height: 1.15 }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums }
.dim { color: var(--txt-2) } .dimmer { color: var(--txt-3) }
.tiny { font-size: 11px } .small { font-size: 12.5px }
.pos { color: var(--pos) } .neg { color: var(--neg) } .warn { color: var(--warn) } .info { color: var(--info) }

#particles-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .35;
}

/* ----- TOP BAR ------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h);
  background: linear-gradient(180deg, rgba(7,7,10,.92), rgba(7,7,10,.75));
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
@media (min-width: 980px) { .topbar { padding: 0 24px } }

.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--sg); font-weight: 700;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #000; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 10px rgba(249,115,22,.30), inset 0 1px 0 rgba(255,255,255,.20);
}
.brand-name { font-size: 15.5px; letter-spacing: -.01em }
.brand-dim { color: var(--txt-3); font-weight: 400; display: none }
@media (min-width: 768px) { .brand-dim { display: inline } }

.topbar-r { display: flex; align-items: center; gap: 10px }
.tier-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); padding: 8px 12px;
  border: 1px solid rgba(249,115,22,.28); border-radius: var(--r-full);
  background: var(--accent-soft);
  cursor: pointer;
  transition: all .18s ease;
}
.tier-pill:hover { border-color: var(--accent); background: rgba(249,115,22,.14); transform: translateY(-1px) }
.tier-pill .tier-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent) }

.btn-icon {
  width: 38px; height: 38px; border-radius: var(--r);
  display: grid; place-items: center;
  color: var(--txt-2); transition: all .15s ease;
}
.btn-icon:hover { color: var(--txt-1); background: var(--bg-2) }

/* ----- BUTTONS ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r);
  font: 600 14px/1 var(--inter); letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #0d0700;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px rgba(249,115,22,.30);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.20) inset, 0 10px 24px rgba(249,115,22,.45);
}
.btn-primary:active:not(:disabled) { transform: translateY(0) }
.btn-ghost { background: var(--bg-2); border-color: var(--line-2); color: var(--txt-1) }
.btn-ghost:hover:not(:disabled) { background: var(--bg-3); border-color: var(--line-3) }
.btn-danger {
  background: rgba(251,113,133,.08); color: var(--neg);
  border-color: rgba(251,113,133,.30);
}
.btn-danger:hover { background: rgba(251,113,133,.16) }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--r-sm) }
.btn-lg { padding: 14px 22px; font-size: 15px }
.btn-block { display: flex; width: 100% }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px }

/* ----- NAV ---------------------------------------------------------- */
.sidenav {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 25;
  display: flex; justify-content: space-around;
  height: var(--bottom-h);
  background: linear-gradient(0deg, rgba(7,7,10,.97), rgba(7,7,10,.82));
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-top: 1px solid var(--line-1);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  font: 500 10.5px/1 var(--inter); letter-spacing: .02em;
  color: var(--txt-3);
  padding: 7px 4px;
  position: relative;
  transition: color .15s ease;
}
.nav-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.nav-item:hover, .nav-item.active { color: var(--accent) }
.nav-item.active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 2px; border-radius: 0 0 4px 4px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.nav-item-bottom-hide { display: none }
@media (min-width: 768px) { .nav-item-bottom-hide { display: flex } }
@media (min-width: 980px) {
  .sidenav {
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    left: 0; top: var(--top-h); bottom: 0; right: auto;
    width: var(--side-w); height: auto;
    border-top: 0; border-right: 1px solid var(--line-1);
    padding: 22px 14px; gap: 4px;
    background: linear-gradient(180deg, rgba(7,7,10,.50), rgba(7,7,10,.20));
  }
  .nav-item {
    flex-direction: row; justify-content: flex-start; gap: 12px;
    font-size: 14px; padding: 11px 14px; border-radius: var(--r);
    flex: 0;
  }
  .nav-item:hover { background: var(--bg-1); color: var(--txt-1) }
  .nav-item.active { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(249,115,22,.20) }
  .nav-item.active::before { display: none }
  .nav-item svg { width: 19px; height: 19px }
}

/* ----- MAIN LAYOUT --------------------------------------------------- */
.main {
  position: relative; z-index: 1;
  padding: 20px 16px calc(var(--bottom-h) + 24px + env(safe-area-inset-bottom)) 16px;
  max-width: 100%;
  min-height: calc(100dvh - var(--top-h));
}
@media (min-width: 980px) {
  .main {
    margin-left: var(--side-w);
    padding: 28px 32px 40px;
    max-width: calc(var(--side-w) + var(--content-max));
  }
}

/* ----- SECTIONS ------------------------------------------------------ */
.section { margin-bottom: 30px }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 16px; gap: 12px;
}
.section-head h2 { font-size: 20px; letter-spacing: -.02em }
@media (min-width: 768px) { .section-head h2 { font-size: 22px } }
.eyebrow {
  font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent); margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--accent);
}

/* ----- HERO STATS ---------------------------------------------------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 680px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px } }

.stat {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  padding: 16px;
  position: relative; overflow: hidden;
  transition: all .2s ease;
}
.stat:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-1) }
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.stat .lbl {
  font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--txt-3); margin-bottom: 10px;
}
.stat .v {
  font: 700 26px/1.05 var(--sg); color: var(--txt-0);
  font-variant-numeric: tabular-nums; word-break: break-word;
  letter-spacing: -.02em;
}
.stat .sub {
  font: 500 11.5px/1.4 var(--mono); color: var(--txt-3); margin-top: 8px;
}
.stat .sub.pos { color: var(--pos) } .stat .sub.neg { color: var(--neg) }
.stat-spark { position: absolute; right: 12px; bottom: 12px; opacity: .65 }

/* ----- CARDS --------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  padding: 20px;
  position: relative; overflow: hidden;
  transition: all .2s ease;
}
.card:hover { border-color: var(--line-2) }
.card.elevated { box-shadow: var(--shadow-2) }
.card.hero {
  background:
    radial-gradient(540px 320px at 0% 0%, rgba(249,115,22,.10), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border-radius: var(--r-lg);
  padding: 28px 22px;
}
@media (min-width: 768px) { .card.hero { padding: 36px 32px } }

/* Hero ribbon (for the overview hero) */
.hero-ribbon {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(249,115,22,.16), transparent 65%),
    radial-gradient(500px 300px at 95% 10%, rgba(96,165,250,.10), transparent 60%),
    linear-gradient(160deg, #1a0e07, #0c0c10 50%);
  border: 1px solid rgba(249,115,22,.18);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  margin-bottom: 20px;
}
@media (min-width: 768px) { .hero-ribbon { padding: 40px 36px } }
.hero-h1 {
  font: 700 clamp(28px, 5vw, 44px) / 1.05 var(--sg);
  letter-spacing: -.025em; margin-bottom: 10px;
  background: linear-gradient(180deg, #fff, #c9c9d3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-h1 .accent {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--txt-2); font-size: 15.5px; max-width: 540px }

/* ----- LIST ROWS ----------------------------------------------------- */
.row-list {
  background: var(--bg-1);
  border: 1px solid var(--line-1); border-radius: var(--r-md);
  overflow: hidden;
}
.row-list .row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-1);
  transition: background .15s ease;
}
.row-list .row:last-child { border-bottom: 0 }
.row-list .row:hover { background: var(--bg-2) }
.row .k { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 }
.row .k .nm { font-weight: 500; font-size: 14px; color: var(--txt-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.row .k .ct { font: 500 11px/1.3 var(--mono); color: var(--txt-3); text-transform: uppercase; letter-spacing: .08em }
.row .v { font: 500 13px/1.3 var(--mono); color: var(--txt-2); text-align: right; flex-shrink: 0 }

/* ----- BADGES -------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .10em;
  padding: 5px 9px; border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--txt-2); border: 1px solid var(--line-1);
}
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(249,115,22,.28) }
.badge.pos { background: rgba(74,222,128,.08); color: var(--pos); border-color: rgba(74,222,128,.28) }
.badge.neg { background: rgba(251,113,133,.08); color: var(--neg); border-color: rgba(251,113,133,.28) }
.badge.warn { background: rgba(251,191,36,.08); color: var(--warn); border-color: rgba(251,191,36,.28) }
.badge.info { background: rgba(96,165,250,.08); color: var(--info); border-color: rgba(96,165,250,.28) }

/* ----- FORMS --------------------------------------------------------- */
.input, .textarea, .select {
  display: block; width: 100%;
  background: var(--bg-2); border: 1px solid var(--line-1);
  border-radius: var(--r); padding: 12px 14px;
  font: 500 14.5px/1.45 var(--inter); color: var(--txt-1);
  transition: all .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent); background: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(249,115,22,.10);
}
.textarea { resize: vertical; min-height: 110px; font-family: var(--inter) }
.field { margin-bottom: 14px }
.field label {
  display: block; font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--txt-3); margin-bottom: 7px;
}
.help { font-size: 12px; color: var(--txt-3); margin-top: 5px }

/* ----- MODAL --------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0; overflow: hidden;
  animation: backdropIn .2s ease;
}
@keyframes backdropIn { from { opacity: 0 } to { opacity: 1 } }
@media (min-width: 680px) { .modal-backdrop { padding: 24px; align-items: center } }
.modal-backdrop[hidden] { display: none !important }
.modal {
  background: linear-gradient(180deg, #18181f, #0e0e14);
  border: 1px solid var(--line-3);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  width: 100%; max-width: 540px; max-height: 92dvh; overflow: auto;
  box-shadow: 0 -10px 60px rgba(0,0,0,.50);
  animation: slideUp .25s cubic-bezier(.16,1,.3,1);
}
@media (min-width: 680px) { .modal { border-radius: var(--r-lg) } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--line-1);
}
.modal-head h3 { font-size: 17px; letter-spacing: -.01em }
.modal-close {
  width: 34px; height: 34px; border-radius: var(--r);
  display: grid; place-items: center; color: var(--txt-3);
  font-size: 22px; line-height: 1; background: var(--bg-2);
  transition: all .15s ease;
}
.modal-close:hover { color: var(--txt-1); background: var(--bg-3) }
.modal-body { padding: 20px 22px 24px }

/* ----- TOAST --------------------------------------------------------- */
.toast {
  position: fixed; top: calc(var(--top-h) + 14px); left: 50%; transform: translateX(-50%);
  z-index: 90; padding: 12px 18px;
  background: rgba(13,13,16,.96); border: 1px solid var(--line-2); border-radius: var(--r);
  font: 500 13.5px/1 var(--inter); color: var(--txt-1);
  box-shadow: var(--shadow-2);
  animation: toastIn .22s cubic-bezier(.16,1,.3,1);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.pos { border-color: rgba(74,222,128,.40); background: linear-gradient(180deg, rgba(74,222,128,.04), rgba(13,13,16,.96)) }
.toast.neg { border-color: rgba(251,113,133,.40); background: linear-gradient(180deg, rgba(251,113,133,.04), rgba(13,13,16,.96)) }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px) } to { opacity: 1; transform: translate(-50%, 0) } }

/* ----- COMPOSE / QUEUE ---------------------------------------------- */
.compose-card { padding: 22px 20px 18px; border-radius: var(--r-lg) }
@media (min-width: 768px) { .compose-card { padding: 26px } }
.compose-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 0 14px; border-bottom: 1px solid var(--line-1); margin-bottom: 14px;
}
.tool {
  padding: 8px 12px; font: 600 11.5px/1 var(--mono);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--txt-3); border: 1px solid var(--line-1); border-radius: var(--r-sm);
  transition: all .15s ease;
}
.tool:hover:not(:disabled) { color: var(--txt-1); border-color: var(--line-2) }
.tool.active { color: var(--accent); background: var(--accent-soft); border-color: rgba(249,115,22,.30) }
.tool:disabled { opacity: .55; cursor: not-allowed }
.tool .glyph { display: inline-block; font-family: var(--sg); margin-right: 5px }

.compose-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; margin-top: 14px;
}
.char-ring {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--mono); color: var(--txt-3);
}
.char-ring.warn { color: var(--warn) }
.char-ring.neg { color: var(--neg) }
.char-ring svg { width: 22px; height: 22px }

.thread-parts {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px;
  position: relative;
}
.thread-parts::before {
  content: ""; position: absolute; left: 14px; top: 30px; bottom: 30px; width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: .25;
}
.thread-part {
  position: relative; padding-left: 38px;
}
.thread-part-num {
  position: absolute; left: 0; top: 6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #000;
  display: grid; place-items: center;
  font: 700 12px/1 var(--mono);
  box-shadow: 0 0 0 4px var(--bg-1);
}

.queue-item {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  border: 1px solid var(--line-1); border-radius: var(--r-md);
  background: var(--bg-1); transition: all .15s ease;
}
.queue-item:hover { border-color: var(--line-2) }
.queue-item.posted { border-color: rgba(74,222,128,.20); background: linear-gradient(180deg, rgba(74,222,128,.02), var(--bg-1)) }
.queue-item.failed { border-color: rgba(251,113,133,.30); background: linear-gradient(180deg, rgba(251,113,133,.03), var(--bg-1)) }
.queue-item.posting { border-color: rgba(251,191,36,.30) }
.queue-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap }
.queue-item-time { font: 500 12px/1 var(--mono); color: var(--txt-3) }
.queue-item-text { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.5 }
.queue-item-img {
  display: block; max-width: 240px; max-height: 200px; object-fit: cover;
  border-radius: var(--r-sm); border: 1px solid var(--line-1);
}
.queue-item-metrics {
  display: flex; gap: 16px; font: 500 12px/1 var(--mono); color: var(--txt-3); flex-wrap: wrap;
}
.queue-item-actions { display: flex; gap: 6px; flex-wrap: wrap }

/* SIWE status line */
.siwe-status {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--r);
  background: var(--bg-2); border: 1px solid var(--line-1);
  font: 500 13px/1.5 var(--inter); color: var(--txt-2);
  white-space: pre-wrap; word-break: break-word;
}
.siwe-status.pos { color: var(--pos); border-color: rgba(74,222,128,.30); background: rgba(74,222,128,.04) }
.siwe-status.neg { color: var(--neg); border-color: rgba(251,113,133,.30); background: rgba(251,113,133,.04) }

/* ----- TICKER -------------------------------------------------------- */
.ticker {
  overflow: hidden; position: relative;
  border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1);
  background: linear-gradient(90deg, rgba(0,0,0,.30), transparent, rgba(0,0,0,.30));
  margin: -2px -16px 18px;
}
@media (min-width: 980px) { .ticker { margin: -2px -32px 22px } }
.ticker-track {
  display: flex; gap: 40px; padding: 12px 24px;
  width: max-content;
  animation: tickerScroll 60s linear infinite;
}
@keyframes tickerScroll {
  0% { transform: translateX(0) }
  100% { transform: translateX(-50%) }
}
.ticker-item { font: 500 13px/1 var(--mono); color: var(--txt-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px }
.ticker-item b { color: var(--txt-0); font-weight: 600 }
.ticker-item .sep { color: var(--accent); opacity: .5 }

/* ----- ONBOARDING NUDGES -------------------------------------------- */
.nudge-grid { display: grid; gap: 12px; grid-template-columns: 1fr }
@media (min-width: 680px) { .nudge-grid { grid-template-columns: repeat(3, 1fr) } }
.nudge {
  position: relative; padding: 18px;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line-1); border-radius: var(--r-md);
  transition: all .2s ease; cursor: pointer; overflow: hidden;
}
.nudge:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-hover) }
.nudge::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.nudge:hover::before { opacity: 1 }
.nudge .icon {
  width: 38px; height: 38px; border-radius: var(--r);
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 12px;
}
.nudge .icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.nudge h4 { font-size: 14.5px; margin-bottom: 5px }
.nudge p { font-size: 12.5px; line-height: 1.5; color: var(--txt-2) }
.nudge.done { opacity: .6 }
.nudge.done .icon { background: rgba(74,222,128,.10); color: var(--pos) }

/* ----- ECOSYSTEM GRID ------------------------------------------------ */
.eco-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr) }
@media (min-width: 680px) { .eco-grid { grid-template-columns: repeat(3, 1fr) } }
@media (min-width: 980px) { .eco-grid { grid-template-columns: repeat(4, 1fr) } }
.eco {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px;
  background: var(--bg-1); border: 1px solid var(--line-1); border-radius: var(--r-md);
  transition: all .15s ease; position: relative; overflow: hidden;
}
.eco:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-1) }
.eco .nm { font-weight: 600; font-size: 14px; color: var(--txt-1) }
.eco .ct { font: 500 11px/1.3 var(--mono); color: var(--txt-3); text-transform: uppercase; letter-spacing: .06em }
.eco .desc { font-size: 12.5px; color: var(--txt-2); line-height: 1.45; margin-top: 4px }
.eco .arrow {
  position: absolute; top: 14px; right: 14px; color: var(--txt-3);
  transition: all .15s ease;
}
.eco:hover .arrow { color: var(--accent); transform: translate(2px, -2px) }

/* ----- KV grid ------------------------------------------------------- */
.kv { display: grid; gap: 12px; grid-template-columns: 1fr }
@media (min-width: 560px) { .kv { grid-template-columns: 1fr 1fr } }
.kv-3 { display: grid; gap: 12px; grid-template-columns: 1fr }
@media (min-width: 680px) { .kv-3 { grid-template-columns: repeat(3, 1fr) } }

/* ----- LOADERS ------------------------------------------------------- */
.loader {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line-3); border-top-color: var(--accent);
  animation: spin .8s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg) } }
.skel {
  display: inline-block; min-width: 60px; min-height: 1em;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.10) 50%, rgba(255,255,255,.04) 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px; color: transparent;
}
@keyframes shimmer { 0% { background-position: -600px 0 } 100% { background-position: 600px 0 } }

/* ----- EMPTY STATE --------------------------------------------------- */
.empty {
  padding: 36px 18px; text-align: center; color: var(--txt-3);
  background: var(--bg-1); border: 1px dashed var(--line-2); border-radius: var(--r-md);
}
.empty .icon { font-size: 30px; margin-bottom: 12px; opacity: .55 }
.empty h3 { color: var(--txt-1); font-size: 16px; margin-bottom: 6px }
.empty p { max-width: 380px; margin: 0 auto; font-size: 13.5px; line-height: 1.5 }

/* ----- UTILITY ------------------------------------------------------- */
.flex { display: flex } .wrap { flex-wrap: wrap } .grow { flex: 1 }
.gap-6 { gap: 6px } .gap-8 { gap: 8px } .gap-12 { gap: 12px } .gap-14 { gap: 14px } .gap-20 { gap: 20px }
.flex-col { display: flex; flex-direction: column }
.between { justify-content: space-between } .center { justify-content: center; align-items: center }
.mt-12 { margin-top: 12px } .mb-12 { margin-bottom: 12px } .mt-20 { margin-top: 20px }
.hidden { display: none !important }
code { background: rgba(255,255,255,.06); border-radius: 4px; padding: 2px 6px; font-family: var(--mono); font-size: 12.5px; color: var(--txt-1) }

/* Sparklines (inline SVG) */
.spark { stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.spark-fill { fill: url(#sparkFill); opacity: .35 }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important }
  #particles-canvas { display: none }
}
