/* ==========================================================================
   GPUNET Console — strict B&W theme
   Matches gpunet-site marketing design system:
   bg #0a0d14 (dark) · card #101421 · borders #1f2430 · magenta #ff488b accent · mono numerics
   Fonts: Suisse Int'l (UI) · Suisse Int'l Mono (numbers/labels) · ABC Favorit (display)
   ========================================================================== */

/* ----------------------------- @FONT-FACE ----------------------------- */
@font-face{font-family:"Suisse Int'l";src:url(fonts/SuisseIntl-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Suisse Int'l";src:url(fonts/SuisseIntl-Semibold.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Suisse Int'l Mono";src:url(fonts/SuisseIntlMono-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"ABC Favorit Trial";src:url(fonts/ABCFavorit-Light.woff2) format("woff2");font-weight:300;font-style:normal;font-display:swap}

:root {
  --bg:        #0a0d14;
  --bg-card:   #101421;
  --bg-hover:  #161b2a;
  --border:    #1f2430;
  --border-2:  #1f2430;
  --text:      #ffffff;
  --text-dim:  #b3c0d4;
  --text-mute: #b3c0d4;
  --white:     #ffffff;
  --accent:      #ff488b;
  --accent-hover:#f6186a;
  --accent-2:    #e33adb;
  --font-sans:    "Suisse Int'l", sans-serif;
  --font-mono:    "Suisse Int'l Mono", monospace;
  --font-display: "ABC Favorit Trial", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); }

/* ----------------------------- ICONS ----------------------------- */
.stat-icon, .panel-icon, .docs-icon, .btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: middle;
}
.btn-icon { width: 15px; height: 15px; margin-right: 7px; }
.btn { display: inline-flex; align-items: center; justify-content: center; }
.stat-label { display: inline-flex; align-items: center; gap: 8px; }
.stat-icon { color: var(--text-mute); transition: color 0.2s ease; }
.stat-card:hover .stat-icon { color: var(--accent); }
.panel-head h2 { display: inline-flex; align-items: center; gap: 9px; }
.panel-icon { color: var(--accent); }
.docs-cell h3 { display: inline-flex; align-items: center; gap: 9px; }
.docs-icon { color: var(--text-mute); transition: color 0.2s ease; }
.docs-cell:hover .docs-icon { color: var(--accent); }

/* ----------------------------- HEADER ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}
.wordmark-mark { font-size: 14px; color: var(--white); letter-spacing: -2px; }
.wordmark-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: 8px;
}
.nav-link {
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.header-actions { margin-left: auto; }

.btn {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text);
  padding: 10px 18px;
  border-radius: 2px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--bg-hover); border-color: #34394a; }
.btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,72,139,0.18); }
.btn-primary {
  background: var(--accent);
  color: #0a0d14;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; padding: 13px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 20px; height: 1.5px; background: var(--text); display: block;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: 8px 24px 16px;
}
.mobile-nav .nav-link { padding: 11px 0; font-size: 15px; }
.mobile-nav.open { display: flex; }

/* ----------------------------- CONSOLE LAYOUT ----------------------------- */
.console {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.net-status {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 2px;
}
.net-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,72,139,0.12);
}
.net-status-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ----------------------------- STATS ----------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  padding: 22px 22px 20px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,72,139,0.18), inset 0 0 0 1px rgba(255,72,139,0.45);
  z-index: 2;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
}
.stat-value .unit {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.stat-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  margin-top: 10px;
}

/* ----------------------------- SPLIT LAYOUT ----------------------------- */
.layout-split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-bottom: 32px;
}
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.panel-head h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.panel-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid rgba(255,72,139,0.35);
  padding: 3px 8px;
  border-radius: 2px;
}

/* ----------------------------- NODES TABLE ----------------------------- */
.table-scroll { overflow-x: auto; }
.nodes-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.nodes-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
}
.nodes-table th.num, .nodes-table td.num { text-align: right; }
.nodes-table td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-dim);
}
.nodes-table tr:last-child td { border-bottom: none; }
.nodes-table tbody tr { transition: background 0.12s ease; }
.nodes-table tbody tr:hover { background: var(--bg-hover); }
.node-id { font-family: var(--font-mono); color: var(--text); font-size: 12.5px; }
.node-gpu { color: var(--text); }
.node-rewards { font-family: var(--font-mono); color: var(--white); }
.node-uptime { font-family: var(--font-mono); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.status .s-dot { width: 6px; height: 6px; border-radius: 50%; }
.status.active { color: var(--accent); }
.status.active .s-dot { background: var(--accent); box-shadow: 0 0 0 2px rgba(255,72,139,0.12); }
.status.idle { color: var(--text-mute); }
.status.idle .s-dot { background: var(--text-mute); }

/* ----------------------------- STAKE PANEL ----------------------------- */
.stake-body { padding: 22px; }
.stake-copy {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 22px;
}
.stake-copy strong { color: var(--white); font-weight: 600; }
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 9px;
}
.amount-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-2);
  border-radius: 2px;
  padding: 0 8px 0 14px;
  margin-bottom: 20px;
  transition: border-color 0.15s ease;
}
.amount-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,72,139,0.12); }
.amount-input input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 18px;
  padding: 13px 0;
  width: 100%;
}
.amount-input input::placeholder { color: var(--text-mute); }
.amount-suffix {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-right: 8px;
}
.btn-max {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 2px;
  padding: 5px 8px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.btn-max:hover { color: var(--accent); border-color: var(--accent); }
.btn-max:focus-visible { outline: none; color: var(--accent); border-color: var(--accent); }
.stake-meta {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 4px 14px;
  margin-bottom: 20px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.meta-row:last-child { border-bottom: none; }
.meta-row .mono { color: var(--white); }
.stake-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  text-align: center;
  margin-top: 12px;
}

/* ----------------------------- DOCS STRIP ----------------------------- */
.docs-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.docs-cell {
  background: var(--bg-card);
  padding: 26px 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.docs-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,72,139,0.18), inset 0 0 0 1px rgba(255,72,139,0.45);
  z-index: 2;
}
.docs-cell h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0 10px;
}
.docs-cell p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}
.docs-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color 0.15s ease;
}
.docs-link:hover { color: var(--accent); }

/* ----------------------------- FOOTER ----------------------------- */
.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-meta { font-size: 11px; letter-spacing: 0.1em; color: var(--text-mute); }
.footer-socials { display: inline-flex; align-items: center; gap: 14px; }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  transition: color 0.15s ease;
}
.footer-social:hover { color: var(--accent); }
.footer-social svg { display: block; }

/* ----------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-split { grid-template-columns: 1fr; }
  .docs-strip { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { gap: 0; }
}

@media (max-width: 480px) {
  .console { padding: 28px 16px 48px; }
  .header-inner { padding: 0 16px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head h1 { font-size: 26px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 24px; }
  .panel-head, .stake-body, .docs-cell { padding-left: 16px; padding-right: 16px; }
  .nodes-table th, .nodes-table td { padding-left: 16px; padding-right: 16px; }
}

/* BRIGHTER magenta: neon bloom on accents */
.btn-primary { box-shadow: 0 0 26px rgba(255,72,139,.55), 0 0 8px rgba(255,72,139,.85) !important; transition: background .15s ease, border-color .15s ease, box-shadow .2s ease; }
.btn-primary:hover { box-shadow: 0 0 34px rgba(255,72,139,.7), 0 0 10px rgba(255,72,139,1) !important; }
.nav-link.active, .panel-tag { text-shadow: 0 0 12px rgba(255,72,139,.6); }

/* ==========================================================================
   ANIMATIONS — premium feel (load stagger, count-up, hover, pulses)
   ========================================================================== */

/* --- Load: staggered fade-in-up --- */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-in {
  opacity: 0;
  animation: fade-in-up 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
/* hover lift uses transform; keep it working post-animation */
.stat-card.anim-in, .docs-cell.anim-in { will-change: transform, opacity; }

/* --- Status / live pulses (magenta glow breathing) --- */
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,72,139,0.55), 0 0 12px rgba(255,72,139,.95); }
  50%      { box-shadow: 0 0 0 4px rgba(255,72,139,0.0),  0 0 18px rgba(255,72,139,1); }
}
.net-status .dot,
.status.active .s-dot {
  animation: dot-pulse 2.2s ease-in-out infinite;
}
.net-status .dot { box-shadow: 0 0 12px rgba(255,72,139,.95) !important; }
.status.active .s-dot { box-shadow: 0 0 12px rgba(255,72,139,.95) !important; }

@keyframes tag-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
.nodes-panel .panel-tag { animation: tag-pulse 2.4s ease-in-out infinite; }

/* --- Table rows: smoother hover with subtle inset highlight --- */
.nodes-table tbody tr {
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.nodes-table tbody tr:hover {
  background: var(--bg-hover);
  box-shadow: inset 2px 0 0 0 var(--accent);
}

/* --- Buttons: smooth eased transitions --- */
.btn-outline, .btn-max, .docs-link { transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }

/* --- Reduced motion guard --- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .anim-in { opacity: 1 !important; transform: none !important; }
}
