/* KILL LINE — Staking Interface Styles */

body {
  display: block;
}

/* ---- Hero ---- */

.stake-hero {
  text-align: center;
  padding: 80px 20px 40px;
}

.stake-title {
  font-family: 'Impact', 'Bebas Neue', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 12vw, 96px);
  letter-spacing: 12px;
  color: var(--white);
  line-height: 1;
}

.stake-subtitle {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--grey);
  letter-spacing: 6px;
  margin-top: 16px;
}

/* ---- Connect ---- */

.connect-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 20px 40px;
}

.connect-btn {
  background: var(--bg-surface);
  border: 1px solid var(--dark-grey);
  color: var(--white);
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 4px;
  padding: 14px 32px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.connect-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.connect-btn.connected {
  border-color: var(--red);
  color: var(--red);
}

.wallet-addr {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 1px;
}

/* ---- Network Toggle ---- */

.network-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px 32px;
}

.network-btn {
  background: none;
  border: 1px solid var(--dark-grey);
  color: var(--grey);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.network-btn.active {
  border-color: var(--red);
  color: var(--red);
}

.network-btn:hover {
  border-color: var(--red);
}

/* ---- Dashboard Grid ---- */

.dashboard {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dash-card {
  background: var(--bg-surface);
  border: 1px solid var(--dark-grey);
  padding: 20px;
  text-align: center;
}

.dash-label {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--grey);
  margin-bottom: 8px;
}

.dash-value {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  font-size: 32px;
  color: var(--red);
  letter-spacing: 2px;
  line-height: 1;
}

.dash-value.white {
  color: var(--white);
}

.dash-value.grey {
  color: var(--grey);
}

.dash-sub {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---- Actions ---- */

.actions {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.actions-title {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 6px;
  color: var(--grey);
  margin-bottom: 20px;
  text-align: center;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--dark-grey);
}

.action-label {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--white);
  min-width: 160px;
}

.action-input {
  flex: 1;
  background: var(--black);
  border: 1px solid var(--dark-grey);
  color: var(--white);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  padding: 8px 12px;
  outline: none;
  min-width: 0;
}

.action-input:focus {
  border-color: var(--red);
}

.action-input::placeholder {
  color: var(--muted);
}

.action-btn {
  background: none;
  border: 1px solid var(--dark-grey);
  color: var(--grey);
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 3px;
  padding: 8px 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.action-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.action-btn:disabled:hover {
  border-color: var(--dark-grey);
  color: var(--grey);
}

/* ---- TX Log ---- */

.tx-log {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.tx-log-title {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--grey);
  margin-bottom: 12px;
}

.tx-log-entries {
  background: var(--bg-surface);
  border: 1px solid var(--dark-grey);
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--grey);
  line-height: 1.8;
}

.tx-log-entries:empty::before {
  content: 'no transactions yet';
  color: var(--muted);
}

.tx-entry {
  border-bottom: 1px solid var(--dark-grey);
  padding: 4px 0;
}

.tx-entry:last-child {
  border-bottom: none;
}

.tx-entry a {
  color: var(--red);
  text-decoration: none;
}

.tx-entry a:hover {
  text-decoration: underline;
}

.tx-entry .tx-ok {
  color: #4a4;
}

.tx-entry .tx-err {
  color: var(--red);
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .action-row {
    flex-wrap: wrap;
  }

  .action-label {
    min-width: 100%;
    margin-bottom: 4px;
  }

  .action-input {
    flex: 1;
  }
}

@media (max-width: 400px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}
