#staking-screen .staking-screen-stack {
  gap: 12px;
  padding-top: clamp(14px, 2.2vh, 22px);
  padding-bottom: calc(var(--screen-bottom-space, 132px) + 12px);
}

#staking-screen .staking-main-card,
#staking-screen .staking-stat-card,
#staking-screen .staking-summary-card,
#staking-screen .staking-claim-card,
#staking-screen .staking-top-card {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(13, 31, 66, 0.94), rgba(8, 21, 48, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#staking-screen .staking-main-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

#staking-screen .staking-screen-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#staking-screen .staking-back-btn {
  flex: 0 0 auto;
}

#staking-screen .staking-screen-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 280px;
}

#staking-screen .staking-apr-pill,
#staking-screen .staking-bank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

#staking-screen .staking-apr-pill {
  color: #fff5d6;
  background: linear-gradient(135deg, rgba(255, 201, 84, 0.34), rgba(255, 162, 45, 0.16));
}

#staking-screen .staking-bank-pill {
  color: #d8f9ff;
  background: linear-gradient(135deg, rgba(53, 224, 255, 0.2), rgba(56, 116, 255, 0.14));
}

#staking-screen .staking-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#staking-screen .staking-stat-card {
  padding: 14px;
  min-width: 0;
  border-radius: 16px;
}

#staking-screen .staking-stat-label {
  color: rgba(225, 236, 255, 0.66);
  font-size: 12px;
}

#staking-screen .staking-stat-value,
#staking-screen .staking-claim-value {
  margin-top: 8px;
  color: #fff8e7;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

#staking-screen .staking-summary-card {
  padding: 6px 14px;
  background: rgba(8, 20, 45, 0.46);
  border-radius: 18px;
}

#staking-screen .staking-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  color: rgba(225, 236, 255, 0.86);
  font-size: 14px;
}

#staking-screen .staking-summary-row + .staking-summary-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#staking-screen .staking-summary-row strong {
  color: #fff8e7;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

#staking-screen .staking-claim-card {
  padding: 14px;
  background: rgba(8, 20, 45, 0.46);
  border-radius: 18px;
}

#staking-screen .staking-claim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#staking-screen .staking-claim-cooldown {
  color: rgba(225, 236, 255, 0.66);
  font-size: 12px;
  text-align: right;
  line-height: 1.4;
}

#staking-screen .staking-claim-cooldown[hidden] {
  display: none !important;
}

#staking-screen .staking-claim-btn {
  width: 100%;
  margin-top: 14px;
  min-height: 48px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#staking-screen .staking-claim-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  color: #3a2400;
  border: 1px solid rgba(255, 227, 153, 0.38);
  background: linear-gradient(135deg, #d9a53a 0%, #f0c76f 52%, #ffe7a4 100%);
  box-shadow: 0 12px 24px rgba(214, 160, 34, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  filter: none;
}

#staking-screen .staking-top-card {
  padding: 14px;
  background: rgba(8, 20, 45, 0.46);
  border-radius: 18px;
}

#staking-screen .staking-top-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

#staking-screen .staking-top-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(36vh, 360px);
  overflow-y: auto;
  padding-right: 2px;
}

#staking-screen .staking-top-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(9, 20, 43, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#staking-screen .staking-top-item.is-self {
  border-color: rgba(255, 212, 96, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 96, 0.14);
}

#staking-screen .staking-top-rank {
  color: #ffd46a;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

#staking-screen .staking-top-user {
  min-width: 0;
}

#staking-screen .staking-top-name {
  color: #fff8e7;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#staking-screen .staking-top-sub {
  margin-top: 3px;
  color: rgba(225, 236, 255, 0.58);
  font-size: 12px;
}

#staking-screen .staking-top-value {
  color: #8af7ff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 420px) {
  #staking-screen .staking-screen-head-row {
    gap: 10px;
  }

  #staking-screen .staking-screen-stack {
    gap: 12px;
    padding-top: 12px;
  }

  #staking-screen .staking-stats-grid {
    grid-template-columns: 1fr;
  }

  #staking-screen .staking-stat-value,
  #staking-screen .staking-claim-value {
    font-size: 22px;
  }

  #staking-screen .staking-screen-top {
    justify-content: flex-start;
  }

  #staking-screen .staking-claim-cooldown {
    text-align: left;
  }
}
