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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #020814;
  --bg2:       rgba(4, 14, 29, .88);
  --bg3:       rgba(8, 25, 49, .88);
  --bg4:       rgba(13, 44, 76, .82);
  --surface:   rgba(5, 18, 35, .72);
  --surface2:  rgba(8, 29, 55, .68);
  --border:    rgba(80, 180, 255, .16);
  --border2:   rgba(91, 207, 255, .28);
  --text:      #f4fbff;
  --muted:     #6685a3;
  --muted2:    #a7c1da;
  --green:     #7ff7ff;
  --green2:    #27a8ff;
  --blue:      #2fb7ff;
  --purple:    #6d8cff;
  --orange:    #fb923c;
  --red:       #f87171;
  --cyan:      #7ff7ff;
  --glow:      rgba(47,183,255,.22);
  --glow2:     rgba(127,247,255,.18);
  --shadow:    0 24px 80px rgba(0, 112, 255, .14);
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 78% 10%, rgba(39,168,255,.16), transparent 32%),
    radial-gradient(circle at 12% 22%, rgba(80,243,223,.10), transparent 28%),
    linear-gradient(180deg, #020713 0%, #03101e 42%, #020814 100%);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91,207,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,207,255,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 76%);
}

a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--cyan); }

code, pre, .mono {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
}

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(2, 8, 20, .74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(91,207,255,.18);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 60px;
}
.nav-logo {
  font-size: 18px; font-weight: 800; color: var(--text);
  letter-spacing: .2px; display: flex; align-items: center; gap: 9px;
  text-transform: uppercase;
}
.nav-logo-brand img {
  display: block;
  width: 230px;
  height: 54px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  border: 1px solid rgba(127,247,255,.24);
  box-shadow: 0 0 28px rgba(39,168,255,.18);
}
.nav-logo .logo-icon {
  width: 30px; height: 30px;
  background: radial-gradient(circle at 50% 35%, rgba(127,247,255,.24), rgba(39,168,255,.06));
  border: 1px solid rgba(127,247,255,.72);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--cyan);
  box-shadow: 0 0 22px rgba(39,168,255,.32), inset 0 0 18px rgba(127,247,255,.10);
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--muted2); font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px; transition: all .15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: rgba(39,168,255,.12); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(91,207,255,.16);
}
.nav-links a.btn-nav {
  background: rgba(39,168,255,.12); color: var(--cyan);
  border: 1px solid rgba(127,247,255,.24);
}
.nav-links a.btn-nav:hover { background: rgba(39,168,255,.22); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 580px;
  padding: 104px 28px 72px;
  text-align: center;
  position: relative; overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,8,20,.50) 0%, rgba(2,8,20,.88) 78%, rgba(2,8,20,.98) 100%),
    url('/static/preview.png');
  background-size: cover;
  background-position: center;
  opacity: .28;
  filter: blur(2px) saturate(1.15);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image:
    radial-gradient(circle at 68% 54%, rgba(127,247,255,.20), transparent 16%),
    linear-gradient(rgba(91,207,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,207,255,.13) 1px, transparent 1px);
  background-size: 100% 100%, 52px 52px, 52px 52px;
}
.hero-inner { max-width: 1120px; width: 100%; margin: 0 auto; position: relative; }
.hero-brand-art {
  display: block;
  width: min(100%, 760px);
  max-height: 300px;
  object-fit: cover;
  object-position: center 42%;
  margin: 0 auto 22px;
  border-radius: 16px;
  border: 1px solid rgba(127,247,255,.26);
  box-shadow:
    0 22px 80px rgba(0,112,255,.24),
    0 0 0 1px rgba(255,255,255,.04) inset;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(4,14,29,.55); border: 1px solid rgba(127,247,255,.28);
  color: #e8fbff; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 24px;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(39,168,255,.14);
}
.hero-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); animation: pulse 2s infinite;
  box-shadow: 0 0 14px var(--cyan);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 800; letter-spacing: -3px; line-height: .92;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #d8f8ff 34%, #48d7ff 72%, #117ee8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 30px rgba(39,168,255,.30));
}
.hero h1 span {
  background: linear-gradient(180deg, #8ffcff 0%, #46dfff 35%, #1687ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  color: #d7eaff; font-size: 18px; margin: 24px 0 34px;
  max-width: 680px; line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 18px rgba(0,0,0,.55);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #11b8ff, #71f6ff);
  color: #03101e; font-weight: 800; font-size: 14px;
  padding: 12px 24px; border-radius: 10px; border: none;
  cursor: pointer; transition: all .2s; box-shadow: 0 0 28px rgba(39,168,255,.34);
}
.btn-primary:hover {
  transform: translateY(-1px); box-shadow: 0 8px 42px rgba(39,168,255,.46);
  color: var(--bg); text-decoration: none;
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(4,14,29,.45);
  color: #d7eaff; font-weight: 700; font-size: 14px;
  padding: 12px 24px; border-radius: 10px;
  border: 1px solid rgba(127,247,255,.24);
  cursor: pointer; transition: all .2s;
}
.btn-secondary:hover {
  color: var(--text); border-color: rgba(127,247,255,.55); text-decoration: none;
  box-shadow: 0 0 24px rgba(39,168,255,.18);
}
.btn-primary.full, .btn-secondary.full { width: 100%; justify-content: center; }

/* ── Stats Strip ───────────────────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(4,14,29,.72), rgba(2,8,20,.86));
  box-shadow: inset 0 1px 0 rgba(127,247,255,.06);
}
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-tile {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background .2s;
}
.stat-tile:hover { background: rgba(39,168,255,.045); }
.stat-tile:last-child { border-right: none; }
.stat-tile::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent);
  opacity: 0; transition: opacity .2s;
}
.stat-tile:hover::after { opacity: 1; }
.stat-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-value.green { color: var(--cyan); text-shadow: 0 0 18px rgba(127,247,255,.22); }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ── Section wrapper ───────────────────────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 64px 28px; }
.section.narrow { max-width: 680px; }
.section-title {
  font-size: 30px; font-weight: 800; letter-spacing: -.7px; margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff, #8feeff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-sub {
  color: var(--cyan);
  font-size: 12px;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 800;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background:
    linear-gradient(180deg, rgba(8,29,55,.84), rgba(3,12,27,.86));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(127,247,255,.05);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127,247,255,.42), transparent);
  opacity: .75;
}
.card:hover { border-color: var(--border2); box-shadow: 0 28px 90px rgba(0,112,255,.18), inset 0 1px 0 rgba(127,247,255,.08); }
.card.glow { box-shadow: 0 0 60px rgba(39,168,255,.12), var(--shadow); }
.card h2 { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.card h3 { font-size: 14px; font-weight: 600; color: var(--muted2); margin: 24px 0 12px; }
.card.mt, .mt { margin-top: 16px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── How It Works steps ────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: rgba(39,168,255,.12); border: 1px solid rgba(127,247,255,.28);
  color: var(--cyan); font-size: 13px; font-weight: 800; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(39,168,255,.18);
}
.step-content strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.step-content span { font-size: 13px; color: var(--muted2); }

/* ── Info Table ────────────────────────────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 12px 0; font-size: 13px; }
.info-table td:first-child { color: var(--muted2); }
.info-table td.val { text-align: right; font-weight: 600; }
.info-table td.val.green { color: var(--cyan); text-shadow: 0 0 14px rgba(127,247,255,.18); }
.info-table td.val.blue { color: var(--blue); }

/* ── Leaderboard / Data tables ─────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
  color: #79cfff; border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid rgba(30,41,59,.5); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(39,168,255,.045); }
.data-table .rank { color: var(--muted); font-weight: 700; }
.data-table .rank.top { color: var(--cyan); text-shadow: 0 0 12px rgba(127,247,255,.18); }
.loading { color: var(--muted); text-align: center; padding: 32px; font-size: 13px; }

/* ── Pill badges ───────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.pill.green  { background: rgba(39,168,255,.12); color: var(--cyan);  border: 1px solid rgba(127,247,255,.26); }
.pill.blue   { background: rgba(39,168,255,.1);  color: var(--blue);   border: 1px solid rgba(39,168,255,.24); }
.pill.purple { background: rgba(109,140,255,.1); color: var(--purple); border: 1px solid rgba(109,140,255,.24); }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--muted2); text-transform: uppercase; letter-spacing: .5px; }
.form-group input {
  background: rgba(2,8,20,.78); border: 1px solid var(--border2);
  color: var(--text); padding: 12px 14px; border-radius: 10px; font-size: 14px;
  transition: border-color .15s, box-shadow .15s; outline: none;
  font-family: inherit;
}
.form-group input:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(39,168,255,.15), 0 0 28px rgba(39,168,255,.12);
}
.form-group input::placeholder { color: var(--muted); }
.form.inline { flex-direction: row; align-items: center; gap: 10px; }
.form.inline input { flex: 1; }

/* ── Alerts ────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-top: 14px;
  display: flex; align-items: center; gap: 8px;
}
.alert.error   { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.22); color: var(--red); }
.alert.success { background: rgba(39,168,255,.10);  border: 1px solid rgba(127,247,255,.26); color: var(--cyan); }
.alert.info    { background: rgba(39,168,255,.10);  border: 1px solid rgba(91,207,255,.22); color: #b6ecff; }
.hidden { display: none !important; }

/* ── Code block ────────────────────────────────────────────────────────── */
.code-block {
  background: rgba(1,6,14,.88);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-all;
  color: #7ff7ff;
  margin-top: 10px;
  position: relative;
}
.code-copy {
  position: absolute; top: 10px; right: 10px;
  background: rgba(8,29,55,.92); border: 1px solid var(--border2); color: var(--muted2);
  padding: 4px 10px; border-radius: 5px; font-size: 11px; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.code-copy:hover { color: var(--cyan); border-color: var(--cyan); }

/* ── Feature cards ─────────────────────────────────────────────────────── */
.feature-card {
  background: linear-gradient(180deg, rgba(8,29,55,.82), rgba(3,12,27,.82));
  border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  transition: all .2s; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 18px 56px rgba(0,112,255,.18); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.feature-icon.green  { background: rgba(80,243,223,.1); color: var(--cyan); }
.feature-icon.blue   { background: rgba(39,168,255,.1); color: var(--blue); }
.feature-icon.purple { background: rgba(109,140,255,.1); color: var(--purple); }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted2); line-height: 1.6; }

/* ── Pool health dashboard ─────────────────────────────────────────────── */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.dashboard-header .section-sub { margin-bottom: 6px; }
.dashboard-intro {
  color: var(--muted2);
  max-width: 720px;
}
.health-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(91,207,255,.20);
  background: rgba(8,29,55,.54);
  color: var(--muted2);
  box-shadow: 0 0 24px rgba(39,168,255,.10);
}
.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.health-badge.healthy {
  background: rgba(39,168,255,.12);
  border-color: rgba(127,247,255,.30);
  color: var(--cyan);
}
.health-badge.caution {
  background: rgba(251,146,60,.10);
  border-color: rgba(251,146,60,.24);
  color: var(--orange);
}
.health-badge.blocked {
  background: rgba(248,113,113,.10);
  border-color: rgba(248,113,113,.24);
  color: var(--red);
}
.pool-health-grid { margin-bottom: 20px; }
.health-panels {
  align-items: stretch;
  grid-template-columns: minmax(280px, .8fr) minmax(680px, 1.35fr);
  margin-bottom: 36px;
}
.health-panels .card { min-width: 0; }
.challenge-pressure-card { min-width: 0; }
.dashboard-divider { margin: 4px 0 44px; }
.worker-earnings-card { min-width: 0; }
.worker-earnings-scroll { max-height: 480px; }
.worker-earnings-card .data-table.compact th:nth-child(1) { width: 44%; }
.worker-earnings-card .data-table.compact th:nth-child(2) { width: 10%; }
.worker-earnings-card .data-table.compact th:nth-child(3) { width: 16%; }
.worker-earnings-card .data-table.compact th:nth-child(4) { width: 12%; }
.worker-earnings-card .data-table.compact th:nth-child(5) { width: 18%; }
.worker-earnings-card .data-table.compact td:nth-child(1) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.table-scroll {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(2,8,20,.34);
}
.data-table.compact {
  table-layout: fixed;
}
.data-table.compact th,
.data-table.compact td {
  padding: 9px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-table.compact th:nth-child(1) { width: 28%; }
.data-table.compact th:nth-child(2) { width: 26%; }
.data-table.compact th:nth-child(3) { width: 12%; }
.data-table.compact th:nth-child(4) { width: 14%; }
.data-table.compact th:nth-child(5) { width: 10%; }
.data-table.compact th:nth-child(6) { width: 10%; }
.data-table.compact td:nth-child(2) {
  font-size: 12px;
}
.pressure-table {
  min-width: 720px;
}
.pressure-table th:nth-child(1) { width: 27%; }
.pressure-table th:nth-child(2) { width: 29%; }
.pressure-table th:nth-child(3) { width: 11%; }
.pressure-table th:nth-child(4) { width: 13%; }
.pressure-table th:nth-child(5) { width: 10%; }
.pressure-table th:nth-child(6) { width: 10%; }
.data-table.compact th:nth-child(n+3),
.data-table.compact td:nth-child(n+3) {
  text-align: right;
}
@media (max-width: 1050px) {
  .health-panels { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .dashboard-header { flex-direction: column; }
  .health-badge { align-self: flex-start; }
  .data-table.compact { min-width: 620px; }
  .pressure-table { min-width: 720px; }
}

/* ── Dashboard compact stats ───────────────────────────────────────────── */
.dash-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 700px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
.dash-tile {
  background: linear-gradient(180deg, rgba(8,29,55,.82), rgba(3,12,27,.78));
  border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px;
  box-shadow: inset 0 1px 0 rgba(127,247,255,.06), 0 18px 50px rgba(0,0,0,.18);
}
.dash-tile .val { font-size: 22px; font-weight: 800; color: var(--cyan); text-shadow: 0 0 16px rgba(127,247,255,.20); }
.dash-tile .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.dash-tile .tile-sub { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.4; }

.slave-summary {
  background: rgba(3,12,27,.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.slave-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.slave-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slave-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: rgba(39,168,255,.04);
  color: var(--muted2);
  font-size: 12px;
}
.slave-chip.cpu { border-color: rgba(39,168,255,.24); }
.slave-chip.gpu { border-color: rgba(109,140,255,.26); }
.slave-chip.inactive { opacity: .55; }
.slave-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.slave-chip.active .slave-dot { background: var(--cyan); box-shadow: 0 0 10px rgba(127,247,255,.5); }
.slave-type {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}
.slave-chip.cpu .slave-type { color: var(--blue); }
.slave-chip.gpu .slave-type { color: var(--purple); }
.slave-name {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slave-machine,
.slave-tag {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
}
.slave-machine {
  background: rgba(96,165,250,.08);
  color: var(--blue);
}
.slave-tag {
  background: rgba(39,168,255,.10);
  color: var(--cyan);
}
@media (max-width: 700px) {
  .slave-summary-head { flex-direction: column; gap: 4px; }
  .slave-chip { width: 100%; }
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 28px;
  background: linear-gradient(180deg, rgba(3,12,27,.72), rgba(2,8,20,.95));
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-brand { font-size: 15px; font-weight: 700; }
.footer-brand span { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 12px; }
.footer-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--cyan); text-decoration: none; }

/* ── Divider ───────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Wallet display ────────────────────────────────────────────────────── */
.wallet-addr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--blue);
  background: rgba(39,168,255,.10);
  padding: 2px 8px; border-radius: 4px;
}

/* ── Success block ─────────────────────────────────────────────────────── */
.success-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.success-icon {
  width: 44px; height: 44px; background: rgba(39,168,255,.12); border: 1px solid rgba(127,247,255,.28);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* ── Hardware selector ─────────────────────────────────────────────────── */
.hw-selector {
  display: flex; flex-direction: column; gap: 10px;
}
.hw-option { cursor: pointer; }
.hw-option input[type="radio"] { display: none; }
.hw-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface2);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.hw-option input:checked + .hw-card {
  border-color: var(--cyan);
  background: rgba(39,168,255,.12);
  box-shadow: 0 0 24px rgba(39,168,255,.16);
}
.hw-card:hover { border-color: rgba(127,247,255,.42); }
.hw-icon { font-size: 18px; margin-bottom: 2px; }
.hw-title { font-weight: 600; font-size: 14px; color: var(--text); }
.hw-desc  { font-size: 12px; color: var(--muted2); }

@media (max-width: 760px) {
  .nav-inner { padding: 0 18px; }
  .nav-logo { font-size: 15px; }
  .nav-logo-brand img {
    width: 150px;
    height: 42px;
  }
  .nav-links a { padding: 6px 8px; }
  .hero {
    min-height: 520px;
    padding: 102px 22px 60px;
  }
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(2,8,20,.86) 0%, rgba(2,8,20,.68) 45%, rgba(2,8,20,.96) 100%),
      url('/static/preview.png');
    background-size: cover;
    background-position: 62% center;
  }
  .hero-brand-art {
    border-radius: 14px;
    max-height: 220px;
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: clamp(44px, 14vw, 70px);
    letter-spacing: -2px;
  }
  .hero-sub { font-size: 16px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
}

/* ── Misc ──────────────────────────────────────────────────────────────── */
.muted { color: var(--muted2); }
.text-green { color: var(--cyan); }
.text-blue  { color: var(--blue); }
.small { font-size: 12px; }
