.staking-page .stake-shell {
  max-width: 1180px;
  padding-top: 42px;
}
.stake-hero {
  padding: 30px 0 36px;
  position: relative;
}
.stake-hero:after {
  content: "";
  position: absolute;
  right: 0;
  top: -55px;
  width: 440px;
  height: 330px;
  background: url("/valki-energy-falcon-body-v2.webp") center/contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}
.stake-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -2px;
  margin: 12px 0 16px;
}
.stake-tagline {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.stake-tagline span {
  color: #b2a2ff;
}
.stake-hero > p:last-child,
.stake-account,
.stake-small {
  color: #9daec6;
}
.stake-hero > p:last-child {
  font-size: 14px;
}
.stake-network,
.stake-badge {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #8cdbc9;
}
.stake-launch {
  padding: 15px 18px;
  border: 1px solid #605184;
  border-radius: 12px;
  background: #1b1736;
  color: #dac9ff;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.stake-workspace {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 22px;
  align-items: start;
}
.stake-card {
  background: linear-gradient(
    140deg,
    rgba(20, 32, 55, 0.96),
    rgba(9, 16, 31, 0.98)
  );
  border: 1px solid #283852;
  border-radius: 16px;
  padding: 28px;
  min-width: 0;
}
.stake-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.stake-heading h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  margin: 6px 0 0;
}
.stake-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  margin: 0;
  color: #aaa0ed;
}
.staking-page button {
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  border: 1px solid #40506f;
  border-radius: 8px;
  background: #18283e;
  color: #e5eafa;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
}
.staking-page button:hover:not(:disabled) {
  border-color: #af94ff;
  background: #2b3154;
}
.staking-page button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.staking-page button:focus-visible,
.staking-page input:focus-visible,
.staking-page summary:focus-visible,
.staking-page a:focus-visible {
  outline: 2px solid #b8a0ff;
  outline-offset: 3px;
}
.stake-account {
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  margin: 16px 0 25px;
}
.stake-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 18px;
  margin: 0;
}
.stake-metrics dt,
.stake-protocol-metrics dt {
  font-size: 11px;
  color: #a4b2c9;
}
.stake-metrics dd {
  margin: 7px 0 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.stake-metrics [data-value="unlockTime"],
.stake-metrics [data-value="remaining"] {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}
.stake-reward dd {
  color: #7ce6c2;
}
.stake-position-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 25px 0 10px;
}
.stake-position-actions button:first-child {
  background: #2e2854;
  border-color: #675296;
}
.stake-small {
  font-size: 11px;
  line-height: 1.65;
}
.stake-delegation {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #28354d;
  font-size: 12px;
}
.stake-delegation strong {
  font-size: 12px;
  overflow-wrap: anywhere;
  color: #c1b5fb;
}
.stake-delegation span:last-child {
  font-size: 11px;
  color: #9daec6;
}
.staking-page .stake-text-button {
  border: 0;
  background: transparent;
  padding-left: 0;
  color: #b9c9e2;
  font-weight: 400;
}
.stake-action-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 5px;
  background: #0b1426;
  border-radius: 10px;
  margin: 23px 0;
}
.stake-action-tabs button {
  border: 0;
  background: transparent;
  padding: 8px 3px;
  font-size: 11px;
}
.stake-action-tabs button[aria-pressed="true"] {
  background: #342956;
  color: #e8ddff;
}
.stake-form-card label,
.stake-form-card legend {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #bdc8dc;
}
.stake-form-card input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 48px;
  background: #0b1527;
  border: 1px solid #394760;
  border-radius: 8px;
  color: #eef3ff;
  font: inherit;
  margin-top: 9px;
  padding: 12px;
  min-width: 0;
}
.stake-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 9px;
  border: 1px solid #394760;
  border-radius: 9px;
  background: #0b1527;
  overflow: hidden;
}
.stake-input-wrap:focus-within {
  border-color: #b8a0ff;
  outline: 2px solid #b8a0ff;
  outline-offset: 3px;
}
.staking-page .stake-input-wrap input:focus-visible {
  outline: none;
}
.staking-page .stake-input-wrap button:focus-visible {
  outline-offset: -4px;
}
.stake-input-wrap .token-tag,
.stake-input-wrap button {
  flex-shrink: 0;
}
.stake-metrics dt .token-mark {
  width: 18px;
  height: 18px;
  margin-right: 5px;
}
.stake-form-card .stake-input-wrap input {
  border: 0;
  margin: 0;
  font-size: 23px;
  width: 100%;
  padding: 15px;
}
.stake-input-wrap > span {
  font-size: 12px;
  color: #91a4c1;
  margin-right: 12px;
}
.stake-input-wrap button {
  border: 0;
  background: transparent;
  color: #bba6ff;
  padding: 10px;
}
.stake-form-card fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
.stake-form-card legend {
  margin-bottom: 11px;
}
.stake-durations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.stake-durations label {
  position: relative;
  min-width: 0;
}
.stake-durations input {
  position: absolute;
  top: 15px;
  right: 10px;
  accent-color: #9b7ce8;
}
.stake-durations span {
  display: block;
  border: 1px solid #394760;
  border-radius: 9px;
  padding: 14px 9px;
  background: #0c1729;
  min-height: 112px;
  cursor: pointer;
}
.stake-durations input:checked + span {
  background: #292144;
  border-color: #9474d9;
}
.stake-durations input:focus-visible + span {
  outline: 2px solid #cfbdff;
  outline-offset: 2px;
}
.stake-durations strong {
  display: block;
  font-size: 13px;
  padding-right: 14px;
}
.stake-durations small {
  display: block;
  font-size: 10px;
  color: #b7b5cf;
  font-weight: 400;
  line-height: 1.65;
  margin-top: 9px;
  white-space: pre-line;
}
.stake-preview {
  margin: 22px 0 16px;
  padding: 16px;
  background: rgba(5, 11, 23, 0.55);
  border-radius: 9px;
}
.stake-preview > div {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 11px;
  font-size: 11px;
}
.stake-preview > div:last-child {
  margin-bottom: 0;
}
.stake-preview dt {
  color: #9daec6;
}
.stake-preview dd {
  margin: 0;
  text-align: right;
  color: #d9dfef;
}
.stake-form-card .stake-permit {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.6;
}
.stake-permit input {
  accent-color: #9b7ce8;
  margin: 3px 0;
}
.stake-lock-warning {
  background: rgba(167, 133, 68, 0.07);
  border-left: 2px solid #ae935d;
  padding: 14px;
  font-size: 11px;
  line-height: 1.7;
  margin: 20px 0;
}
.stake-lock-warning strong {
  color: #e0cba4;
}
.stake-lock-warning p {
  color: #a6b7d0;
  margin-bottom: 0;
}
.staking-page .stake-primary {
  width: 100%;
  background: linear-gradient(105deg, #6a4dad, #4a57a8);
  border-color: #8e76c2;
  min-height: 50px;
  font-size: 14px;
}
.stake-notice {
  margin: 22px 0;
  border: 1px solid #426c64;
  background: #0e2829;
  padding: 20px;
  border-radius: 12px;
}
.stake-notice[data-tone="error"] {
  border-color: #a8606a;
  background: #331e2d;
}
.stake-notice h2 {
  font-size: 16px;
  margin: 0 0 8px;
}
.stake-notice p,
.stake-notice a {
  font-size: 12px;
  line-height: 1.6;
}
.stake-notice a {
  color: #adf7de;
}
.stake-protocol {
  margin-top: 28px;
}
.stake-protocol-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px 18px;
  margin: 26px 0;
}
.stake-protocol-metrics dd {
  font-size: 17px;
  font-weight: 600;
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.stake-protocol-metrics [data-protocol-value="nextHalving"] {
  font-size: 12px;
}
.stake-advanced {
  margin-top: 22px;
  padding: 0;
}
.stake-advanced summary {
  padding: 24px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #c3cde3;
}
.stake-advanced-content {
  padding: 0 24px 20px;
  font-size: 12px;
  color: #a7b7ce;
  line-height: 1.75;
}
.stake-advanced h3 {
  color: #dee5f3;
  font-size: 13px;
  margin: 20px 0 7px;
}
.stake-contracts > div {
  margin-top: 13px;
}
.stake-contracts dd {
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.stake-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  color: #8c9cb5;
  font-size: 11px;
  padding: 15px 0;
}
.staking-page [hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .stake-workspace {
    grid-template-columns: 1fr;
  }
  .stake-hero:after {
    width: 300px;
    right: -20px;
    opacity: 0.13;
  }
  .stake-protocol-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .stake-shell .stake-hero {
    padding-top: 10px;
  }
  .stake-network {
    display: none;
  }
}
@media (max-width: 540px) {
  .staking-page .stake-shell {
    width: calc(100% - 28px);
    padding-top: 20px;
  }
  .stake-card {
    padding: 20px;
  }
  .stake-hero h1 {
    letter-spacing: -1.4px;
  }
  .stake-heading h2 {
    font-size: 19px;
  }
  .stake-heading {
    align-items: flex-start;
  }
  .staking-page .stake-connect {
    max-width: 120px;
    padding: 8px 12px;
  }
  .stake-metrics {
    gap: 22px 14px;
  }
  .stake-metrics dd {
    font-size: 21px;
  }
  .stake-durations {
    gap: 6px;
  }
  .stake-durations span {
    padding: 12px 8px;
  }
  .stake-durations input {
    right: 6px;
  }
  .stake-protocol-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 21px 14px;
  }
  .stake-protocol .stake-heading {
    flex-direction: column;
  }
  .stake-advanced {
    padding: 0;
  }
  .stake-preview > div {
    gap: 12px;
  }
  .stake-form-card .stake-input-wrap input {
    font-size: 22px;
    padding: 12px;
  }
  .stake-badge {
    font-size: 9px;
  }
}
.stake-hero {
  isolation: isolate;
}
.stake-hero:after {
  max-width: 100%;
  right: 0;
}
.stake-form-card
  .stake-input-wrap
  input:not([type="checkbox"]):not([type="radio"]) {
  border: 0;
  margin: 0;
  font-size: 23px;
  padding: 15px;
  flex: 1 1 0;
  width: 0;
}
@media (max-width: 850px) {
  .staking-page:not(.is-connected) .stake-position .stake-metrics,
  .staking-page:not(.is-connected) .stake-position .stake-position-actions,
  .staking-page:not(.is-connected) .stake-position .stake-small,
  .staking-page:not(.is-connected) .stake-position .stake-delegation,
  .staking-page:not(.is-connected) .stake-position .stake-text-button {
    display: none;
  }
  .staking-page:not(.is-connected) .stake-position .stake-account {
    margin-bottom: 0;
  }
}
