/* ============================================================
   LuckyFastBlocks — BCH Solo Pool
   Shared design system (index / user dashboard / not-found)
   ============================================================ */

:root {
  --bg:            #0a0f14;
  --bg-soft:       #0d141c;
  --card:          #10181f;
  --tile:          #151f29;
  --border:        #1e2b38;
  --border-strong: #2c3d4f;

  --text:    #e8eef4;
  --text-2:  #a3b3c2;
  --text-3:  #6d8296;

  --accent:     #0ac18e;   /* Bitcoin Cash green */
  --accent-hi:  #35e2b1;
  --accent-dim: rgba(10, 193, 142, 0.12);
  --gold:   #f0b429;
  --blue:   #58a6ff;
  --amber:  #ffb454;
  --red:    #ff6b6b;

  --radius: 12px;
  --mono: ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 75% -180px, rgba(10, 193, 142, 0.09), transparent 60%),
    radial-gradient(700px 380px at 10% -120px, rgba(88, 166, 255, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-hi); text-decoration: none; }
a:hover { color: #7df0cd; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- Top navigation ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topnav .nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 22px;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; color: var(--text);
  letter-spacing: 0.2px; white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), #06845f);
  display: grid; place-items: center;
  color: #04140e; font-weight: 800;
  box-shadow: 0 0 14px rgba(10, 193, 142, 0.35);
}
.brand .mark svg { display: block; }
.brand em { color: var(--accent-hi); font-style: normal; }
.badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  color: var(--accent-hi); background: var(--accent-dim);
  border: 1px solid rgba(10, 193, 142, 0.35);
  padding: 2px 8px; border-radius: 999px;
}
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-2); font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-rent { white-space: nowrap; }
.rent-label-short { display: none; }
.nav-links a.cta {
  color: #04140e; background: var(--accent);
  padding: 8px 14px; border-radius: 9px;
}
.nav-links a.cta:hover { background: var(--accent-hi); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px;
  align-items: center; padding: 54px 0 34px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15; margin: 0 0 14px; font-weight: 800;
  letter-spacing: -0.5px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent-hi), #7df0cd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { color: var(--text-2); font-size: 16.5px; margin: 0 0 18px; max-width: 54ch; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0 0 22px; }
.hero-points li { color: var(--text-2); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.hero-points .tick { color: var(--accent-hi); font-weight: 800; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn.primary { background: var(--accent); color: #04140e; box-shadow: 0 6px 20px rgba(10, 193, 142, 0.28); }
.btn.primary:hover { background: var(--accent-hi); color: #04140e; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-hi); }

/* Connect card */
.connect-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow);
}
.connect-card h3 { margin: 0 0 4px; font-size: 17px; }
.connect-card .hint { color: var(--text-3); font-size: 13px; margin: 0 0 14px; }
.field { margin-bottom: 12px; }
.field .label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 5px;
}
.copy-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.copy-row code {
  font-family: var(--mono); font-size: 13.5px; color: var(--accent-hi);
  background: none; padding: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; flex: 1; min-width: 0;
}
.copy-btn {
  flex: 0 0 auto; border: 1px solid var(--border-strong); background: var(--tile);
  color: var(--text-2); font-size: 12px; font-weight: 600;
  border-radius: 7px; padding: 5px 10px; cursor: pointer;
  transition: all 0.15s ease;
}
.copy-btn:hover { color: var(--accent-hi); border-color: var(--accent); }
.copy-btn.copied { color: #04140e; background: var(--accent); border-color: var(--accent); }

/* ---------- KPI strip ---------- */
.kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 10px 0 8px;
}
.kpi {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
}
.kpi .k {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
}
.kpi .v { font-size: 26px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi .s { font-size: 13px; color: var(--text-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpis.five { grid-template-columns: repeat(5, 1fr); }
.kpis.five .kpi .v { font-size: 23px; }

/* ---------- Cards & sections ---------- */
.section { margin: 26px 0; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}
.card-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.card-head .meta { color: var(--text-3); font-size: 13px; }
.card-head .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Mini stat tiles inside cards */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.tile {
  background: var(--tile); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
}
.tile .k {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-3);
}
.tile .v { font-size: 19px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 12px; color: var(--text-3); font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.table-wrap.tall { max-height: 520px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  position: sticky; top: 0; z-index: 2;
  background: var(--tile); color: var(--text-3);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
table.data td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  vertical-align: middle; white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background 0.15s ease; }
table.data tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
td.r, th.r { text-align: right; }
td.num { font-variant-numeric: tabular-nums; }
td.mono { font-family: var(--mono); font-size: 13px; }

.addr {
  font-family: var(--mono); font-size: 13px;
  color: var(--text); font-weight: 600;
}
a.addr:hover { color: var(--accent-hi); }

.rank { font-weight: 700; color: var(--text-3); width: 44px; }
.rank .medal { font-size: 15px; }

tr.flash-new td { animation: rowFlash 2s ease-out; }
@keyframes rowFlash {
  0% { background: rgba(10, 193, 142, 0.22); }
  100% { background: transparent; }
}

/* Luck chip: lower % = block found faster than expected */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-2);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.chip.good { color: var(--accent-hi); border-color: rgba(10, 193, 142, 0.4); background: rgba(10, 193, 142, 0.08); }
.chip.good .dot { background: var(--accent); }
.chip.bad { color: var(--amber); border-color: rgba(255, 180, 84, 0.35); background: rgba(255, 180, 84, 0.07); }
.chip.bad .dot { background: var(--amber); }

/* ---------- Wallet lookup ---------- */
.lookup { display: flex; gap: 10px; }
.lookup input {
  flex: 1; min-width: 0;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 13px 16px; font-size: 15px; font-family: var(--mono);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lookup input::placeholder { color: var(--text-3); font-family: 'Inter', sans-serif; }
.lookup input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 193, 142, 0.18);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.step .n {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid rgba(10, 193, 142, 0.4);
  color: var(--accent-hi); font-weight: 800; font-size: 14px;
  display: grid; place-items: center; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 15.5px; }
.step p { margin: 0; color: var(--text-2); font-size: 14px; }
.step code {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 7px;
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-hi);
}

/* ---------- Chart ---------- */
.seg {
  display: inline-flex; border: 1px solid var(--border-strong);
  border-radius: 9px; overflow: hidden;
}
.seg button {
  background: transparent; color: var(--text-2);
  border: none; padding: 6px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent-dim); color: var(--accent-hi); }

.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .axis text {
  fill: var(--text-3); font-size: 11px;
  font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums;
}
.chart .grid line { stroke: var(--border); stroke-width: 1; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--tile); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 7px 10px;
  font-size: 12.5px; color: var(--text); white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  font-variant-numeric: tabular-nums;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 0.1s ease;
}
.chart-tip .t { color: var(--text-3); font-size: 11.5px; }
.chart-empty {
  padding: 40px 0; text-align: center; color: var(--text-3); font-size: 14px;
}

/* ---------- Live indicator ---------- */
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.live .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 6px rgba(255, 107, 107, 0.6);
  transition: all 0.3s ease;
}
.live.on { color: var(--accent-hi); }
.live.on .dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(10, 193, 142, 0.8);
  animation: pulseLive 1.8s infinite ease-in-out;
}
@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

/* Value-change glow */
.glow { animation: glowPulse 1s ease-out; }
@keyframes glowPulse {
  0% { color: var(--accent-hi); text-shadow: 0 0 12px rgba(10, 193, 142, 0.8); }
  100% { text-shadow: none; }
}

/* ---------- Footer ---------- */
footer.site {
  margin-top: 44px; border-top: 1px solid var(--border);
  padding: 26px 0 34px; color: var(--text-3); font-size: 14px;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: space-between; align-items: center; }
footer.site a { color: var(--text-2); font-weight: 600; }
footer.site a:hover { color: var(--accent-hi); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; gap: 24px; }
  .hero > * { min-width: 0; }
  .kpis, .kpis.five { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-m { display: none; }
}
@media (max-width: 640px) {
  .rent-label-full { display: none; }
  .rent-label-short { display: inline; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .v { font-size: 21px; }
  .lookup { flex-direction: column; }
  .brand span.word { display: none; }
  .card { padding: 16px; }
  /* Let connect strings wrap so the full stratum URL stays visible */
  .copy-row code { white-space: normal; word-break: break-all; overflow: visible; text-overflow: clip; }
}
@media (max-width: 360px) {
  .topnav .nav-inner { padding: 0 14px; gap: 12px; }
  .nav-links { gap: 10px; }
}
