@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ink: #e8eadf;
  --muted: #8b9289;
  --dim: #4e5650;
  --night: #070a09;
  --panel: #0c100e;
  --line: rgba(223, 232, 211, .12);
  --saffron: #ffb31a;
  --saffron-soft: #ffd274;
  --green: #7ad8a6;
  --red: #ee5a43;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  height: 100vh;
  overflow: hidden;
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.grain {
  position: fixed;
  inset: 0;
  opacity: .08;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.eyebrow {
  font: 500 10px/1.4 var(--mono);
  letter-spacing: .18em;
  color: var(--saffron);
}

/* TOPBAR */
.topbar {
  height: 74px;
  padding: 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 9, .9);
  backdrop-filter: blur(20px);
  z-index: 30;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 13px var(--mono);
  letter-spacing: .12em;
}
.brand svg {
  width: 38px;
  fill: none;
  stroke: var(--saffron);
  stroke-width: 1.2;
}
.brand svg path:last-child {
  stroke: var(--ink);
  stroke-width: 1.5;
}
.brand b { color: var(--saffron); }

.topbar-stats {
  display: flex;
  gap: 28px;
  font: 400 9px var(--mono);
  color: var(--muted);
  letter-spacing: .12em;
}
.topbar-stats b {
  color: var(--ink);
}

.join-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #171305;
  background: var(--saffron);
  font: 600 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: .2s;
}
.join-button:hover {
  background: var(--saffron-soft);
  transform: translateY(-1px);
}
.join-button i { font-style: normal; font-size: 14px; }

/* DASHBOARD CONTAINER */
.dashboard-wrap {
  height: calc(100vh - 74px);
  display: flex;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 35% 44%, rgba(255,179,26,.02), transparent 45%),
    linear-gradient(rgba(255,255,255,.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.005) 1px, transparent 1px);
  background-size: auto, 58px 58px, 58px 58px;
}

/* GLOBAL UTILITY */
.hidden {
  display: none !important;
}

/* EXPLORER PANE (LEFT) */
.explorer-pane {
  flex: 1.6;
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.explorer-inner {
  width: 100%;
  max-width: 650px;
  flex: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 20px 0;
}

.ring-orbit {
  flex: 1;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-track {
  position: absolute;
  inset: 0;
}

/* CARDS */
.ring-card {
  --card-width: min(420px, 80vw);
  width: var(--card-width);
  height: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(223, 232, 211, 0.07);
  color: var(--ink);
  background:
    linear-gradient(145deg, hsla(var(--node-hue) 65% 35% / .08), transparent 45%),
    rgba(9,13,11,0.92);
  backdrop-filter: blur(25px);
  box-shadow: 
    0 25px 60px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,0.03);
  transform:
    translate3d(calc(-50% + var(--ring-offset) * 440px), -50%, 0)
    scale(var(--ring-scale));
  opacity: var(--ring-opacity);
  filter: saturate(var(--ring-saturation));
  transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .4s, filter .4s, border-color .4s;
  pointer-events: none;
  z-index: 1;
}
.ring-card.no-transition { transition: none; }
.ring-card.near { pointer-events: auto; cursor: pointer; }
.ring-card.active {
  z-index: 10;
  border-color: hsla(var(--node-hue), 85%, 60%, 0.35);
  opacity: 1;
  filter: none;
  pointer-events: auto;
  box-shadow: 
    0 35px 80px rgba(0,0,0,.75), 
    0 0 25px hsla(var(--node-hue), 80%, 55%, 0.1), 
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.ring-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, hsla(var(--node-hue), 85%, 65%, 0.4), transparent);
  top: 0;
  opacity: 0;
  pointer-events: none;
}
.ring-card.active::after {
  animation: scanline 4.5s linear infinite;
  opacity: 1;
}
@keyframes scanline {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

.ring-card-top { display: flex; justify-content: space-between; color: var(--muted); font: 8px var(--mono); letter-spacing: .14em; }
.ring-card-signal { height: min(110px, 14vh); display: grid; place-items: center; position: relative; margin-top: 5px; }
.ring-card-signal div {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0a0c09;
  background: hsl(var(--node-hue) 82% 66%);
  box-shadow: 0 0 45px hsla(var(--node-hue) 90% 65% / .2);
  font: 500 18px var(--mono);
}
.ring-card-signal i { position: absolute; width: 108px; height: 108px; border: 1px solid hsla(var(--node-hue) 90% 65% / .15); border-radius: 50%; }
.ring-card-signal i:nth-child(2) { width: 124px; height: 124px; border-style: dashed; animation: spin 18s linear infinite; }
.ring-card-signal i:nth-child(3) { width: 6px; height: 6px; border: 0; background: var(--saffron); box-shadow: 0 0 12px var(--saffron); transform: translate(50px, -24px); }
.ring-card-copy h2 { margin: 8px 0 8px; font-size: clamp(24px, 3.5vw, 36px); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.ring-card-copy > p { min-height: 40px; margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.ring-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ring-card-tags span { padding: 4px 6px; border: 1px solid var(--line); color: var(--muted); font: 7px var(--mono); text-transform: uppercase; }
.ring-card-foot { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border: 1px solid var(--line); }
.ring-card-foot div { padding: 8px 10px; border-right: 1px solid var(--line); }
.ring-card-foot div:last-child { border: 0; }
.ring-card-foot small { display: block; color: var(--dim); font: 7px var(--mono); }
.ring-card-foot b { display: block; margin-top: 4px; font: 400 13px var(--mono); }
.ring-card-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 7px; margin-top: 9px; }
.ring-card-actions a, .ring-card-actions button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid var(--line);
  font: 8px var(--mono);
  letter-spacing: .08em;
  cursor: pointer;
}
.ring-card-actions a { color: #171305; border-color: var(--saffron); background: var(--saffron); }
.ring-card-actions button { color: var(--muted); background: transparent; justify-content: center; }

/* Empty state styling */
.empty-placeholder {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  filter: none !important;
}
.empty-placeholder .ring-card-actions {
  grid-template-columns: 1fr;
}
.empty-placeholder .ring-card-actions a {
  justify-content: center;
  gap: 8px;
}

/* RINGS CONSOLE */
.ring-console {
  height: 64px;
  display: grid;
  grid-template-columns: 1fr 150px 110px 1fr;
  border: 1px solid var(--line);
  background: rgba(7,10,9,.88);
  backdrop-filter: blur(16px);
  margin-top: 10px;
}
.ring-console button { border: 0; color: var(--ink); background: transparent; cursor: pointer; }
.ring-step { padding: 0 16px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.ring-step span { color: var(--saffron); font: 7px var(--mono); letter-spacing: .14em; }
.ring-step b { max-width: 140px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 500; color: var(--ink); }
.ring-next { align-items: flex-end; text-align: right; }
.ring-position { padding: 10px 12px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; }
.ring-position > span { font: 12px var(--mono); }
.ring-position small { color: var(--dim); font: 6px var(--mono); letter-spacing: .1em; display: block; margin-top: 3px; }
.ring-progress { height: 1px; margin: 6px 0; background: var(--line); }
.ring-progress i { display: block; height: 100%; background: var(--saffron); box-shadow: 0 0 8px var(--saffron); transition: width .4s; }
.ring-random { border-right: 1px solid var(--line) !important; color: var(--muted) !important; font: 7px var(--mono) !important; letter-spacing: .1em; }

.live-dot { width: 5px; height: 5px; display: inline-block; border-radius: 50%; margin-right: 6px; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* LEADERBOARD PANE (RIGHT SIDEBAR) */
.leaderboard-pane {
  width: 380px;
  min-width: 330px;
  max-width: 440px;
  background: rgba(9, 12, 11, 0.4);
  backdrop-filter: blur(10px);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.leaderboard-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.leaderboard-header h2 {
  margin: 6px 0 16px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.search-wrap {
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(7, 10, 9, .78);
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.search-wrap span { color: var(--saffron); font-size: 18px; }
.search-wrap input {
  flex: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0 10px;
  font: 400 11px var(--mono);
}
.search-wrap input::placeholder { color: var(--dim); }

.leaderboard-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}
.sidebar-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
}
.sidebar-table th {
  padding: 10px 16px;
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 9, 0.2);
}
.sidebar-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  vertical-align: middle;
}
.sidebar-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-table tbody tr:hover {
  background: rgba(255, 179, 26, 0.02);
}
.sidebar-table tbody tr.active {
  background: rgba(255, 179, 26, 0.06);
  border-left: 2px solid var(--saffron);
}
.sidebar-table tbody tr.active td {
  border-bottom-color: rgba(255, 179, 26, 0.15);
}

.rank-badge {
  display: inline-block;
  font-size: 10px;
  color: var(--muted);
  width: 20px;
}
tr.active .rank-badge {
  color: var(--saffron);
  font-weight: 500;
}

.builder-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.builder-initials {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 8px;
  color: #0b0c08;
  font-weight: 600;
  flex-shrink: 0;
}
.builder-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.builder-meta strong {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.builder-meta small {
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.num-col {
  text-align: right;
  font-size: 11px;
}
.score-col strong {
  color: var(--saffron);
}
.streak-col {
  color: var(--green);
}
.empty-rows {
  text-align: center;
  color: var(--dim);
  padding: 40px 16px !important;
  font-size: 9px;
  letter-spacing: 0.1em;
}

/* PASSPORT & MODALS */
.profile-modal {
  width: min(840px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  border: 1px solid rgba(255,179,26,.3);
  color: var(--ink);
  background: #0a0e0c;
  padding: 0;
  box-shadow: 0 30px 100px #000;
}
.profile-modal::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(6px); }
.modal-close { position: absolute; right: 18px; top: 14px; z-index: 2; border: 0; background: none; color: var(--muted); font-size: 28px; cursor: pointer; }
.profile-sheet { display: grid; grid-template-columns: 260px 1fr; min-height: 520px; }
.passport { padding: 32px 24px; background: linear-gradient(145deg, hsla(var(--node-hue), 50%, 10%, 0.95), #0f0f0a 60%, #0c0e0c); border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.passport::after { content: "KL"; position: absolute; right: -20px; bottom: -40px; color: hsla(var(--node-hue), 85%, 60%, 0.03); font: 150px var(--mono); }
.passport .eyebrow { margin-bottom: 30px; display: block; }
.passport-avatar { width: 80px; height: 80px; display: grid; place-items: center; color: #1a1407; background: hsl(var(--node-hue) 82% 66%); font: 24px var(--mono); clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%); box-shadow: 0 0 25px hsla(var(--node-hue) 90% 65% / .2); margin: 0 auto; }
.passport h2 { font-size: 24px; margin: 18px 0 4px; letter-spacing: -.03em; text-align: center; }
.passport > p { color: var(--muted); font: 9px/1.6 var(--mono); text-transform: uppercase; text-align: center; }
.passport-code { margin-top: 36px; display: grid; gap: 10px; }
.passport-code div { border-top: 1px solid var(--line); padding-top: 8px; display: flex; justify-content: space-between; font: 8px var(--mono); color: var(--muted); }
.passport-code b { color: var(--ink); font-weight: 400; }
.profile-main { padding: 40px; }
.profile-main h1 { margin: 10px 0 12px; font-size: 38px; letter-spacing: -.04em; }
.profile-main > p { max-width: 480px; color: var(--muted); line-height: 1.65; font-size: 12px; }
.badge-row { display: flex; gap: 6px; margin: 18px 0 30px; flex-wrap: wrap; }
.badge { border: 1px solid var(--line); padding: 6px 8px; font: 8px var(--mono); }
.project-list { display: grid; gap: 8px; margin-top: 16px; }
.project { border: 1px solid var(--line); padding: 12px; display: grid; grid-template-columns: 1fr auto; background: rgba(255,255,255,0.01); }
.project b { font-size: 11px; }
.project p { grid-column: 1 / -1; color: var(--muted); font-size: 10px; margin: 4px 0 0 0; }
.profile-links { display: flex; gap: 8px; margin-top: 24px; }
.profile-links a { padding: 10px 12px; border: 1px solid var(--line); font: 8px var(--mono); text-transform: uppercase; }

/* BOOT SYSTEM */
.boot { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #050706; transition: opacity .4s, visibility .4s; }
.boot.hidden { opacity: 0; visibility: hidden; }
.boot::before, .boot::after { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(255,179,26,.12); pointer-events: none; }
.boot::after { inset: 34px; border-color: rgba(255,255,255,.02); }
.boot-skip { position: absolute; right: 50px; top: 48px; z-index: 2; color: var(--muted); background: none; border: 0; cursor: pointer; text-transform: uppercase; font: 8px var(--mono); letter-spacing: .16em; }
.boot-copy { width: min(600px, calc(100% - 64px)); position: relative; z-index: 1; }
.boot-copy h1 { font: 300 clamp(18px, 2.5vw, 30px)/1.4 var(--mono); letter-spacing: -.02em; margin: 18px 0; }
.boot-track { height: 2px; background: rgba(255,255,255,.05); }
.boot-track span { display: block; width: 0; height: 100%; background: var(--saffron); box-shadow: 0 0 8px var(--saffron); transition: width .3s ease; }
.boot-metrics { margin-top: 18px; color: var(--muted); font: 8px var(--mono); letter-spacing: .12em; min-height: 15px; }
.boot-radar { width: min(60vw, 550px); aspect-ratio: 1; position: absolute; border: 1px solid rgba(255,179,26,.06); border-radius: 50%; }
.boot-radar::before, .boot-radar::after, .boot-radar i { content: ""; position: absolute; inset: 16%; border: 1px solid rgba(255,179,26,.05); border-radius: 50%; }
.boot-radar::after { inset: 33%; }
.boot-radar i:first-child { inset: 50% 0 auto; height: 1px; border: 0; background: rgba(255,179,26,.05); border-radius: 0; }
.boot-radar i:nth-child(2) { inset: 0 50% auto; width: 1px; height: 100%; border: 0; background: rgba(255,179,26,.05); border-radius: 0; }
.boot-radar i:last-child { inset: 50%; width: 50%; height: 1px; border: 0; transform-origin: left; background: linear-gradient(90deg, var(--saffron), transparent); animation: radar 2s linear infinite; border-radius: 0; }
@keyframes radar { to { transform: rotate(360deg); } }

.passport-college {
  color: var(--green);
  font-size: 9px;
  display: block;
  margin-top: 6px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: var(--mono);
}

/* LEADERBOARD TAB BAR */
.leaderboard-tabs {
  display: flex;
  gap: 2px;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: rgba(7, 10, 9, 0.4);
  padding: 3px;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--dim);
  font: 500 8px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  color: var(--ink);
}
.tab-btn.active {
  background: rgba(223, 232, 211, 0.08);
  color: var(--saffron);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(255, 179, 26, 0.05);
}
/* VIEW SWITCHER / PANE HEADER */
.pane-header {
  padding: 16px 30px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 15;
  background: rgba(7, 10, 9, 0.95);
  backdrop-filter: blur(8px);
}
.view-tabs {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  background: rgba(7, 10, 9, 0.4);
  padding: 3px;
}
.view-btn {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--dim);
  font: 500 8px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.view-btn:hover {
  color: var(--ink);
}
.view-btn.active {
  background: rgba(223, 232, 211, 0.08);
  color: var(--saffron);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(255, 179, 26, 0.05);
}

/* SHOWCASE GRID PANEL */
.showcase-inner {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  min-height: 0;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* SHOWCASE CARD */
.showcase-card {
  background: rgba(9, 12, 11, 0.4);
  border: 1px solid var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-card:hover {
  transform: translateY(-2px);
  background: rgba(12, 16, 14, 0.6);
  border-color: hsla(var(--node-hue), 85%, 60%, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 20px hsla(var(--node-hue), 85%, 60%, 0.04);
}
.showcase-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
}
.showcase-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.showcase-creator {
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font: 400 8px var(--mono);
  text-transform: uppercase;
  white-space: nowrap;
}
.showcase-creator span {
  color: var(--saffron);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.showcase-creator:hover span {
  color: var(--saffron-soft);
}
.showcase-desc {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex: 1;
}
.showcase-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.showcase-tags span {
  border: 1px solid var(--line);
  padding: 4px 6px;
  font: 8px var(--mono);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.showcase-links {
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}
.showcase-links a {
  font: 500 8px var(--mono);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.showcase-links a span {
  color: hsla(var(--node-hue), 85%, 60%, 0.85);
  font-size: 8px;
  transition: transform 0.2s ease;
}
.showcase-links a:hover span {
  transform: translate(1px, -1px);
}
.empty-showcase {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--dim);
}
.empty-showcase p {
  font-size: 11px;
  margin-top: 8px;
}

.league-top-builder {
  color: var(--saffron);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.league-top-builder:hover {
  color: var(--saffron-soft);
}

/* WEEKLY CHALLENGE BANNER */
.challenge-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(255, 179, 26, 0.04), rgba(7, 10, 9, 0.6));
  border: 1px solid rgba(255, 179, 26, 0.2);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.challenge-banner::after {
  content: "CHALLENGE";
  position: absolute;
  right: -10px;
  bottom: -15px;
  font: 600 36px var(--mono);
  color: rgba(255, 179, 26, 0.02);
  letter-spacing: -0.05em;
}
.challenge-tag {
  font: 600 8px var(--mono);
  color: var(--saffron);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.challenge-banner h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.challenge-banner p {
  margin: 0 0 16px 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
}
.challenge-meta {
  font: 400 9px var(--mono);
  color: var(--dim);
}
.challenge-meta b {
  color: var(--ink);
  font-weight: 500;
}

/* COMMUNITY CHAT PANEL */
.feed-inner {
  flex: 1;
  padding: 24px;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* CHAT ROOM CONTAINER */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(9, 12, 11, 0.4);
  border: 1px solid var(--line);
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
  position: relative;
  min-height: 0;
}
.chat-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 9, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.chat-title {
  font: 500 9px var(--mono);
  letter-spacing: 0.12em;
  color: var(--saffron);
  display: flex;
  align-items: center;
}
.chat-status {
  font: 400 8px var(--mono);
  color: var(--muted);
  letter-spacing: 0.05em;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* System Message styling */
.chat-message.system {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 10px var(--mono);
  color: var(--muted);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.01);
  border-left: 2px solid var(--dim);
}
.chat-system-tag {
  font-size: 7px;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 2px 4px;
  letter-spacing: 0.05em;
}
.chat-system-text {
  flex: 1;
}
.chat-system-link {
  color: var(--saffron);
  text-decoration: underline;
  margin-right: 10px;
}
.chat-system-link:hover {
  color: var(--saffron-soft);
}
/* User Message styling */
.chat-message.user {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.chat-message.user-self {
  align-self: flex-end;
  flex-direction: row-reverse;
  text-align: right;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 10px var(--mono);
  color: #0b0c08;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s;
  box-shadow: 0 0 15px hsla(var(--node-hue), 80%, 55%, 0.15);
}
.chat-avatar:hover {
  transform: scale(1.05);
}
.chat-msg-body {
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-message.user-self .chat-msg-body {
  align-items: flex-end;
}
.chat-msg-header {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.chat-message.user-self .chat-msg-header {
  flex-direction: row-reverse;
}
.chat-sender {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.chat-sender:hover {
  color: var(--saffron);
}
.chat-bot-badge {
  font: 600 7px var(--mono);
  color: #0c100e;
  background: var(--green);
  border-radius: 2px;
  padding: 1px 4px;
  margin-left: 4px;
  letter-spacing: 0.05em;
  align-self: center;
}
.chat-time {
  font: 400 8px var(--mono);
  color: var(--dim);
}
.chat-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.chat-message.user-self .chat-text {
  border-color: rgba(255, 179, 26, 0.2);
  background: rgba(255, 179, 26, 0.03);
}

/* Chat Input Bar */
.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: rgba(7, 10, 9, 0.8);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-input-bar input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 14px;
  font: 400 11px var(--mono);
}
.chat-input-bar input:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 10px rgba(255, 179, 26, 0.15);
}
.chat-input-bar button {
  background: var(--saffron);
  color: var(--night);
  border: 0;
  padding: 0 20px;
  font: 600 10px var(--mono);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-input-bar button:hover {
  background: var(--saffron-soft);
  transform: translateY(-1px);
}

/* TOAST ALERTS */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 500;
  pointer-events: none;
  max-width: 320px;
}
.toast-alert {
  pointer-events: auto;
  background: rgba(12, 16, 14, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 179, 26, 0.05);
  border-left: 3px solid var(--saffron);
  padding: 14px;
  display: flex;
  flex-direction: column;
  animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}
.toast-alert.fade-out {
  animation: toast-fade-out 0.3s ease forwards;
}
.toast-alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.toast-alert-indicator {
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.2s infinite;
}
.toast-alert-title {
  font: 600 8px var(--mono);
  color: var(--muted);
  letter-spacing: 0.1em;
  flex: 1;
  margin-left: 8px;
}
.toast-alert-close {
  background: transparent;
  border: 0;
  color: var(--dim);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.toast-alert-close:hover {
  color: var(--ink);
}
.toast-alert-body {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.toast-alert-body p {
  margin: 0 0 8px 0;
}
.toast-alert-body strong {
  color: var(--ink);
}
.toast-alert-action {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--saffron);
  font: 600 7px var(--mono);
  letter-spacing: 0.05em;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-align: center;
}
.toast-alert-action:hover {
  background: rgba(255, 179, 26, 0.06);
  border-color: var(--saffron);
}

@keyframes toast-slide-in {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes toast-fade-out {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* RECRUITER COPY ACTIONS */
.recruiter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font: 8px var(--mono);
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.recruiter-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 900px) {
  .dashboard-wrap {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
  }
  .explorer-pane {
    height: calc(100vh - 74px);
    flex: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .leaderboard-pane {
    width: 100%;
    max-width: none;
    height: 600px;
    border-left: 0;
  }
}

@media (max-width: 500px) {
  .topbar { padding: 0 16px; }
  .topbar-stats { display: none; }
  .join-button span { display: none; }
  .join-button { min-width: 40px; padding: 12px; justify-content: center; }
  
  .ring-card {
    height: 420px;
    min-height: 0;
  }
  .ring-card-signal { height: 100px; }
  .ring-card-copy h2 { font-size: 24px; }
  .ring-card-actions { grid-template-columns: 1.2fr 1fr; }
  
  .ring-console {
    grid-template-columns: 1fr 90px 1fr;
  }
  .ring-random { display: none; }
  .ring-step b { max-width: 80px; font-size: 10px; }
  
  .profile-sheet { grid-template-columns: 1fr; }
  .passport { border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-main { padding: 24px; }
}
