/* ============================================================
   AFKPool replica — dark mining pool theme
   bg #101723 · cards #16202e · amber #f59e0b · sky #38bdf8
   emerald #10b981 · violet #a78bfa
   ============================================================ */

:root {
  --bg: #101723;
  --bg-2: #0c121c;
  --card: #16202e;
  --card-2: #1b2737;
  --line: #233245;
  --line-2: #2e415a;
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --sky: #38bdf8;
  --emerald: #10b981;
  --violet: #a78bfa;
  --text: #e6edf5;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --radius: 14px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
          'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', 'Noto Sans',
          'Noto Sans Japanese', 'Noto Sans Thai', Arial, sans-serif;
  --mono: 'SFMono-Regular', ui-monospace, Menlo, Consolas, 'Liberation Mono', monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1320px; }

.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.block { display: block; }

.kicker {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px;
}

/* ============ Header ============ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 23, 35, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 26px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.brand-light { color: var(--amber); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 2px; }

.nav-link {
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  padding: 8px 13px; border-radius: 9px; display: inline-flex; align-items: center; gap: 7px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--amber); background: rgba(245, 158, 11, .07); }
.nav-link.active { color: var(--text); background: var(--card-2); }

.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}

.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang-pills { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-pills .pill {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  color: var(--text-3); transition: color .15s, background .15s;
}
.lang-pills .pill:hover { color: var(--amber); }
.lang-pills .pill.active { color: #101723; background: var(--amber); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ============ Layout: sidebar + main ============ */

.layout {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  gap: 26px; max-width: 1320px; margin: 0 auto; padding: 26px 20px 40px;
  align-items: start;
}

.sidebar { position: sticky; top: 90px; }

.side-inner {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; display: flex; flex-direction: column; gap: 2px;
}

.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: color .15s, background .15s;
}
.side-link svg { width: 16px; height: 16px; flex: none; }
.side-link:hover { color: var(--text); background: var(--card-2); }
.side-link.active { color: var(--amber); background: rgba(245, 158, 11, .08); }
.side-count {
  margin-left: auto; font-family: var(--mono); font-size: 11px;
  background: var(--card-2); border-radius: 999px; padding: 1px 8px; color: var(--text-2);
}

.side-divider { height: 1px; background: var(--line); margin: 8px 4px; }

.side-coin { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; }
.side-coin:hover { background: var(--card-2); }
.coin-letter {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; font-family: var(--mono);
}
.side-coin-text { display: flex; flex-direction: column; line-height: 1.25; }
.side-coin-text b { font-size: 13px; color: var(--text); }
.side-coin-text small { font-size: 10.5px; color: var(--text-3); }

.side-help {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  padding: 9px 11px; border-radius: 9px;
}
.side-help:hover { color: var(--amber); }

.main-col { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* coin palettes */
.coin-bnt, .coin-b { background: rgba(56, 189, 248, .14); color: var(--sky); }
.coin-neb, .coin-n { background: rgba(167, 139, 250, .14); color: var(--violet); }

/* ============ Hero ============ */

.hero {
  background:
    radial-gradient(680px 320px at 88% -20%, rgba(245, 158, 11, .10), transparent 60%),
    radial-gradient(560px 300px at 0% 120%, rgba(56, 189, 248, .08), transparent 60%),
    var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 40px 36px;
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 42px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15; max-width: 15em;
}

.hero-desc { font-size: 15.5px; color: var(--text-2); max-width: 38em; margin: 14px 0 24px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14px; border-radius: 11px;
  padding: 12px 22px; border: 1px solid transparent;
  transition: transform .1s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }

.btn-amber { background: var(--amber); color: #101723; }
.btn-amber:hover { background: var(--amber-2); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

.btn-sub {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: rgba(16, 23, 35, .18); border-radius: 999px; padding: 2px 8px;
}
.btn-outline .btn-sub { background: var(--card-2); color: var(--text-2); }

.hero-stats { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.stat-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 20px; display: flex; flex-direction: column; min-width: 130px;
}
.stat-num { font-size: 22px; font-weight: 700; color: var(--amber); }
.stat-label { font-size: 12px; color: var(--text-3); }

/* ============ Cards ============ */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
}

.card h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }

/* Quick start */
.quick-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; justify-content: space-between; }

.quick-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; min-width: 460px; }

.chip {
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 14px; font-size: 12px; color: var(--text-2);
}
.chip b { display: block; color: var(--text); font-size: 12.5px; margin-bottom: 2px; }

.lookup {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
}

.lookup-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-3); }
.lookup-addr { flex: 1; min-width: 240px; }

.input {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 13px; font-size: 13px; color: var(--text); outline: none;
  transition: border-color .15s;
}
.input:focus { border-color: var(--amber); }
.input::placeholder { color: var(--text-3); }

.lookup-note { margin-top: 10px; font-size: 11.5px; color: var(--text-3); }

/* Pool card */
.pool-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }

.pool-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.filter-tabs { display: flex; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }

.tab {
  border: 0; background: transparent; color: var(--text-2);
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab b { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.tab:hover { color: var(--text); }
.tab.active { background: var(--card-2); color: var(--amber); }
.tab.active b { color: var(--amber); }

.search { width: 210px; }
.pool-row.hidden { display: none; }

.table-wrap { margin-top: 18px; overflow-x: auto; }

.pool-table, .blocks-table { width: 100%; border-collapse: collapse; }

.pool-table th, .blocks-table th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}

.pool-table td, .blocks-table td {
  padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top;
  font-size: 13px;
}
.pool-table tr:last-child td, .blocks-table tr:last-child td { border-bottom: 0; }
.pool-row:hover { background: rgba(245, 158, 11, .03); }

.coin-cell { display: flex; gap: 12px; }
.coin-avatar {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; font-family: var(--mono);
}
.coin-meta { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.coin-meta b { font-size: 13.5px; color: var(--text); }
.coin-meta small { font-size: 11px; color: var(--text-3); }

.badges { display: flex; gap: 5px; margin-top: 4px; }
.badge {
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.badge-beta { background: rgba(245, 158, 11, .12); color: var(--amber); border: 1px solid rgba(245, 158, 11, .35); }
.badge-join { background: rgba(16, 185, 129, .1); color: var(--emerald); border: 1px solid rgba(16, 185, 129, .3); }
.badge-coin { background: rgba(167, 139, 250, .12); color: var(--violet); border: 1px solid rgba(167, 139, 250, .3); }

.big { font-size: 14px; color: var(--text); }
.pool-table small { font-size: 11px; margin-top: 3px; }

.pool-link { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--amber); }
.pool-link:hover { color: var(--amber-2); }

.status-pill {
  font-size: 11px; font-weight: 700; color: var(--amber);
  background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 999px; padding: 3px 11px; white-space: nowrap;
}

.search-empty { margin-top: 16px; text-align: center; font-size: 13px; color: var(--text-3); }

/* Help card */
.help-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.help-card h2 { flex: none; }

.help-steps { display: flex; gap: 18px; list-style: none; flex-wrap: wrap; flex: 1; }
.help-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.step-num {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245, 158, 11, .12); color: var(--amber); font-size: 11px; font-weight: 700;
}

.text-link { font-size: 13px; font-weight: 700; color: var(--amber); }
.text-link:hover { color: var(--amber-2); }

/* ============ Footer ============ */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 20px 0; }

.footer-inner {
  display: flex; align-items: center; gap: 18px 26px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-3);
}
.f-brand { font-weight: 800; color: var(--text-2); }
.f-copy { font-weight: 400; color: var(--text-3); }
.f-tagline { color: var(--text-2); }
.f-rules { color: var(--amber); font-weight: 600; }
.f-checked { margin-left: auto; font-size: 11px; }

/* ============================================================
   Bot verification overlay (10 s) — mining dark style
   ============================================================ */

.bot-verify {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 12, 19, .8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  transition: opacity .45s ease;
}
.bot-verify.hidden { opacity: 0; pointer-events: none; }

.bv-card {
  width: min(400px, 100%);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 30px 30px 22px; text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: bv-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes bv-pop { from { transform: scale(.85) translateY(18px); opacity: 0; } }

.bv-robot { width: 108px; margin: 0 auto 6px; }
.bv-antenna { animation: bv-blink 1.1s infinite; }
@keyframes bv-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.bv-eyes { animation: bv-look 3.2s ease-in-out infinite; }
@keyframes bv-look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(4px); } 75% { transform: translateX(-4px); } }

.bv-card h2 { font-size: 18px; font-weight: 800; color: var(--text); }
.bv-sub { font-size: 13.5px; color: var(--text-2); margin: 6px 0 20px; }

.bv-checkrow {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg); padding: 12px 16px; margin-bottom: 20px;
}

.bv-checkbox {
  width: 24px; height: 24px; border: 2px solid var(--line-2);
  border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  flex: none; background: var(--bg); transition: background .25s, border-color .25s;
}
.bv-check { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .25s; }
.bv-checkbox.checked { background: var(--amber); border-color: var(--amber); }
.bv-checkbox.checked .bv-check { opacity: 1; transform: scale(1); }

.bv-check-label { font-size: 14px; font-weight: 600; color: var(--text); text-align: left; flex: 1; }
.bv-logo-mini { width: 20px; height: 20px; color: var(--amber); }

.bv-progress { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.bv-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--sky));
  border-radius: inherit; transition: width .2s linear;
}

.bv-status { margin-top: 12px; font-size: 13px; color: var(--text-2); min-height: 1.5em; }
#bv-pct { font-family: var(--mono); color: var(--amber); }

.bv-done { margin: 4px 0 10px; }
.bv-done-icon { width: 58px; height: 58px; margin: 2px auto 8px; display: block; }
.bv-done-icon circle { stroke: var(--emerald); }
.bv-done-icon path { stroke: var(--emerald); animation: bv-draw .5s .1s ease-out both; }
@keyframes bv-draw { from { stroke-dasharray: 60; stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.bv-done-title { font-size: 16px; font-weight: 800; color: var(--text); }
.bv-done-welcome { font-size: 13.5px; color: var(--text-2); }

.bv-brand {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3);
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px;
}

/* ============ Responsive ============ */

@media (max-width: 1080px) {
  .quick-chips { min-width: 0; grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; padding-top: 16px; }
  .sidebar { position: static; }
  .side-inner { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side-divider { display: none; }
  .menu-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px 20px 18px;
  }
  .main-nav.open { display: flex; }
  .quick-chips { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 30px 22px; }
  .card { padding: 20px 18px; }
  .search { width: 100%; }
  .pool-tools { width: 100%; }
  .quick-chips { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
