:root {
  --bg: #060816;
  --bg2: #0c1230;
  --card: rgba(16, 24, 58, 0.85);
  --text: #ebf0ff;
  --muted: #9aa7cc;
  --accent: #5eead4;
  --accent2: #818cf8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  background: radial-gradient(circle at 30% 20%, #1a2458, var(--bg));
  min-height: 100vh;
}
.layout {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: grid;
  gap: 1rem;
}
.ambient {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.2;
}
.ambient-left { left: -120px; top: 80px; background: #4f46e5; }
.ambient-right { right: -120px; top: 30vh; background: #14b8a6; }

.card {
  background: var(--card);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 18px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  animation: fade-up 480ms ease both;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 14px 40px rgba(4, 10, 33, 0.45);
}
.soft { background: rgba(19, 29, 71, 0.6); }

.hero { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
h1, h2, h3 { margin: 0; font-family: "Unbounded", sans-serif; }
h1 { letter-spacing: 0.01em; font-size: clamp(1.55rem, 2.4vw, 2.2rem); }
.brandline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.logo-e {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: #031320;
  background: linear-gradient(140deg, var(--accent), #a5b4fc);
  box-shadow: 0 10px 26px rgba(129, 140, 248, 0.45);
  animation: logo-breathe 2.8s ease-in-out infinite;
}
.brand-by {
  margin: 0.1rem 0 0;
  color: #d5dcff;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sync { min-width: 250px; display: grid; gap: 0.3rem; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #f59e0b; box-shadow: 0 0 16px #f59e0b;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.dot.ok {
  background: #22c55e;
  box-shadow: 0 0 16px #22c55e;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.8rem;
}
.pool-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.stat h3 { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.4rem; }
.stat p { font-size: 1.2rem; font-weight: 700; margin: 0; }

.section-head { margin-bottom: 0.8rem; }
.section-head p { margin: 0.4rem 0 0; color: var(--muted); }

.miner-form { display: flex; gap: 0.6rem; }
.miner-form input {
  flex: 1; border: 1px solid rgba(94, 234, 212, 0.3);
  background: rgba(6, 9, 24, 0.9); color: var(--text);
  padding: 0.8rem 0.9rem; border-radius: 12px;
}
.miner-form button {
  border: 0; border-radius: 12px; padding: 0.8rem 1rem;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #02131d; font-weight: 800; cursor: pointer;
}
.miner-form button.secondary {
  background: rgba(148, 163, 184, 0.25);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.mini-grid { margin-top: 0.8rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; }
.small-note { font-size: 0.85rem; margin-top: 0.35rem; line-height: 1.35; }
.mini { display: flex; flex-direction: column; gap: 0.3rem; }
.mini span { color: var(--muted); font-size: 0.9rem; }
.mini strong { font-size: 1.1rem; }
.hidden { display: none; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.list li {
  display: flex; justify-content: space-between; gap: 0.7rem;
  padding: 0.7rem; border-radius: 12px; background: rgba(10, 15, 37, 0.9);
  border: 1px solid rgba(126, 148, 255, 0.2);
}
.block-subline {
  font-size: 0.82rem;
  margin-top: 0.22rem;
}
.confirm-bar {
  margin-top: 0.25rem;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}
.confirm-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
}
.muted { color: var(--muted); }
.code {
  margin: 0;
  background: #040714;
  color: #f3f7ff;
  border: 1px solid rgba(129, 140, 248, 0.5);
  padding: 0.9rem;
  border-radius: 12px;
  overflow-x: auto;
  white-space: pre;
  user-select: text;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.35;
}
a {
  color: #6ee7ff;
}
a:hover {
  color: #a5f3fc;
}
.workers-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(126, 148, 255, 0.25);
}
.workers-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.workers-table th,
.workers-table td {
  text-align: left;
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid rgba(126, 148, 255, 0.18);
}
.workers-table th {
  color: #c9d3fb;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(10, 15, 37, 0.75);
}
.workers-table td {
  font-size: 0.95rem;
}
.workers-table tr:hover td {
  background: rgba(77, 98, 196, 0.12);
}
.pool-footer {
  text-align: center;
  color: #d9e3ff;
  letter-spacing: 0.1em;
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 0.72;
  padding-top: 0.35rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes logo-breathe {
  0%, 100% { box-shadow: 0 10px 26px rgba(129, 140, 248, 0.45); }
  50% { box-shadow: 0 12px 36px rgba(94, 234, 212, 0.5); }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

@media (max-width: 1024px) {
  .pool-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .layout { padding: 1rem 0.6rem 2rem; gap: 0.75rem; }
  .card { border-radius: 14px; padding: 0.8rem; }
  .hero { flex-direction: column; }
  .sync { min-width: 0; width: 100%; }
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.05rem; }
  .pool-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat p { font-size: 1.02rem; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .miner-form { flex-direction: column; }
  .miner-form button { width: 100%; }
  .list li { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .list li strong { font-size: 1.05rem; }
  .code { font-size: 0.83rem; }
  .workers-table { min-width: 560px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .pool-meta-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .mini-grid { grid-template-columns: 1fr; }
  .brandline { align-items: flex-start; }
  .logo-e { width: 44px; height: 44px; font-size: 1.35rem; border-radius: 10px; }
  .brand-by { font-size: 0.75rem; }
  .section-head p { font-size: 0.86rem; }
  .workers-table th,
  .workers-table td { padding: 0.58rem 0.6rem; font-size: 0.86rem; }
}
